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>

  • 相关阅读:
    Azure产品目录
    AWS产品目录
    BD
    Cloud Resource
    do-release-upgrade升级笔记
    Gluster vs Ceph:开源存储领域的正面较量
    OpenStack大规模部署详解
    SECURITY ONION:防御领域的kali
    vue非父子组件间传参问题
    vue源码之响应式数据
  • 原文地址:https://www.cnblogs.com/leaflife/p/6735101.html
Copyright © 2011-2022 走看看