zoukankan      html  css  js  c++  java
  • 按钮按下效果

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>按钮按下效果</title>
    <style type="text/css">
    #div1{ width:120px; height:40px; line-height:40px; text-align:center; color:#fff; background:#039; text-shadow:1px 1px 2px #000; box-shadow:0 5px 2px #000; position:relative; top:0; cursor:pointer; margin:0 auto;}
    #div1:active{ top:3px; box-shadow:0 2px 2px #000;}
    </style>
    <script type="text/javascript"></script>
    </head>
    
    <body>
        <div id="div1">按钮</div>
    </body>
    </html>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>按钮按下效果</title>
    <style type="text/css">
    #div1{ width:120px; height:40px; line-height:40px; text-align:center; color:#fff; background:#039; text-shadow:1px 1px 2px #000; border-radius:5px; box-shadow:inset 0px 0px 20px #fff, 0 5px 2px #000; position:relative; top:0; transition:0.2s all ease; margin:50px auto; cursor:pointer;}
    #div1:hover{ box-shadow:inset 0px 0px 40px #fff, 0 5px 2px #000;}
    #div1:active{ top:3px; box-shadow:inset 0px 0px 40px #fff, 0 2px 2px #000;}
    </style>
    <script type="text/javascript"></script>
    </head>
    
    <body>
        <div id="div1">按钮</div>
    </body>
    </html>
  • 相关阅读:
    正则表达式
    HDU 2066 多源最短路
    UVA 11039 模拟
    Concrete Mathematics Chapter 1 Warmups
    List differences between JAVA and C++
    uva 11107Life Forms
    poj 1509 Glass Beads
    poj 3581
    网络流建图
    图论算法----网络流
  • 原文地址:https://www.cnblogs.com/king-bj/p/4500779.html
Copyright © 2011-2022 走看看