property : value – 样式表定义。属性和属性值之间用冒号(:)隔开。定义之
间用分号(;)隔开
继承的值 (The ’ Inherit ’ Value)
每个属性都有一个指定的值:Inherit。它的意思是:将父对象的值等同为计算
机值得到。这个值通常仅仅是备用的。显式的声明它可用来强调。
CSS Properties Reference 样式表属性
字体 Font
font color font-family font-size font-size-adjust font-stretch font-style font-weight text-decoration
text-underline-position text-shadow font-variant text-transform line-height letter-spacing word-spacing
文本 Text
text-indent text-overflow vertical-align text-align layout-flow writing-mode direction unicode-bidi word-break
line-break white-space word-wrap text-autospace text-kashida-space text-justify ruby-align ruby-position
ruby-overhang ime-mode layout-grid layout-grid-char layout-grid-char-spacing layout-grid-line
layout-grid-mode layout-grid-type
背景 Background
background background-attachment background-color background-image background-position
background-positionX background-positionY background-repeat layer-background-color
layer-background-image
定位 Positioning
position z-index top right bottom left
尺寸 Dimensions
height max-height min-height width max-width min-width
布局 Layout
clear float clip overflow overflow-x overflow-y display visibility
外补丁 Margins
margin margin-top margin-right margin-bottom margin-left
轮廓 Outlines
outline outline-color outline-style outline-width
边框 Borders
border border-color border-style border-width border-top border-top-color border-top-style border-top-width
border-right border-right-color border-right-style border-right-width border-bottom border-bottom-color
border-bottom-style border-bottom-width border-left border-left-color border-left-style border-left-width
内容 Generated Content
include-source quotes content counter-increment counter-reset
内补丁 Paddings
padding padding-top padding-right padding-bottom padding-left
列表项目 Lists
list-style list-style-image list-style-position list-style-type marker-offset
精通 CSS+DIV 网页样式与布局 2 Selector -- 选择符
最新推荐文章于 2025-12-10 20:30:06 发布
本文详细介绍了CSS样式表中各种属性及其使用方法,包括字体、文本、背景、定位、尺寸等核心属性,并提供了详细的参数说明。
685

被折叠的 条评论
为什么被折叠?



