Alles ist so geschrieben, wie es der Lehrer gesagt hat. Aber das Eingabefeld für den Benutzernamen wurde in eine neue Zeile geändert
js、css没引用到,_STATIC_应该是__STATIC__
<!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">
<label class="layui-form-label">密 码</label>
<input type="password" class="layui-input">
</body>
</html>
这是代码
js、css没引用到,_STATIC_应该是__STATIC__
<!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>
这是代码