CSS

来自康健生活
Kangkk​(留言 | 贡献)2022年12月9日 (五) 08:37的版本 (→目录)

返回上一级

目录

--* ED 应用
-webkit-line-clamp * CSS Overflow Module Level 3
accent-color * CSS Basic User Interface Module Level 4
align-content * CSS Box Alignment Module Level 3
align-items * CSS Box Alignment Module Level 3
align-self * CSS Box Alignment Module Level 3
alignment-baseline * CSS Inline Layout Module Level 3
all * CSS Cascading and Inheritance Level 3
animation * CSS Animations Level 1
animation-delay * CSS Animations Level 1
animation-delay-end * Scroll-linked Animations
animation-delay-start * Scroll-linked Animations
animation-direction * CSS Animations Level 1
animation-duration * CSS Animations Level 1
animation-fill-mode * CSS Animations Level 1
animation-iteration-count * CSS Animations Level 1
animation-name * CSS Animations Level 1
animation-play-state * CSS Animations Level 1
animation-range * Scroll-linked Animations
animation-timing-function * CSS Animations Level 1
appearance * CSS Basic User Interface Module Level 4
aspect-ratio * CSS Box Sizing Module Level 4
azimuth * CSS 2.1 REC 应用
backface-visibility * CSS Transforms Module Level 2
background * CSS 2.1
background-attachment * CSS 2.1
background-blend-mode * Compositing and Blending Level 1
background-clip * CSS Backgrounds and Borders Module Level 3
background-color * CSS 2.1
background-image * CSS 2.1
background-origin * CSS Backgrounds and Borders Module Level 3
background-position * CSS 2.1
background-repeat * CSS 2.1
background-size * CSS Backgrounds and Borders Module Level 3
baseline-shift * CSS Inline Layout Module Level 3
baseline-source * CSS Inline Layout Module Level 3
block-ellipsis * CSS Overflow Module Level 3
block-size * CSS Logical Properties and Values Level 1
block-step * CSS Rhythmic Sizing
block-step-align * CSS Rhythmic Sizing
block-step-insert * CSS Rhythmic Sizing
block-step-round * CSS Rhythmic Sizing
block-step-size * CSS Rhythmic Sizing
bookmark-label * CSS Generated Content Module Level 3
bookmark-level * CSS Generated Content Module Level 3
bookmark-state * CSS Generated Content Module Level 3
border * CSS 2.1
border-block * CSS Logical Properties and Values Level 1
border-block-color * CSS Logical Properties and Values Level 1
border-block-end * CSS Logical Properties and Values Level 1
border-block-end-color * CSS Logical Properties and Values Level 1
border-block-end-style * CSS Logical Properties and Values Level 1
border-block-end-width * CSS Logical Properties and Values Level 1
border-block-start * CSS Logical Properties and Values Level 1
border-block-start-color * CSS Logical Properties and Values Level 1
border-block-start-style * CSS Logical Properties and Values Level 1
border-block-start-width * CSS Logical Properties and Values Level 1
border-block-style * CSS Logical Properties and Values Level 1
border-block-width * CSS Logical Properties and Values Level 1
border-bottom * CSS 2.1
border-bottom-color * CSS 2.1
border-bottom-left-radius * CSS Backgrounds and Borders Module Level 3
border-bottom-right-radius * CSS Backgrounds and Borders Module Level 3
border-bottom-style * CSS 2.1
border-bottom-width * CSS 2.1
border-boundary * CSS Round Display Level 1
border-collapse * CSS 2.1
border-color * CSS 2.1
border-end-end-radius * CSS Logical Properties and Values Level 1
border-end-start-radius * CSS Logical Properties and Values Level 1
border-image * CSS Backgrounds and Borders Module Level 3
border-image-outset * CSS Backgrounds and Borders Module Level 3
border-image-repeat * CSS Backgrounds and Borders Module Level 3
border-image-slice * CSS Backgrounds and Borders Module Level 3
border-image-source * CSS Backgrounds and Borders Module Level 3
border-image-width * CSS Backgrounds and Borders Module Level 3
border-inline * CSS Logical Properties and Values Level 1
border-inline-color * CSS Logical Properties and Values Level 1
border-inline-end * CSS Logical Properties and Values Level 1
border-inline-end-color * CSS Logical Properties and Values Level 1
border-inline-end-style * CSS Logical Properties and Values Level 1
border-inline-end-width * CSS Logical Properties and Values Level 1
border-inline-start * CSS Logical Properties and Values Level 1
border-inline-start-color * CSS Logical Properties and Values Level 1
border-inline-start-style * CSS Logical Properties and Values Level 1
border-inline-start-width * CSS Logical Properties and Values Level 1
border-inline-style * CSS Logical Properties and Values Level 1
border-inline-width * CSS Logical Properties and Values Level 1
border-left * CSS 2.1
border-left-color * CSS 2.1
border-left-style * CSS 2.1
border-left-width * CSS 2.1
border-radius * CSS Backgrounds and Borders Module Level 3
border-right * CSS 2.1
border-right-color * CSS 2.1
border-right-style * CSS 2.1
border-right-width * CSS 2.1
border-spacing * CSS 2.1
border-start-end-radius * CSS Logical Properties and Values Level 1
border-start-start-radius * CSS Logical Properties and Values Level 1
border-style * CSS 2.1
border-top * CSS 2.1
border-top-color * CSS 2.1
border-top-left-radius * CSS Backgrounds and Borders Module Level 3
border-top-right-radius * CSS Backgrounds and Borders Module Level 3
border-top-style * CSS 2.1
border-top-width * CSS 2.1
border-width * CSS 2.1
bottom * CSS 2.1
box-decoration-break * CSS Fragmentation Module Level 4
box-shadow * CSS Backgrounds and Borders Module Level 3
box-sizing * CSS Box Sizing Module Level 3
box-snap * CSS Line Grid Module Level 1
break-after * CSS Fragmentation Module Level 4
break-before * CSS Fragmentation Module Level 4
break-inside * CSS Fragmentation Module Level 4
caption-side * CSS 2.1
caret * CSS Basic User Interface Module Level 4
caret-color * CSS Basic User Interface Module Level 3 (CSS3 UI)
caret-shape * CSS Basic User Interface Module Level 4
chains * CSS Template Layout Module
clear * CSS 2.1
clip * CSS 2.1
clip-path * CSS Masking Module Level 1
clip-rule * CSS Masking Module Level 1
color * CSS 2.1
color-adjust * CSS Color Adjustment Module Level 1
color-interpolation-filters * Filter Effects Module Level 1
color-scheme * CSS Color Adjustment Module Level 1
column-count * CSS Multi-column Layout Module Level 1
column-fill * CSS Multi-column Layout Module Level 1
column-gap * CSS Box Alignment Module Level 3
column-rule * CSS Multi-column Layout Module Level 1
column-rule-color * CSS Multi-column Layout Module Level 1
column-rule-style * CSS Multi-column Layout Module Level 1
column-rule-width * CSS Multi-column Layout Module Level 1
column-span * CSS Multi-column Layout Module Level 1
column-width * CSS Multi-column Layout Module Level 1
columns * CSS Multi-column Layout Module Level 1
contain * CSS Containment Module Level 1
contain-intrinsic-block-size * CSS Box Sizing Module Level 4
contain-intrinsic-height * CSS Box Sizing Module Level 4
contain-intrinsic-inline-size * CSS Box Sizing Module Level 4
contain-intrinsic-size * CSS Box Sizing Module Level 4
contain-intrinsic-width * CSS Box Sizing Module Level 4
container * CSS Containment Module Level 3 ED 应用
container-name * CSS Containment Module Level 3 ED 应用
container-type * CSS Containment Module Level 3 ED 应用
content * CSS 2.1
content-visibility * CSS Containment Module Level 2
continue * CSS Overflow Module Level 3
counter-increment * CSS 2.1
counter-reset * CSS 2.1
counter-set * CSS Lists and Counters Module Level 3
cue * CSS 2.1
cue-after * CSS 2.1
cue-before * CSS 2.1
cursor * CSS 2.1
direction * CSS 2.1
display * CSS 2.1
dominant-baseline * CSS Inline Layout Module Level 3
elevation * CSS 2.1 REC 应用
empty-cells * CSS 2.1
fill * CSS Fill and Stroke Module Level 3
fill-break * CSS Fill and Stroke Module Level 3
fill-color * CSS Fill and Stroke Module Level 3
fill-image * CSS Fill and Stroke Module Level 3
fill-opacity * CSS Fill and Stroke Module Level 3
fill-origin * CSS Fill and Stroke Module Level 3
fill-position * CSS Fill and Stroke Module Level 3
fill-repeat * CSS Fill and Stroke Module Level 3
fill-rule * CSS Fill and Stroke Module Level 3
fill-size * CSS Fill and Stroke Module Level 3
filter * Filter Effects Module Level 1
flex * CSS Flexible Box Layout Module Level 1
flex-basis * CSS Flexible Box Layout Module Level 1
flex-direction * CSS Flexible Box Layout Module Level 1
flex-flow * CSS Flexible Box Layout Module Level 1
flex-grow * CSS Flexible Box Layout Module Level 1
flex-shrink * CSS Flexible Box Layout Module Level 1
flex-wrap * CSS Flexible Box Layout Module Level 1
float * CSS 2.1
float-defer * CSS Page Floats
float-offset * CSS Page Floats
float-reference * CSS Page Floats
flood-color * Filter Effects Module Level 1
flood-opacity * Filter Effects Module Level 1
flow * CSS Template Layout Module
flow-from * CSS Regions Module Level 1
flow-into * CSS Regions Module Level 1
font * CSS 2.1
font-family * CSS 2.1
font-feature-settings * CSS Fonts Module Level 3
font-kerning * CSS Fonts Module Level 3
font-language-override * CSS Fonts Module Level 4
font-optical-sizing * CSS Fonts Module Level 4
font-palette * CSS Fonts Module Level 4
font-size * CSS 2.1
font-size-adjust * CSS Fonts Module Level 3
font-stretch * CSS Fonts Module Level 3
font-style * CSS 2.1
font-synthesis * CSS Fonts Module Level 3
font-synthesis-small-caps * CSS Fonts Module Level 4
font-synthesis-style * CSS Fonts Module Level 4
font-synthesis-weight * CSS Fonts Module Level 4
font-variant * CSS 2.1
font-variant-alternates * CSS Fonts Module Level 4
font-variant-caps * CSS Fonts Module Level 3
font-variant-east-asian * CSS Fonts Module Level 3
font-variant-emoji * CSS Fonts Module Level 4
font-variant-ligatures * CSS Fonts Module Level 3
font-variant-numeric * CSS Fonts Module Level 3
font-variant-position * CSS Fonts Module Level 3
font-variation-settings * CSS Fonts Module Level 4
font-weight * CSS 2.1
footnote-display * CSS Generated Content for Paged Media Module
footnote-policy * CSS Generated Content for Paged Media Module
forced-color-adjust * CSS Color Adjustment Module Level 1
gap * CSS Box Alignment Module Level 3
glyph-orientation-vertical * CSS Writing Modes Level 3
grid * CSS Grid Layout Module Level 2
grid-area * CSS Grid Layout Module Level 2
grid-auto-columns * CSS Grid Layout Module Level 2
grid-auto-flow * CSS Grid Layout Module Level 2
grid-auto-rows * CSS Grid Layout Module Level 2
grid-column * CSS Grid Layout Module Level 2
grid-column-end * CSS Grid Layout Module Level 2
grid-column-start * CSS Grid Layout Module Level 2
grid-row * CSS Grid Layout Module Level 2
grid-row-end * CSS Grid Layout Module Level 2
grid-row-start * CSS Grid Layout Module Level 2
grid-template * CSS Grid Layout Module Level 2
grid-template-areas * CSS Grid Layout Module Level 2
grid-template-columns * CSS Grid Layout Module Level 2
grid-template-rows * CSS Grid Layout Module Level 2
hanging-punctuation * CSS Text Module Level 3
height * CSS 2.1
hyphenate-character * CSS Text Module Level 4
hyphenate-limit-chars * CSS Text Module Level 4
hyphenate-limit-last * CSS Text Module Level 4
hyphenate-limit-lines * CSS Text Module Level 4
hyphenate-limit-zone * CSS Text Module Level 4
hyphens * CSS Text Module Level 3
image-orientation * CSS Images Module Level 3
image-rendering * CSS Images Module Level 3
image-resolution * CSS Image Values and Replaced Content Module Level 4
initial-letter * CSS Inline Layout Module Level 3
initial-letter-align * CSS Inline Layout Module Level 3
initial-letter-wrap * CSS Inline Layout Module Level 3
inline-size * CSS Logical Properties and Values Level 1
inline-sizing * CSS Inline Layout Module Level 3
input-security * CSS Basic User Interface Module Level 4 ED 应用
inset * CSS Logical Properties and Values Level 1
inset-block * CSS Logical Properties and Values Level 1
inset-block-end * CSS Logical Properties and Values Level 1
inset-block-start * CSS Logical Properties and Values Level 1
inset-inline * CSS Logical Properties and Values Level 1
inset-inline-end * CSS Logical Properties and Values Level 1
inset-inline-start * CSS Logical Properties and Values Level 1
isolation * Compositing and Blending Level 1
justify-content * CSS Box Alignment Module Level 3
justify-items * CSS Box Alignment Module Level 3
justify-self * CSS Box Alignment Module Level 3
leading-trim * CSS Inline Layout Module Level 3
left * CSS 2.1
letter-spacing * CSS 2.1
lighting-color * Filter Effects Module Level 1
line-break * CSS Text Module Level 3
line-clamp * CSS Overflow Module Level 3
line-grid * CSS Line Grid Module Level 1
line-height * CSS 2.1
line-height-step * CSS Rhythmic Sizing
line-padding * CSS Text Module Level 4
line-snap * CSS Line Grid Module Level 1
list-style * CSS 2.1
list-style-image * CSS 2.1
list-style-position * CSS 2.1
list-style-type * CSS 2.1
margin * CSS 2.1
margin-block * CSS Logical Properties and Values Level 1
margin-block-end * CSS Logical Properties and Values Level 1
margin-block-start * CSS Logical Properties and Values Level 1
margin-bottom * CSS 2.1
margin-break * CSS Fragmentation Module Level 4
margin-inline * CSS Logical Properties and Values Level 1
margin-inline-end * CSS Logical Properties and Values Level 1
margin-inline-start * CSS Logical Properties and Values Level 1
margin-left * CSS 2.1
margin-right * CSS 2.1
margin-top * CSS 2.1
margin-trim * CSS Box Model Module Level 4
marker * SVG Markers
marker-end * SVG Markers
marker-knockout-left * SVG Markers
marker-knockout-right * SVG Markers
marker-mid * SVG Markers
marker-pattern * SVG Markers
marker-segment * SVG Markers
marker-side * CSS Lists and Counters Module Level 3
marker-start * SVG Markers
mask * CSS Masking Module Level 1
mask-border * CSS Masking Module Level 1
mask-border-mode * CSS Masking Module Level 1
mask-border-outset * CSS Masking Module Level 1
mask-border-repeat * CSS Masking Module Level 1
mask-border-slice * CSS Masking Module Level 1
mask-border-source * CSS Masking Module Level 1
mask-border-width * CSS Masking Module Level 1
mask-clip * CSS Masking Module Level 1
mask-composite * CSS Masking Module Level 1
mask-image * CSS Masking Module Level 1
mask-mode * CSS Masking Module Level 1
mask-origin * CSS Masking Module Level 1
mask-position * CSS Masking Module Level 1
mask-repeat * CSS Masking Module Level 1
mask-size * CSS Masking Module Level 1
mask-type * CSS Masking Module Level 1
max-block-size * CSS Logical Properties and Values Level 1
max-height * CSS 2.1
max-inline-size * CSS Logical Properties and Values Level 1
max-lines * CSS Overflow Module Level 3
max-width * CSS 2.1
min-block-size * CSS Logical Properties and Values Level 1
min-height * CSS 2.1
min-inline-size * CSS Logical Properties and Values Level 1
min-intrinsic-sizing * CSS Box Sizing Module Level 4
min-width * CSS 2.1
mix-blend-mode * Compositing and Blending Level 1
nav-down * CSS Basic User Interface Module Level 4
nav-left * CSS Basic User Interface Module Level 4
nav-right * CSS Basic User Interface Module Level 4
nav-up * CSS Basic User Interface Module Level 4
object-fit * CSS Images Module Level 3
object-position * CSS Images Module Level 3
offset * Motion Path Module Level 1
offset-anchor * Motion Path Module Level 1
offset-distance * Motion Path Module Level 1
offset-path * Motion Path Module Level 1
offset-position * Motion Path Module Level 1
offset-rotate * Motion Path Module Level 1
opacity * CSS Color Module Level 3
order * CSS Display Module Level 3
orphans * CSS 2.1
outline * CSS 2.1
outline-color * CSS 2.1
outline-offset * CSS Basic User Interface Module Level 3 (CSS3 UI)
outline-style * CSS 2.1
outline-width * CSS 2.1
overflow * CSS 2.1
overflow-anchor * CSS Scroll Anchoring Module Level 1
overflow-block * CSS Overflow Module Level 3
overflow-clip-margin * CSS Overflow Module Level 3
overflow-inline * CSS Overflow Module Level 3
overflow-wrap * CSS Text Module Level 3
overflow-x * CSS Overflow Module Level 3
overflow-y * CSS Overflow Module Level 3
overscroll-behavior * CSS Overscroll Behavior Module Level 1
overscroll-behavior-block * CSS Overscroll Behavior Module Level 1
overscroll-behavior-inline * CSS Overscroll Behavior Module Level 1
overscroll-behavior-x * CSS Overscroll Behavior Module Level 1
overscroll-behavior-y * CSS Overscroll Behavior Module Level 1
padding * CSS 2.1
padding-block * CSS Logical Properties and Values Level 1
padding-block-end * CSS Logical Properties and Values Level 1
padding-block-start * CSS Logical Properties and Values Level 1
padding-bottom * CSS 2.1
padding-inline * CSS Logical Properties and Values Level 1
padding-inline-end * CSS Logical Properties and Values Level 1
padding-inline-start * CSS Logical Properties and Values Level 1
padding-left * CSS 2.1
padding-right * CSS 2.1
padding-top * CSS 2.1
page * CSS Paged Media Module Level 3
page-break-after * CSS 2.1
page-break-before * CSS 2.1
page-break-inside * CSS 2.1
pause * CSS 2.1
pause-after * CSS 2.1
pause-before * CSS 2.1
perspective * CSS Transforms Module Level 2
perspective-origin * CSS Transforms Module Level 2
pitch * CSS 2.1 REC 应用
pitch-range * CSS 2.1 REC 应用
place-content * CSS Box Alignment Module Level 3
place-items * CSS Box Alignment Module Level 3
place-self * CSS Box Alignment Module Level 3
play-during * CSS 2.1 REC 应用
pointer-events * CSS Basic User Interface Module Level 4 ED 应用
position * CSS 2.1
print-color-adjust * CSS Color Adjustment Module Level 1
property-name * Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification
quotes * CSS 2.1
region-fragment * CSS Regions Module Level 1
resize * CSS Basic User Interface Module Level 3 (CSS3 UI)
rest * CSS Speech Module
rest-after * CSS Speech Module
rest-before * CSS Speech Module
richness * CSS 2.1 REC 应用
right * CSS 2.1
rotate * CSS Transforms Module Level 2
row-gap * CSS Box Alignment Module Level 3
ruby-align * CSS Ruby Annotation Layout Module Level 1
ruby-merge * CSS Ruby Annotation Layout Module Level 1
ruby-overhang * CSS Ruby Annotation Layout Module Level 1
ruby-position * CSS Ruby Annotation Layout Module Level 1
running * CSS Generated Content for Paged Media Module
scale * CSS Transforms Module Level 2
scroll-behavior * CSS Overflow Module Level 3
scroll-margin * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-block * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-block-end * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-block-start * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-bottom * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-inline * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-inline-end * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-inline-start * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-left * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-right * CSS Scroll Snap Module Level 1 ED 应用
scroll-margin-top * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-block * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-block-end * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-block-start * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-bottom * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-inline * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-inline-end * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-inline-start * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-left * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-right * CSS Scroll Snap Module Level 1 ED 应用
scroll-padding-top * CSS Scroll Snap Module Level 1 ED 应用
scroll-snap-align * CSS Scroll Snap Module Level 1 ED 应用
scroll-snap-stop * CSS Scroll Snap Module Level 1 ED 应用
scroll-snap-type * CSS Scroll Snap Module Level 1 ED 应用
scroll-timeline * Scroll-linked Animations
scroll-timeline-axis * Scroll-linked Animations
scroll-timeline-name * Scroll-linked Animations
scrollbar-color * CSS Scrollbars Styling Module Level 1
scrollbar-gutter * CSS Overflow Module Level 3
scrollbar-width * CSS Scrollbars Styling Module Level 1
shape-image-threshold * CSS Shapes Module Level 1
shape-inside * CSS Round Display Level 1
shape-margin * CSS Shapes Module Level 1
shape-outside * CSS Shapes Module Level 1
spatial-navigation-action * CSS Spatial Navigation Level 1
spatial-navigation-contain * CSS Spatial Navigation Level 1
spatial-navigation-function * CSS Spatial Navigation Level 1
speak * CSS 2.1
speak-as * CSS Speech Module
speak-header * CSS 2.1 REC 应用
speak-numeral * CSS 2.1 REC 应用
speak-punctuation * CSS 2.1 REC 应用
speech-rate * CSS 2.1 REC 应用
stress * CSS 2.1 REC 应用
string-set * CSS Generated Content Module Level 3
stroke * CSS Fill and Stroke Module Level 3
stroke-align * CSS Fill and Stroke Module Level 3
stroke-alignment * SVG Strokes
stroke-break * CSS Fill and Stroke Module Level 3
stroke-color * CSS Fill and Stroke Module Level 3
stroke-dash-corner * CSS Fill and Stroke Module Level 3
stroke-dash-justify * CSS Fill and Stroke Module Level 3
stroke-dashadjust * SVG Strokes
stroke-dasharray * CSS Fill and Stroke Module Level 3
stroke-dashcorner * SVG Strokes
stroke-dashoffset * CSS Fill and Stroke Module Level 3
stroke-image * CSS Fill and Stroke Module Level 3
stroke-linecap * CSS Fill and Stroke Module Level 3
stroke-linejoin * CSS Fill and Stroke Module Level 3
stroke-miterlimit * CSS Fill and Stroke Module Level 3
stroke-opacity * CSS Fill and Stroke Module Level 3
stroke-origin * CSS Fill and Stroke Module Level 3
stroke-position * CSS Fill and Stroke Module Level 3
stroke-repeat * CSS Fill and Stroke Module Level 3
stroke-size * CSS Fill and Stroke Module Level 3
stroke-width * CSS Fill and Stroke Module Level 3
tab-size * CSS Text Module Level 3
table-layout * CSS 2.1
text-align * CSS 2.1
text-align-all * CSS Text Module Level 3
text-align-last * CSS Text Module Level 3
text-combine-upright * CSS Writing Modes Level 3
text-decoration * CSS 2.1
text-decoration-color * CSS Text Decoration Module Level 3
text-decoration-line * CSS Text Decoration Module Level 3
text-decoration-skip * CSS Text Decoration Module Level 4
text-decoration-skip-box * CSS Text Decoration Module Level 4
text-decoration-skip-ink * CSS Text Decoration Module Level 4
text-decoration-skip-inset * CSS Text Decoration Module Level 4 WD 应用
text-decoration-skip-self * CSS Text Decoration Module Level 4
text-decoration-skip-spaces * CSS Text Decoration Module Level 4
text-decoration-style * CSS Text Decoration Module Level 3
text-decoration-thickness * CSS Text Decoration Module Level 4
text-decoration-trim * CSS Text Decoration Module Level 4 ED 应用
text-edge * CSS Inline Layout Module Level 3
text-emphasis * CSS Text Decoration Module Level 3
text-emphasis-color * CSS Text Decoration Module Level 3
text-emphasis-position * CSS Text Decoration Module Level 3
text-emphasis-skip * CSS Text Decoration Module Level 4
text-emphasis-style * CSS Text Decoration Module Level 3
text-group-align * CSS Text Module Level 4
text-indent * CSS 2.1
text-justify * CSS Text Module Level 3
text-orientation * CSS Writing Modes Level 3
text-overflow * CSS Overflow Module Level 3
text-shadow * CSS Text Decoration Module Level 3
text-space-collapse * CSS Text Module Level 4
text-space-trim * CSS Text Module Level 4
text-spacing * CSS Text Module Level 4
text-transform * CSS 2.1
text-underline-offset * CSS Text Decoration Module Level 4
text-underline-position * CSS Text Decoration Module Level 3
text-wrap * CSS Text Module Level 4
top * CSS 2.1
transform * CSS Transforms Module Level 1
transform-box * CSS Transforms Module Level 1
transform-origin * CSS Transforms Module Level 1
transform-style * CSS Transforms Module Level 2
transition * CSS Transitions
transition-delay * CSS Transitions
transition-duration * CSS Transitions
transition-property * CSS Transitions
transition-timing-function * CSS Transitions
translate * CSS Transforms Module Level 2
unicode-bidi * CSS 2.1
user-select * CSS Basic User Interface Module Level 4
vertical-align * CSS 2.1
view-timeline * Scroll-linked Animations
view-timeline-axis * Scroll-linked Animations
view-timeline-inset * Scroll-linked Animations
view-timeline-name * Scroll-linked Animations
view-transition-name * CSS View Transitions Module Level 1
visibility * CSS 2.1
voice-balance * CSS Speech Module
voice-duration * CSS Speech Module
voice-family * CSS 2.1
voice-pitch * CSS Speech Module
voice-range * CSS Speech Module
voice-rate * CSS Speech Module
voice-stress * CSS Speech Module
voice-volume * CSS Speech Module
volume * CSS 2.1 REC 应用
white-space * CSS 2.1
widows * CSS 2.1
width * CSS 2.1
will-change * CSS Will Change Module Level 1
word-boundary-detection * CSS Text Module Level 4
word-boundary-expansion * CSS Text Module Level 4
word-break * CSS Text Module Level 3
word-spacing * CSS 2.1
word-wrap * CSS Text Module Level 3
wrap-after * CSS Text Module Level 4
wrap-before * CSS Text Module Level 4
wrap-flow * CSS Exclusions Module Level 1
wrap-inside * CSS Text Module Level 4
wrap-through * CSS Exclusions Module Level 1
writing-mode * CSS Writing Modes Level 3
z-index * CSS 2.1
all-space-treatment * CSS3 Text Module CR 未应用
background-break * CSS Backgrounds and Borders Module Level 3 WD 未应用
background-image-transform * CSS Logical Properties and Values Level 1 FPWD 未应用
background-quantity * CSS3 module: Backgrounds LC 未应用
background-spacing * CSS3 module: Backgrounds LC 未应用
bikeshedding * CSS Text Level 3 WD 未应用
bleed * CSS Generated Content for Paged Media Module WD 未应用
block-overflow * CSS Overflow Module Level 3 WD 未应用
block-progression * CSS3 Text Module CR 未应用
bookmark-target * CSS Generated Content for Paged Media Module WD 未应用
border-break * CSS Backgrounds and Borders Module Level 3 WD 未应用
border-image-transform * CSS Logical Properties and Values Level 1 FPWD 未应用
border-length * CSS3 module: Generated Content for Paged Media WD 未应用
box-align * Flexible Box Layout Module WD 未应用
box-break * CSS Backgrounds and Borders Module Level 3 LC 未应用
box-direction * Flexible Box Layout Module WD 未应用
box-flex * Flexible Box Layout Module WD 未应用
box-flex-group * Flexible Box Layout Module WD 未应用
box-height * CSS3 module: The box model WD 未应用
box-lines * Flexible Box Layout Module WD 未应用
box-ordinal-group * Flexible Box Layout Module WD 未应用
box-orient * Flexible Box Layout Module WD 未应用
box-pack * Flexible Box Layout Module WD 未应用
box-suppress * CSS Display Module Level 3 WD 未应用
box-width * CSS3 module: The box model WD 未应用
caret-animation * CSS Basic User Interface Module Level 4 FPWD 未应用
clear-after * CSS Basic Box Model Level 3 WD 未应用
clipPath * CSS Masking Level 1 WD 未应用
color-profile * CSS3 Color Module CR 未应用
column-break-after * CSS3 module: Multi-column layout WD 未应用
column-break-before * CSS3 module: Multi-column layout WD 未应用
content-order * CSS Regions Module WD 未应用
crop * CSS3 Generated and Replaced Content Module WD 未应用
display-box * CSS Display Module Level 3 FPWD 未应用
display-extras * CSS Display Module Level 3 FPWD 未应用
display-inside * CSS Display Module Level 3 WD 未应用
display-list * CSS Display Module Level 3 WD 未应用
display-model * CSS3 Advanced Layout Module WD 未应用
display-outside * CSS Display Module Level 3 WD 未应用
display-role * CSS3 module: The box model WD 未应用
enable-background * Filter Effects 1.0 WD 未应用
feBlend * Filter Effects 1.0 WD 未应用
feColorMatrix * Filter Effects 1.0 WD 未应用
feComponentTransfer * Filter Effects 1.0 WD 未应用
feComposite * Filter Effects 1.0 WD 未应用
feConvolveMatrix * Filter Effects 1.0 WD 未应用
feCustom * Filter Effects 1.0 WD 未应用
feCustomParam * Filter Effects 1.0 WD 未应用
feCustomSource * Filter Effects 1.0 WD 未应用
feDiffuseLighting * Filter Effects 1.0 WD 未应用
feDisplacementMap * Filter Effects 1.0 WD 未应用
feDistantLight * Filter Effects 1.0 WD 未应用
feDropShadow * Filter Effects 1.0 WD 未应用
feFlood * Filter Effects 1.0 WD 未应用
feFuncA * Filter Effects 1.0 WD 未应用
feFuncB * Filter Effects 1.0 WD 未应用
feFuncG * Filter Effects 1.0 WD 未应用
feFuncR * Filter Effects 1.0 WD 未应用
feGaussianBlur * Filter Effects 1.0 WD 未应用
feImage * Filter Effects 1.0 WD 未应用
feMerge * Filter Effects 1.0 WD 未应用
feMergeNode * Filter Effects 1.0 WD 未应用
feMorphology * Filter Effects 1.0 WD 未应用
feOffset * Filter Effects 1.0 WD 未应用
fePointLight * Filter Effects 1.0 WD 未应用
feSpecularLighting * Filter Effects 1.0 WD 未应用
feSpotLight * Filter Effects 1.0 WD 未应用
feTile * Filter Effects 1.0 WD 未应用
feTurbulence * Filter Effects 1.0 WD 未应用
feUnsharpMask * Filter Effects 1.0 WD 未应用
filter-margin * Filter Effects 1.0 WD 未应用
filter-margin-bottom * Filter Effects 1.0 WD 未应用
filter-margin-left * Filter Effects 1.0 WD 未应用
filter-margin-right * Filter Effects 1.0 WD 未应用
filter-margin-top * Filter Effects 1.0 WD 未应用
fit * CSS3 Module: Paged Media LC 未应用
fit-position * CSS3 Module: Paged Media LC 未应用
flex-align * CSS Flexible Box Layout Module WD 未应用
flex-item-align * CSS Flexible Box Layout Module WD 未应用
flex-line-pack * CSS Flexible Box Layout Module WD 未应用
flex-order * CSS Flexible Box Layout Module WD 未应用
flex-pack * CSS Flexible Box Layout Module WD 未应用
float-displace * CSS Basic Box Model Level 3 WD 未应用
float-displace--alternative-2 * CSS Basic Box Model Level 3 WD 未应用
float-displace--alternative-3 * CSS Basic Box Model Level 3 WD 未应用
font-max-size * CSS Fonts Module Level 4 WD 未应用
font-min-size * CSS Fonts Module Level 4 WD 未应用
font-presentation * CSS Fonts Module Level 4 FPWD 未应用
glyph-orientation-horizontal * CSS3 Text Module CR 未应用
grid-after * CSS Grid Layout WD 未应用
grid-auto-position * CSS Grid Layout Module Level 1 WD 未应用
grid-before * CSS Grid Layout WD 未应用
grid-cell * CSS Grid Layout WD 未应用
grid-cell-stacking * Grid Layout WD 未应用
grid-column-align * CSS Grid Layout WD 未应用
grid-column-gap * CSS Grid Layout Module Level 1 CR 未应用
grid-column-position * CSS Grid Layout WD 未应用
grid-column-sizing * CSS Grid Layout WD 未应用
grid-column-span * CSS Grid Layout WD 未应用
grid-columns * CSS Grid Layout WD 未应用
grid-definition-columns * CSS Grid Layout WD 未应用
grid-definition-rows * CSS Grid Layout WD 未应用
grid-end * CSS Grid Layout WD 未应用
grid-flow * CSS Grid Layout WD 未应用
grid-gap * CSS Grid Layout Module Level 1 CR 未应用
grid-position * CSS Grid Layout WD 未应用
grid-row-align * CSS Grid Layout WD 未应用
grid-row-gap * CSS Grid Layout Module Level 1 CR 未应用
grid-row-position * CSS Grid Layout WD 未应用
grid-row-sizing * CSS Grid Layout WD 未应用
grid-row-span * CSS Grid Layout WD 未应用
grid-rows * CSS Grid Layout WD 未应用
grid-span * CSS Grid Layout WD 未应用
grid-start * CSS Grid Layout WD 未应用
hyphenate * CSS3 Text Effects Module WD 未应用
hyphenate-after * CSS Generated Content for Paged Media Module WD 未应用
hyphenate-before * CSS Generated Content for Paged Media Module WD 未应用
hyphenate-dictionary * CSS3 module: Generated Content for Paged Media WD 未应用
hyphenate-limit-after * CSS Text Level 3 WD 未应用
hyphenate-limit-before * CSS Text Level 3 WD 未应用
hyphenate-lines * CSS Generated Content for Paged Media Module WD 未应用
hyphenate-resource * CSS Text Level 3 WD 未应用
icon * CSS Basic User Interface Module Level 3 (CSS3 UI) LC 未应用
ime-mode * CSS Basic User Interface Module Level 3 (CSS3 UI) LC 未应用
indent-edge-reset * CSS Basic Box Model Level 3 WD 未应用
initial-letters * CSS Inline Layout Module Level 3 WD 未应用
initial-letters-align * CSS Inline Layout Module Level 3 WD 未应用
initial-letters-wrap * CSS Inline Layout Module Level 3 WD 未应用
kerning-mode * CSS3 Text Module CR 未应用
kerning-pair-threshold * CSS3 Text Module CR 未应用
key-equivalent * CSS3 Basic User Interface Module LC 未应用
leading-trim-over * CSS Inline Layout Module Level 3 WD 未应用
leading-trim-under * CSS Inline Layout Module Level 3 WD 未应用
line-grid-mode * CSS3 Text Module CR 未应用
line-grid-progression * CSS3 Text Module CR 未应用
line-sizing * CSS Inline Layout Module Level 3 WD 未应用
line-slack * CSS Line Grid Module Level 1 FPWD 未应用
linefeed-treatment * CSS3 Text Module CR 未应用
mark * CSS3 Speech Module WD 未应用
mark-after * CSS3 Speech Module WD 未应用
mark-before * CSS3 Speech Module WD 未应用
marks * CSS Generated Content for Paged Media Module WD 未应用
marquee * CSS3 module: The box model WD 未应用
marquee-direction * CSS Marquee Module Level 3 LC 未应用
marquee-loop * CSS basic box model WD 未应用
marquee-play-count * CSS Marquee Module Level 3 LC 未应用
marquee-repetition * CSS3 module: The box model WD 未应用
marquee-speed * CSS Marquee Module Level 3 LC 未应用
marquee-style * CSS Marquee Module Level 3 LC 未应用
mask-box * CSS Masking Module Level 1 WD 未应用
mask-box-image * CSS Masking Module Level 1 LC 未应用
mask-box-image-outset * CSS Masking Module Level 1 LC 未应用
mask-box-image-repeat * CSS Masking Module Level 1 LC 未应用
mask-box-image-slice * CSS Masking Module Level 1 LC 未应用
mask-box-image-source * CSS Masking Module Level 1 LC 未应用
mask-box-image-width * CSS Masking Module Level 1 LC 未应用
mask-box-outset * CSS Masking Module Level 1 WD 未应用
mask-box-repeat * CSS Masking Module Level 1 WD 未应用
mask-box-slice * CSS Masking Module Level 1 WD 未应用
mask-box-source * CSS Masking Module Level 1 WD 未应用
mask-box-width * CSS Masking Module Level 1 WD 未应用
mask-source-type * CSS Masking Module Level 1 WD 未应用
max-font-size * CSS3 Text Module CR 未应用
max-zoom * CSS Device Adaptation WD 未应用
min-font-size * CSS3 Text Module CR 未应用
min-zoom * CSS Device Adaptation WD 未应用
motion * Motion Path Module Level 1 FPWD 未应用
motion-offset * Motion Path Module Level 1 FPWD 未应用
motion-path * Motion Path Module Level 1 FPWD 未应用
motion-rotation * Motion Path Module Level 1 FPWD 未应用
move-to * CSS3 Generated and Replaced Content Module WD 未应用
nav-index * CSS Basic User Interface Module Level 3 (CSS3 UI) LC 未应用
offset-after * CSS Positioned Layout Module Level 3 WD 未应用
offset-before * CSS Positioned Layout Module Level 3 WD 未应用
offset-end * CSS Positioned Layout Module Level 3 WD 未应用
offset-start * CSS Positioned Layout Module Level 3 WD 未应用
orientation * CSS Device Adaptation WD 未应用
overflow-clip * CSS3 module: The box model WD 未应用
overflow-style * CSS Marquee Module Level 3 LC 未应用
page-policy * CSS3 Paged Media Module CR 未应用
page-transition-tag * CSS View Transitions Module Level 1 FPWD 未应用
phonemes * CSS3 Speech Module WD 未应用
polar-anchor * CSS Round Display Level 1 WD 未应用
polar-angle * CSS Round Display Level 1 WD 未应用
polar-distance * CSS Round Display Level 1 WD 未应用
polar-origin * CSS Round Display Level 1 WD 未应用
presentation-level * CSS3 module: Presentation Levels WD 未应用
punctuation-trim * CSS Text Level 3 WD 未应用
region-overflow * CSS Regions Module Level 3 WD 未应用
rendering-intent * CSS3 Color Module CR 未应用
resizer * CSS3 module: Basic User Interface WD 未应用
resolution * CSS Device Adaptation WD 未应用
rotation * CSS basic box model WD 未应用
rotation-point * CSS basic box model WD 未应用
scroll-snap-coordinate * CSS Scroll Snap Points Module Level 1 FPWD 未应用
scroll-snap-destination * CSS Scroll Snap Points Module Level 1 FPWD 未应用
scroll-snap-margin * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-block * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-block-end * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-block-start * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-bottom * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-inline * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-inline-end * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-inline-start * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-left * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-right * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-margin-top * CSS Scroll Snap Module Level 1 CR 未应用
scroll-snap-padding * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-block * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-block-end * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-block-start * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-bottom * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-inline * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-inline-end * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-inline-start * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-left * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-right * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-padding-top * CSS Scroll Snap Module Level 1 WD 未应用
scroll-snap-points-x * CSS Scroll Snap Points Module Level 1 FPWD 未应用
scroll-snap-points-y * CSS Scroll Snap Points Module Level 1 FPWD 未应用
size * CSS Paged Media Module Level 3 WD 未应用
something-or-other * CSS Inline Layout Module Level 3 WD 未应用
speakability * CSS3 Speech Module WD 未应用
tab-side * CSS Advanced Layout Module WD 未应用
target * CSS3 Hyperlink Presentation Module WD 未应用
target-name * CSS3 Hyperlink Presentation Module WD 未应用
target-new * CSS3 Hyperlink Presentation Module WD 未应用
target-position * CSS3 Hyperlink Presentation Module WD 未应用
text-align-first * CSS Text Level 3 WD 未应用
text-autospace * CSS Text Level 3 WD 未应用
text-blink * CSS3 Text Module CR 未应用
text-block-indent * CSS3 module: text LC 未应用
text-combine * CSS Writing Modes Module Level 3 WD 未应用
text-combine-horizontal * CSS Writing Modes Level 3 LC 未应用
text-combine-mode * CSS Writing Modes Module Level 3 WD 未应用
text-decoration-width * CSS Text Decoration Module Level 4 FPWD 未应用
text-first-indent * CSS3 module: text LC 未应用
text-justify-trim * CSS3 Text Module CR 未应用
text-kashida-space * CSS3 Text Module CR 未应用
text-line-through * CSS3 Text Module CR 未应用
text-line-through-color * CSS3 Text Module CR 未应用
text-line-through-mode * CSS3 Text Module CR 未应用
text-line-through-style * CSS3 Text Module CR 未应用
text-line-through-width * CSS3 Text Module CR 未应用
text-outline * CSS Text Level 3 WD 未应用
text-overflow-ellipsis * CSS3 Text Module CR 未应用
text-overflow-mode * CSS3 Text Module CR 未应用
text-overline * CSS3 Text Module CR 未应用
text-overline-color * CSS3 Text Module CR 未应用
text-overline-mode * CSS3 Text Module CR 未应用
text-overline-style * CSS3 Text Module CR 未应用
text-overline-width * CSS3 Text Module CR 未应用
text-replace * CSS3 module: Generated Content for Paged Media WD 未应用
text-script * CSS3 Text Module CR 未应用
text-trim * CSS Text Level 3 WD 未应用
text-underline * CSS3 Text Module CR 未应用
text-underline-color * CSS3 Text Module CR 未应用
text-underline-mode * CSS3 Text Module CR 未应用
text-underline-style * CSS3 Text Module CR 未应用
text-underline-width * CSS3 Text Module CR 未应用
user-zoom * CSS Device Adaptation WD 未应用
var-* * CSS Custom Properties for Cascading Variables Module Level 1 LC 未应用
vertical-position * CSS Fonts Module Level 3 WD 未应用
voice-pitch-range * CSS3 Speech Module WD 未应用
white-space-collapse * CSS Text Level 3 WD 未应用
white-space-collapsing * CSS Text Level 3 WD 未应用
white-space-treatment * CSS3 Text Module CR 未应用
word-break-cjk * CSS3 Text Module CR 未应用
word-break-inside * CSS3 Text Module CR 未应用
wrap * CSS Exclusions and Shapes Module Level 3 WD 未应用
wrap-margin * CSS Exclusions and Shapes Module Level 3 WD 未应用
wrap-option * CSS3 Text Module CR 未应用
wrap-padding * CSS Exclusions and Shapes Module Level 3 WD 未应用
zoom * CSS Device Adaptation WD 未应用

