id选择器
为指定id的元素设定样式,id前加#,(id选择器只能给指定的id使用,id不能重复,即只能用一次)
#username
{
font-size:10px;
}
<input id="usersname" type="text" value="aaaaaaaaaaaa" />
style、class可以同时组合使用
<input id="username" class="accountno" style="font-size:40px;color:red" type="text" value="aaaaaaaaaaaa“ />
浙公网安备 33010602011771号