使用表单元素和css样式制作登录页面

Original 2019-04-04 11:05:45 377
abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>作业测试</title> <style> li{list-style:none;} input{ height:8px;width:258px;border
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>作业测试</title>
<style>
li{list-style:none;}
input{
height:8px;width:258px;border:1px solid #ccc; margin-top:20px;padding:20px;
}
button{
height:50px;width:300px;border:1px solid #ccc; margin-top:20px;
background:#ff6a00;
}
li{
float:left;
}
</style>
</head>
<body>
<div>
<ul>
<li>账号登录|</li>
<li>扫码登录</li>
<br>
</ul>
<form action="">
<input type="text" placeholder="请输入用户名"><br>
<input type="password" placeholder="请输入密码"><br>
<button>登录</button>
</form>
</div>
</body>
</html>



Correcting teacher:天蓬老师Correction time:2019-04-04 11:12:06
Teacher's summary:表单中的每个控件, 推荐使用一个标签<label>,除非是移动页面

Release Notes

Popular Entries