返回使用Layui......登陆

使用Layui搭建后台管理系统登录页面

文昌2019-01-07 17:01:22288

使用class="layui-form" 来标识一个表单元素块,通过规范好的HTML结构、CSS类,以及内置的form模块来完成交互

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Layui后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" media="screen" 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="width: 500px; margin: 270px auto 0;">
        <div style="background: #fff; border-radius: 4px; box-shadow: 5px 5px 20px #444444; padding: 20px;">
            <form class="layui-form">
                <div class="layui-form-item" 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" name="title" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-block">
                        <input type="password" name="title" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">验证码</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input">
                    </div>
                    <img src="../yz.png">
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">登录</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

</body>

</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送