Home  >  Q&A  >  body text

Problem with username and password input box

Everything is written according to what the teacher said. But the input box for the user name has been changed to a new line

QQ图片20180726090113.png

WorldlyWorldly2300 days ago1487

reply all(2)I'll reply

  • 威尼斯

    威尼斯2018-07-26 09:26:40

    js and css are not referenced, _STATIC_ should be __STATIC__

    reply
    0
  • Worldly

    Yes, the problem is solved, thank you very much!

    Worldly · 2018-07-26 09:31:39
  • Worldly

    Worldly2018-07-26 09:08:02

    <!DOCTYPE html>

    <html>

    <head>

    <title>登陆</title>

    <link rel="stylesheet" type="text/css" href="_STATIC_/plugins/layui/css/layui.css">

    <script type="text/javascript" src="_STATIC_/plugins/layui/layui.js"></script>

    </head>

    <body style="background: #1E9FFF">

        <div style="position: absolute; left:50%;top:50%;width:500px;margin-left:-250px;margin-top:-200px;">

            <div style="background:#ffffff;padding:20px;border-radius:4px;box-shadow: 5px 5px 20px #444444">

            <div clsaa="layui-form" style="color:gray;">

            <h2>后台管理系统</h2>

            </div>

            <hr>

            <div class="layui-form-item">

            <label class="layui-form-label">用户名</label>

            <div class="layui-input-block">

            <input type="text" class="layui-input">

            </div>

            </div>


            <div class="layui-form-item">

            <label class="layui-form-label">密    码</label>

            <div class="layui-input-block">

            <input type="password" class="layui-input">

            </div>

            </div>

            </div>

        </div>

    </body>

    </html>

    这是代码

    reply
    0
  • Cancelreply