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>

  • 相关阅读:
    chm打开看不到内容时好时坏
    pugixml应用随笔
    鸟哥书:记一笔
    c++ stl list使用总结(转)
    增加swap分区
    复制虚拟机,链接网络问题:没有找到合适的设备:没有找到可用于链接System eth0 的
    Python编码相关文章推荐
    Python Counter() 的实现
    Python Counter()计数工具
    浏览器自动化工具-Selenium
  • 原文地址:https://www.cnblogs.com/leaflife/p/6735101.html
Copyright © 2011-2022 走看看