a 標籤屬性
a:active{color:red} // 鼠標左鍵點擊不放顯示紅色。
a:link //鏈接樣式顏色
a:visited //訪問過後
input表框
<input type='text' >
<input type='text' disabled>
// 不可用選擇
input:disabled{ }
//可用選擇
input:enabled{ }
點擊label就會有光標鎖定input框
<label for='name'>姓名</label>
<input type='text' id='name' />
清除浮動
方法1.
父集
子集
clearfix{
clear:both;
overflow:auto;
}
方法2
父集加
overflow:hidden;