input输入框内阴影效果

作为一个合格的前端开发工程师,是能够将UI的设计图百分百还原的,不管设计图有多么的炫酷,都能够做到,当然也是从细节上一点点的实现的。今天继续记录简单的input输入框内阴影效果,效果如下:


<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
        <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
        <script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
        <style>
            div {
                width: 400px;
                height: 100px;
                background: #0d1c2f;
                text-align: center;
            }
            
            input {
                width: 230px;
                border: none;
                font-family: inherit;
                font-size: inherit;
                line-height: inherit;
                box-shadow: 0px 0px 10px #005efe inset;
                background: #0d1c2f;
                color: #fff;
                margin-top: 22px;
                padding: 7px;
            }
        </style>
    </head>

    <body>
        <div>
            <input placeholder="员工姓名" id="sname" class="layui-input search_input" type="text">
        </div>

    </body>

</html>

原文作者:祈澈姑娘 技术博客:https://www.jianshu.com/u/05f416aefbe1
90后前端妹子,爱编程,爱运营,文艺与代码齐飞,魅力与智慧共存的程序媛一枚。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容