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>
  • 相关阅读:
    构建之法阅读笔记02
    4.7-4.13 第八周总结
    构建之法阅读笔记01
    顶会热词统计
    结对作业-四则运算升级版
    3.31-4.5 第七周总结
    大道至简阅读笔记03
    3.23-3.30 第六周总结
    第7周总结
    人月神话阅读笔记之三
  • 原文地址:https://www.cnblogs.com/ar13/p/8245750.html
Copyright © 2011-2022 走看看