As a qualified front-end development engineer, is able to restore the UI design diagram 100 percent, no matter how cool the design diagram, can do, of course, is also a little bit from the details of the implementation. Today we continue to record the simple shadow effect inside the input box, which looks like this:

<! DOCTYPEhtml>
<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="Name of Employee" id="sname" class="layui-input search_input" type="text">
        </div>

    </body>

</html>
Copy the code