发布时间:2025-12-10 12:55:26 浏览次数:3
HTML登录界面是现在常用的一种方式,可以实现网站或应用的用户管理。下面是一个简单的HTML登录界面样式代码示例:
<form><label>用户名:</label><input type="text" name="username"><br><label>密码:</label><input type="password" name="password"><br><input type="submit" value="登录"></form>
我们还可以使用CSS样式对登录界面进行美化,例如:
<style>form {display: flex;flex-direction: column;align-items: center;}label {margin: 10px 0;font-weight: bold;}input {padding: 5px 10px;margin-bottom: 20px;border: none;border-radius: 5px;box-shadow: 0px 0px 5px grey;}input[type=submit] {background-color: #0078d7;color: white;cursor: pointer;}input[type=submit]:hover {background-color: #005b9f;}</style>