CSS 语法
CSS 选择器 ^907c86a2-6447-8dba
- a:active
- a:focus
- a:hover
- a:link
- a:visited
- after
- before
- element
element#idname
element.classname
element1.element2
element1:[att|="val"]
element1[attr$="substring"]
element1[attr*="substring"]
element1[attr]
element1[attr^="substring"]
element1[attr ~="value"]
element1[attr="value"]
element1+element2
element1 > element2
- first-child
- first-letter
- first-line
- lang
字体设置 ^8573f0ce-9d77-d7c3
- font
- font-family
- font-size
- font-size-adjust
- font-stretch
- font-style
- font-variant
- font-weight
文本显示
- direction
- letter-spacing
- line-height
- text-align
- text-decoration
- text-indent
- text-justify
- text-shadow
- text-transform
- text-underline-position
- text-underline-offset:下划线和文件的间隙
- unicode-bidi
- vertical-align
- white-space
- word-spacing
- word-break
元素尺寸 ^609290cc-3539-7175
- height
- max-height
- max-width
- min-height
- min-width
- width
颜色与背景修饰
- [[back
- background-attachment
- background-color
- background-image
- background-position
- background-repeat
- color
元素的边框 ^56bbbc1c-c60c-e268
- border
- border-bottom
- border-bottom-color
- border-bottom-style
- border-bottom-width
- border-color
- border-left
- border-left-color
- border-left-style
- border-left-width
- border-right
- border-right-color
- border-right-style
- border-right-width
- border-style
- border-top
- border-top-color
- border-top-style
- border-top-width
- border-width
灵活的填充 ^71b882a7-a2e8-56fa
- margin
- margin-bottom
- margin-left
- margin-right
- margin-top
- padding
- padding-bottom
- padding-left
- padding-right
- padding-top
定位网页元素 ^b1f33377-d0f3-cc08
- bottom
- clear
- clip
- direction
- float
- left
- overflow
- overflow-x
- overflow-y
- position
- right
- top
- visibility
- z-index
列表与内容展现 ^a216a86b-234f-58df
- content
- counter-increment
- counter-reset
- list-style
- list-style-image
- list-style-position
- list-style-type
- quotes
- @counter-style
表格布局
- border-collapse
- border-spacing
- caption-side
- colspan
- display
- empty-cells
- rowspan
- table-layout
用户界面样式 ^4a6eee1f-ebc1-ebed
- color
- cursor
- font
- outline
- outline-color
- outline-style
- outline-width
- scrollbar-3dlight-color
- scrollbar-arrow-color
- scrollbar-base-color
- scrollbar-darkshadow-color
- scrollbar-face-color
- scrollbar-highlight-color
- scrollbar-shadow-color
- scrollbar-track-color
滤镜特效 ^ca11e960-eb75-99a0
- alpha
- blur
- chroma
- dropshadow
- flipH
- flipV
- glow
- gray
- invert
- light
- mask
- shadow
- wave
- xray
屏幕媒体 ^67c4b5ec-cb4f-8377
- azimuth
- cue
- cue-after
- cue-before
- elevation
- marks
- orphans
- page
- page-break-after
- page-break-before
- page-break-inside
- pause
- pause-after
- pause-before
- pitch
- pitch-range
- play-during
- richness
- size
- speak
- speak-header
- speak-numeral
- speak-punctuation
- speech-rate
- stress
- volume
- widows
- aspect-ratio:设置元素宽高等比例
- object-fit:替换内容的适配方式