CSS屬性
特性
功能
color
前景色彩,也就是文字的顏色
色彩
background-image
背景圖片
url(網址)或none(沒有背景圖)
background-repeat
背景圖片是否重複填滿
repeat(重複填滿)或
no-repeat(只出現一張)
repeat-x(只有水平方向重複)
repeat-y(只有垂直方向重複)
width
寬度
數值與單位或百分比
height
高度
數值與單位或百分比
margin
邊界,外框與外面的距離
數值與單位或百分比
margin-left
單獨設定左邊界
數值與單位或百分比
padding
補白,外框與內部文字的距離
數值與單位或百分比
overflow
東西太多掉出來時的顯示方式
auto(自動)
scroll(產生捲軸)
visible(直接顯示多出來的東西)hidden(隱藏多出來的東西)
font-size
文字大小
數值與單位或百分比
font-weight
文字粗細
bold(粗體)
normal(一般)
百分比
float
浮動方式
left(往左)
right(往右)
none(不要浮動)
line-height
行高
數值與單位或百分比
letter-spacing
字距
數值與單位
text-align
文字對齊
left(齊左)
right(齊右)
center(置中)
position
移動位置時的算法
relative(相對位置)
absolute(絕對位置)
top
往下方移動多少
數值與單位或百分比
left
往右方移動多少
數值與單位或百分比
 


arrow
arrow
    全站熱搜

    rs5257 發表在 痞客邦 留言(0) 人氣()