引言

CSS 特性,层叠性、继承性和特殊性。

单位

标题文字 标题文字 标题文字
百分比 示例 示例
rem 示例 示例
em 示例 示例
pt 示例 示例
px 示例 示例
in 示例 示例

布局

BFC Flex 浮动
stacking context IFC 等高布局
示例 示例 示例

属性

position visibility vertical-align box-shadow
box-sizing font 伪类 pointer-events
transform translate transition animation

word

word-break word-wrap table-layout

函数

calc 示例 示例
示例 示例 示例
示例 示例 示例

变形

拉伸 示例 示例
示例 示例 示例
示例 示例 示例

盒模型

假设参数 w=width,b=border,p=padding,c=content,计算盒模型。


块级元素示意图为

标准盒模型(Standards 盒模型)

box-sizing: content-box;

标准盒模型计算公式为 w=c,示意图为 。

怪异盒模型(Quirks 盒模型,IE 盒模型)

box-sizing: border-box;

怪异盒模型计算公式为 w=2∗(b+p)+c,示意图为 。

文档流

基线

布局

水平布局 垂直布局 居中布局 两列布局 三列布局 双飞翼布局
等分布局 等高布局 多列布局 全屏布局 卡片布局 网格布局
流动布局 浮动布局 位置布局 表格布局 圣杯布局 瀑布流布局

