DIV屬性
時(shí)間:2023-03-05 09:39:01 | 來源:營(yíng)銷百科
時(shí)間:2023-03-05 09:39:01 來源:營(yíng)銷百科
DIV屬性:id, class, title, style, dir, lang, xml:lang 如需完整的描述,請(qǐng)?jiān)L問標(biāo)準(zhǔn)屬性。
color : #999999 文字顏色
font-family :宋體文字字型
font-size: 10px 文字大小
font-style:italic 文字斜體
font-variant:small-caps 小字體
letter-spacing: 1px 文字間距
line-height: 200% 設(shè)定行高
font-weight:bold 文字粗體
vertical-align:sub 下標(biāo)字
vertical-align:super 上標(biāo)字
text-decoration:line-through 加刪除線
text-decoration:overline 加頂線
text-decoration:underline 加底線
text-decoration:none 除連接底線
text-transform: capitalize 首字大寫
text-transform : uppercase 英文大寫
text-transform : lowercase 英文小寫
text-align:right 文字*右對(duì)齊
text-align:left 文字*左對(duì)齊
text-align:center 文字置中對(duì)齊
這些是一些簡(jiǎn)單的文字效果,可以應(yīng)用到css的頁(yè)面中。
背景
background-color:black 背景顏色
background-image : url(image/bg.gif) 背景圖片
background-attachment : fixed 固定背景
background-repeat : repeat 重復(fù)排列-網(wǎng)頁(yè)預(yù)設(shè)
background-repeat : no-repeat 不重復(fù)排列
background-repeat : repeat-x 在x軸重復(fù)排列
background-repeat : repeat-y 在y軸重復(fù)排列
background-position : 90% 90% 背景圖片x與y軸的位置
鏈接
A 所有超連接
A:link 超連接文字格式
A:visited 瀏覽過的連接文字格式
A:active 按下連接的格式
A:hover 鼠標(biāo)移至連接
邊框
border-top : 1px solid black 上框
border-bottom : 1px solid #6699cc 下框
border-left : 1px solid #6699cc 左框
border-right : 1px solid #6699cc 右框
border: 1px solid #6699cc 四邊框
虛線
textarea style='border:1px dashed pink'
實(shí)線
textarea style='border:1px solid pink'