標準屬(shǔ)性
id, class, title, style, dir, lang, xml:lang 如需(xū)完(wán)整的(dí)描(miáo)述,請訪(fǎng)問標準(zhǔn)屬(shǔ)性。
color : #999999 文(wén)字(zì)顏(yán)色
font-family :宋體文字字型(xíng)
font-size: 10pt 文(wén)字大小
font-style:italic 文字(zì)斜體
font-variant:small-caps 小字體
letter-spacing: 1pt 文字間(jiān)距(jù)
line-height: 200% 設定(dìng)行(háng)高
font-weight:bold 文字(zì)粗(cū)體(tǐ)
vertical-align:sub 下(xià)標字(zì)
vertical-align:super 上標字
text-decoration:line-through 加(jiā)刪(shān)除(chú)綫
text-decoration:overline 加頂(dǐng)綫
text-decoration:underline 加底(dǐ)綫
text-decoration:none 除(chú)連接底綫
text-transform: capitalize 首(shǒu)字(zì)大(dà)寫
text-transform : uppercase 英文(wén)大寫(xiě)
text-transform : lowercase 英(yīng)文小寫(xiě)
text-align:right 文字*右(yòu)對(duì)齊
text-align:left 文字(zì)*左對齊
text-align:center 文字置(zhì)中對齊
這些是一些簡(jiǎn)單(dān)的文字效果,可以應用到css的(dí)頁麵(miàn)中。
背景
background-color:black 背景顏色(sè)
background-image : url(image/bg.gif) 背(bèi)景圖(tú)片(piàn)
background-attachment : fixed 固定背(bèi)景
background-repeat : repeat 重復(fù)排(pái)列(liè)-網頁預設
background-repeat : no-repeat 不(bù)重(zhòng)復(fù)排列
background-repeat : repeat-x 在(zài)x軸重(zhòng)復排列
background-repeat : repeat-y 在(zài)y軸重復排(pái)列
background-position : 90% 90% 背景圖片(piàn)x與y軸的位置
A 所有(yǒu)超連(lián)接
A:link 超連接文(wén)字(zì)格(gé)式
A:visited 瀏(liú)覽過的(dí)連接(jiē)文字格(gé)式
A:active 按(àn)下(xià)連接的格(gé)式
A:hover 鼠標(biāo)移(yí)至(zhì)連接
邊框
border-top : 1px solid black 上(shàng)框
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">
實綫
<textarea style="border:1px solid pink">
事(shì)件(jiàn)屬性
onclick(單擊), ondblclick(雙(shuāng)擊)
onmousedown(鼠標按(àn)下), onmouseup(鼠(shǔ)標(biāo)抬(tái)起(qǐ)), onmousemove(鼠(shǔ)標(biāo)移(yí)動)
onmouseover(鼠標在div內部), onmouseout(鼠(shǔ)標移(yí)出(chū)div),
onkeypress(鍵盤(pán)按下), onkeydown(鍵(jiàn)盤按(àn)鍵(jiàn)), onkeyup(按鍵抬起)
如需完整的描(miáo)述,請訪問事件(jiàn)屬(shǔ)性。
可(kě)選(xuǎn)的(dí)屬性(xìng)
屬性(xìng):align
值:left right center justify
描(miáo)述(shù):不(bù)贊成使用。請(qǐng)使用樣式取而代之(zhī)。規定(dìng) div 元素中的內容(róng)的(dí)對齊方式(shì)。
DTD:TF
轉(zhuǎn)載請(qǐng)保留原文(wén)地(dì)址: https://antelcom.cn/show-353.html