布局工具

layoutit build layoutit cssgrid-generator vue-grid-generator csslayout griddy

画图

画圆 三角形 path
示例 示例 示例
示例 示例 示例

关键字

蒙层 文档流 字体
解析方向 层叠上下文 隐藏文本
css联动 文本 阴影

问题

margin合并 示例 示例
示例 示例 示例
示例 示例 示例

命名方案

BEM scoped css css modules
css-in-js OOCSS SMACSS
ACSS 示例 示例

项目方案

askgo 示例 示例
示例 示例 示例
示例 示例 示例

CSS

CSS Level 1

REC-CSS1-19961217 REC-CSS1-19990111 REC-CSS1-20080411

CSS Level 2

REC-CSS2-20110607 WD-CSS22-20160412

CSS Level 3

CSS3

CSS Level 4 and beyond

CSS Now

CSS Snapshot 2017

备注

语法糖

cssnext CSS in JS 示例
示例 示例 示例
示例 示例 示例

方案

栅格

栅格布局

1010 示例

标签

span div img
示例 示例 示例
示例 示例 示例

动效

进度条 示例 示例
示例 示例 示例
示例 示例 示例

默认

user agent stylesheet 示例 示例
示例 示例 示例
示例 示例 示例

加载方式

js异步加载CSS 分步渲染 Firefixing
hack flexbox 示例 示例
示例 示例 示例

