zoukankan      html  css  js  c++  java
  • CSS实现圆角,圆角阴影

    来源

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <style>
            .hint{
                 200px;
                height: 80px;
                box-shadow: 0 1px 1px 1px #ccc;
                display: none;
                vertical-align: top;
                position: relative;
                box-sizing: border-box;
                margin-left: 25px;
                background-color: white;
                text-align: center;
                text-indent: 2em;
                line-height: 20px;
            }
            .hint::after{
                content: " ";
                position: absolute;
                left: -10px;
                top: 10px;
                 0px;
                height: 0px;
                border-style: solid;
                border- 10px;
                border-color: white white transparent transparent;
                transform: rotate(-135deg);
                box-shadow: 1px -1px 1px #ccc;
    
    }
        
            
        </style>
    </head>
    <body>
        <label for="">user</label>
        <input type="text"  onfocus="show()" onblur="document.getElementsByClassName('hint')[0].style.display='none';">
        <div class="hint">
            请输入指定的数值
        </div>
    
        <script>
            function show(){
                document.getElementsByClassName('hint')[0].style.display='inline-block';
            }
        </script>
    </body>
    </html>
  • 相关阅读:
    搜查令——中期总结
    搜查令——第二周
    软件工程团队项目——搜查令
    初入博客园
    初步了解Ajax
    APPLET基础
    LoggingFilter Session 以及Async
    Session
    XML定义 用途 工作原理及未来
    Linux安装Axis C构建WebService服务
  • 原文地址:https://www.cnblogs.com/ar13/p/8245750.html
Copyright © 2011-2022 走看看