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>
  • 相关阅读:
    在linux上安装python, jupyter, 虚拟环境(virtualenv)以及 虚拟环境管理之virtualenvwraper
    linux
    Django ORM那些相关操作
    Django 中 form 介绍
    MySQL完整性约束
    git入门
    MySQL表的操作
    努力努力再努力
    Docker初始
    IO模型
  • 原文地址:https://www.cnblogs.com/king-bj/p/4500779.html
Copyright © 2011-2022 走看看