background-image: url(beijing.jpg);repeat-x 背景圖片橫向重復(fù)repeat-y 背景圖片豎向重復(fù)no-...
(list-style:none;)去掉li默認(rèn)的點(diǎn)右浮動:float:right左浮動:float:leftclear:both;清除浮動兩端...
邊框 圓角 外邊距內(nèi)邊距 外邊距:圍繞在元素周圍的空白區(qū)域默認(rèn)不被其他元素占用的作用:拉開元素之間的距離語法:margin:值 5px 百...
使用尺寸限制元素大小時,如果內(nèi)容所需要空間大于元素本身,會導(dǎo)致內(nèi)容溢出屬性:overflow: 取值:1.visible 溢出可見 默認(rèn)值2....
設(shè)置上邊框border-top:2px solid blue/下邊框/border-bottom/左邊框/border-left/右邊框/bor...
text-indent:...px.;首行縮進(jìn)line-height:......px;行高text-decoration:underline;...
display:控制一個元素的狀態(tài)display:inline-block 把一個元素轉(zhuǎn)換成行內(nèi)塊元素block 把一個元...
可以獨(dú)占一行的元素:p div ul li ol li h1~h6 塊元素可以設(shè)置元素的寬和高不可以獨(dú)占一行的元素:a i b ...
屬性:text(文本) 默認(rèn)password(保密密碼)input type="text"密碼: input type="password" ...