ID选择器
选择器
<head>
<meta charset="utf-8">
<title>ID选择器</title>
<style>
#username{
width: 300px;
height: 40px;
border-radius: 0px;
border-color: #55ff00;
border-style: solid;
}
#tel{
width: 300px;
height: 40px;
border-radius: 0px;
border-color: #ff0000;
border-style: solid;
}
#reg{
width: 300px;
height: 40px;
border-radius: 8px;
border-color: #F2F2F2;
border-style: solid;
background-color: limegreen;
value{
width: 100px;
height: 40px;
background-color: antiquewhite;
}
</style>
</head>
<body>
<form action="" method="post">
<label>用户名</lable>
<input id="username" name="username"/>
<br/>
<label>手机号</lable>
<input id="tel" name="tel"/>
<br/>
<input id="reg" type="submit" value="注册" size="20">
</body>
效果图: