layui的一個後臺登陸
登陸邏輯和驗證碼邏輯需要自己寫,輸入框上面的logo可以自己加,lyaui的包自己下載即可~
html頁面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>後臺管理-登陸</title>
<link rel="stylesheet" href="layui/css/layui.css">
<link rel="stylesheet" href="css/admin.css">
</head>
<body>
<div id="container">
<div></div>
<div class="admin-login-background">
<!--<div class="admin-header">-->
<!--<img src="image/ex_logo.png" class="admin-logo">-->
<!--</div>-->
<form class="layui-form" action="">
<div>
<i class="layui-icon layui-icon-username admin-icon admin-icon-username"></i>
<input type="text" name="username" placeholder="請輸入使用者名稱"
autocomplete="off"
class="layui-input admin-input admin-input-username">
</div>
<div>
<i class="layui-icon layui-icon-password admin-icon admin-icon-password"></i>
<input type="password" name="password"
placeholder="請輸入密碼"
autocomplete="off"
class="layui-input admin-input">
</div>
<div>
<input type="text" name="verify"
placeholder="請輸入驗證碼"
autocomplete="off"
class="layui-input admin-input admin-input-verify">
<img class="admin-captcha" src=""
onclick="updateVerify()">
</div>
<button class="layui-btn admin-button" lay-submit lay-filter="formDemo">登陸</button>
</form>
</div>
</div>
<script src="layui/layui.js"></script>
<script>
function updateVerify() {
}
</script>
</body>
</html>