<head>
<link rel=”stylesheet” type=”text/css” href=””> <!--link元素只能出現(xiàn)在head標(biāo)簽內(nèi)-->
</head>
或者
<style type=”text/css”>
@import url()
</style>
加!important屬性。如: h1{ color : black !important;}
關(guān)聯(lián)選擇器 #nav li a, #nav li a:link, li emu l, ……
類選擇器 .wide{ }, p.wide{}, ……
Id屬性選擇器 #name
錨偽類 a:link, a:visited, a:active, a:hover, 或者直接 :link ……
印刷為元素 <P>
P:first-line{ font, color, background, word-spacing, letter-spacing, text-decoration, vertical-align, text-transform, line-height, clear}
P:first-letter{ font, color, background, letter-spacing, vertical-align, text-transform, line-height}
選擇器中的為元素 body p:first-letter{ }, p.id:first-letter{}, ……
border, border-bottom, border-top, border-left, border-right
border-bottom-color, border-bottom-style, border-bottom-width
border-width, border-color, border-style
clear, float
margin, margin-top, margin-bottom, margin-left, margin-right
padding, padding-top, padding-bottom, padding-left, padding-right
background, background-attchment, background-color, background-image, background-position, background-repeat, color
display, list-style-type, list-style-image, list-style-position, list-style, white-space
ul { list-style-image:url("/i/arrow.gif"); list-style-type:square; }
font, font-family, font-size, font-style, font-variant, font-weight
Letter-spacing, line-break, line-height, vertical-align,
text-align, text-decoration, text-indent, text-justify, text-transform
position(僅div可用):absolute(相對父元素), width, height, z-index, static, relative(相對頁面)
left, top(坐標(biāo)):元素與父元素左方和上方邊緣的空間大小,可用于padding,border,margin
width, height絕對或相對的寬度與高度?捎糜诙x元素實(shí)際占用空間,以內(nèi)容長度為準(zhǔn),不包括padding、border與margin
visibility: visible(可見), hidden(隱藏), inherit(繼承父元素屬性)
px 像素, in 英寸, cm 厘米, mm 毫米, pt=1/72in, pc=12pt
![]() | ![]() .. 定價(jià):¥133 優(yōu)惠價(jià):¥133.0 更多書籍 |
![]() | ![]() .. 定價(jià):¥124 優(yōu)惠價(jià):¥124.0 更多書籍 |