预处理器

sass 示例 示例
less 示例 示例
stylus 示例 示例

事件

事件

hack

雪碧图(css sprite) 示例 示例
示例 示例 示例
示例 示例 示例

other

autoprefixer postcss

error

  • 相邻元素margin的自动合并与float
  • margin塌陷
  • h3 标签的 margin-top 自动与父亲节点合并
    父亲节点设置
    overflow: hidden
    
  • display: table-row; border 无效
    父元素添加 display: table; border-collapse: collapse;

测量工具

编辑器

在线编辑

清楚默认样式

Normalize.css

Normalize.css 尽量保留浏览器的默认样式,不进行过多的重置。

normalize.css
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:0;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

Reset.css

Reset.css 会尽可能的清除浏览器的默认样式,以此保持各浏览器标签元素的渲染一致性。除此之外,还可参考 YUI [1] 的 CSS Reset 方案。国内曾昙花一现的方案也有 KISSY[2] 内的 CSS Reset 方案。

reset.css
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

获取 DOM 的 CSS 样式

// 获取样式属性值
const getStyle = (element, attr) => {
  if(element.currentStyle) {
    return element.currentStyle[attr];
  } else {
    return window.getComputedStyle(element, false)[attr];
  }
}
  1. ↑ YUI. CSS Reset[OL]. https://clarle.github.io/yui3/yui/docs/cssreset.
  2. ↑ Alibaba. KISSY CSS Reset的理念[OL]. 2009. http://docs.kissyui.com/1.1.6/cssreset/index.html