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>

  • 相关阅读:
    cocos2d-x 团队碰面有感
    2014年3月份 月会
    2014年特种兵训练营感想
    web 的简单框架
    【实用小技巧】virtual box 虚拟机复制
    flash的Socket通讯沙箱和安全策略问题
    Codeforces Round #237 (Div. 2)
    类的静态常量数组初始化
    关于自己的成长计划
    Android
  • 原文地址:https://www.cnblogs.com/leaflife/p/6735101.html
Copyright © 2011-2022 走看看