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“  />
posted @ 2013-03-21 13:05  Big.Eagle  阅读(94)  评论(0)    收藏  举报