CSS 属性
属于 CSS3 标准的有效属性。
allbackgroundbackground-attachmentbackground-clipbackground-colorbackground-imagebackground-originbackground-positionbackground-repeatbackground-sizeborderborder-bottomborder-bottom-colorborder-bottom-left-radiusborder-bottom-right-radiusborder-bottom-styleborder-bottom-widthborder-collapseborder-colorborder-imageborder-image-outsetborder-image-repeatborder-image-sliceborder-image-sourceborder-image-widthborder-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-spacingborder-styleborder-topborder-top-colorborder-top-left-radiusborder-top-right-radiusborder-top-styleborder-top-widthborder-widthbottombox-shadowcaption-sideclearclipcolorcontentcounter-incrementcounter-resetcursordirectiondisplayempty-cellsfloatfontfont-familyfont-sizefont-size-adjustfont-stretchfont-stylefont-synthesisfont-variantfont-weightheightleftletter-spacingline-heightlist-stylelist-style-imagelist-style-positionlist-style-typemarginmargin-bottommargin-leftmargin-rightmargin-topmax-heightmax-widthmin-heightmin-widthopacityorphansoutlineoutline-coloroutline-styleoutline-widthoverflowpaddingpadding-bottompadding-leftpadding-rightpadding-toppage-break-afterpage-break-beforepage-break-insidepositionquotesrighttable-layouttext-aligntext-decorationtext-decoration-colortext-decoration-linetext-decoration-styletext-indenttext-transformtoptransformtransform-origintransitiontransition-delaytransition-durationtransition-propertytransition-timing-functionunicode-bidivertical-alignvisibilitywhite-spacewidowswidthword-spacingz-index
按类别
文本和字体
fontfont-familyfont-sizefont-weightfont-stylefont-variantfont-stretchfont-size-adjustfont-synthesisline-heightletter-spacingword-spacingtext-aligntext-decorationtext-decoration-linetext-decoration-styletext-decoration-colortext-indenttext-transformvertical-alignwhite-space
颜色和背景
coloropacitybackground-colorbackgroundbackground-imagebackground-repeatbackground-positionbackground-attachmentbackground-clipbackground-originbackground-sizeborder-radiusborder-top-left-radiusborder-top-right-radiusborder-bottom-right-radiusborder-bottom-left-radiusborder-imageborder-image-sourceborder-image-sliceborder-image-widthborder-image-outsetborder-image-repeatbox-shadow
盒模型:外边距、内边距和边框
marginmargin-topmargin-rightmargin-bottommargin-leftpaddingpadding-toppadding-rightpadding-bottompadding-leftborderborder-topborder-rightborder-bottomborder-leftborder-widthborder-top-widthborder-right-widthborder-bottom-widthborder-left-widthborder-styleborder-top-styleborder-right-styleborder-bottom-styleborder-left-styleborder-colorborder-top-colorborder-right-colorborder-bottom-colorborder-left-color
视觉格式化:尺寸、显示和定位
widthheightmin-widthmax-widthmin-heightmax-heightpositiontoprightbottomleftclipoverflowz-indexfloatcleardisplayvisibility
生成内容和列表
contentquotescounter-incrementcounter-resetlist-stylelist-style-typelist-style-imagelist-style-position
表格
分页媒体
过渡
变换
杂项。
用法
CSS 属性,与 值 相关联,构成 声明。声明块,与 选择器 关联,构成 规则集。它们的使用方法如下:
selector { property: value }
/* or, for with more selectors and values... */
selector1, selector2, selector3 {
property1: value1;
property2: value2;
property3: value3;
}
