標籤:style color io os ar strong sp on c
一、背景與前景
1.background屬性
background-color--背景顏色
background-image:url() --背景圖片路徑要寫在url()中.
background-attachment:fixed--背景圖固定,字動圖不動.scroll -- 背景與字一起滾動,預設.
background-repeat:repeat--平鋪 no-repeat--不平鋪 repeat-x--橫向平鋪 repeat-y--縱向平鋪.
background-position:top--頂端 right--右邊距 bottom,left,像素
font-family:字型名稱(微軟雅黑,宋體)
font-size:像素(12px,14px,18px),2.5em,200%
font-weight:是否加粗。bold,normal
font-style:是否傾斜。italic,normal
color:
text-decoration:none,underline,overline,line-through
text-align:left,center,right
vertical-align:top,middle,bottom
text-indent:首行縮排量
line-height:行高 1.5-2倍的字型大小
二、邊界與邊框
1.border類:
2.margin類:
3.padding類:
三、列表與方塊
1.width,height,(left,top,right,bottom)只有在絕對位置時可用
2.list-style-type,list-style-image,list-style-position
四、格式與布局
1.position:fixed,absolute,relative
2.z-index:
3.overflow:超出範圍;scroll-出捲軸;hidden-隱藏
4.float:浮動方向。
5.clear:both;
CSS網頁美化設計屬性