zoukankan      html  css  js  c++  java
  • 制作圆角按钮

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    .button {
    display: inline-block;
    position: relative;
    text-align: center;
    text-decoration: none;
    font: bold 24px 华文细微;

    text-shadow: 1px 1px 1px 1px rgba(255,255,255, .22);

    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;

    -webkit-box-shadow: 1px 1px 2px 1px rgba(0,0,0, .29), inset 1px 1px 2px 1px rgba(255,255,255, .44);
    -moz-box-shadow: 1px 1px 2px 1px rgba(0,0,0, .29), inset 1px 1px 2px 1px rgba(255,255,255, .44);
    box-shadow: 1px 1px 1px 2px rgba(0,0,0, .29), inset 1px 1px 2px 1px rgba(255,255,255, .44);

    }
    .green {
    color: #fa6b00;

    /* background: #a5cd4e; Old browsers */
    background-color:#FFF;
    }

    /* Blue Color */

    .big {
    padding-top: 10px;
    height: 40px;
    120px;
    text-transform: uppercase;
    font: bold 24px 华文细微;
    }

    .button:hover {
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.29), inset 0px 0px 2px rgba(0,0,0, .5);
    -moz-box-shadow: 1px 1px 1px rgba(0,0,0,.29), inset 0px 0px 2px rgba(0,0,0, .5);
    box-shadow: 1px 1px 1px rgba(0,0,0,.29), inset 0px 0px 2px rgba(0,0,0, .5);
    color:#FFF;
    background-color:#fa6b00;
    }

    </style>
    </head>

    <body>
    <a href="#" class="button big green">查看更多 </a>

    </body>
    </html>

  • 相关阅读:
    golang/windows如何删除只读属性文件
    golang/TLS 采坑
    gsweb —— 理解HTTP协议
    gsweb —— 自己动手用golang写WEB框架
    Scala冒泡排序、快排、归并
    Hadoop自动化部署脚本
    大数据学习笔记
    vim键盘图
    什么是回调或高级函数?
    使用CSS表达式去除超链接的虚框的一些方法
  • 原文地址:https://www.cnblogs.com/leaflife/p/6735101.html
Copyright © 2011-2022 走看看