css常用屬性

2022-07-03 09:57:14 字數 911 閱讀 7093

盒子模型:

1,外邊距(margin)、邊框(

border

)、內邊距(

padding

)上下內邊框

左右內邊框

3,padding

:上  右 下 左

4,margin

:同上5.border:大小 樣式 顏色;

6.border_radius:大小;圓角span 行級元素(橫排)

7.display:

block/inline   (

行變塊可以加長度加高度)

塊/行8.margin: 上下   左右;

9 ,a:hover 滑鼠懸停

10.line_height:大小;(行高)

background有關內容

background-repeat:no-repeat(不重複)

repeat-y (y軸重複

)repeat-x(

x軸重複)

center center

(正中間)

top left(左上

)top center(頂上居中

)bottom(下

)文字

font-weight:[100~900]    文字粗細

500為預設值

text-ailgn:       文字水平方向

line-height                      行距

font-size                         字型大小

text-decoration:none;去除a標籤下劃線

font-style:normal - 文字正常顯示

italic - 文字斜體顯示

css 常用屬性

字型屬性 font 大小font size x large 特大 xx all 極小 一般中文用不到,只要用數值就可以,單位 px pd 樣式font style oblique 偏斜體 italic 斜體 normal 正常 行高line height normal 正常 單位 px pd em粗...

CSS常用屬性

css常用屬性 1.color,background color 表示顏色的關鍵字,16進製制數 中提供的color scheme工具 2.font family 該屬性的值可以是一組字型,按喜歡程度排序的字型列表。一些中文字型的列表 windows的一些 新細明體 pmingliu 細明體 min...

css常用屬性

文字屬性 font size font family 字型型別 文字屬性 color text decoration 下劃線 none underline text align 對齊方式 left center right 背景屬性 background color background image...