CSS does not inherit from the parent: 1. Text attributes; 2. Box model attributes; 3. Background attributes; 4. Positioning attributes; 5. Generate content attributes; 6. Outline style attributes; 7. Page style attributes; 8. Sound style attributes.
The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.
css that does not inherit from the parent include:
1. display: Specifies the type of box that the element should generate
2. Text attributes:
vertical-align: Vertical text alignment
text-decoration: Specifies the decorations added to the text
text-shadow: Text shadow effect
white-space: White space processing
unicode-bidi: Set the direction of text
3. Box model attributes:
width, height, margin, margin-top, margin-right, margin-bottom, margin-left, border, border- style, border-top-style, border-right-style, border-bottom-style, border-left-style, border-width, border-top-width, border-right-right, border-bottom-width, border- left-width, border-color, border-top-color, border-right-color, border-bottom-color, border-left-color, border-top, border-right, border-bottom, border-left, padding, padding-top, padding-right, padding-bottom, padding-left
4, background attributes:
background, background-color, background-image, background-repeat, background-position, background-attachment
5. Positioning attributes:
float, clear, position, top, right, bottom, left, min-width, min-height, max-width, max-height, overflow, clip, z-index
6, generated content attributes:
content, counter-reset, counter-increment
7, outline style attributes:
outline-style, outline-width, outline-color, outline
8, page style attributes:
size, page-break-before, page-break-after
9. Sound style attributes:
pause-before, pause-after, pause, cue-before, cue-after, cue, play-during
Recommended related tutorials:CSS video tutorial
The above is the detailed content of What properties in css do not inherit from the parent?. For more information, please follow other related articles on the PHP Chinese website!