扫码关注官方订阅号
全部按照老师的讲的来写的。但是为的用户名的输入框换了一行
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>
这是代码
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
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>
这是代码