CSSは継承して、どれらの属性は継承することができて、どれらはできません

2583 ワード

一、継承性のない属性
1、display:規定要素が生成すべき枠のタイプ2、テキスト属性:vertical-align:垂直テキスト揃えtext-decoration:規定テキストに追加する装飾text-shadow:テキストシャドウ効果white-space:空白文字の処理unicode-bidi:テキストの方向を設定する3、箱モデルの属性: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、background-color、background-image、background-repeat、background-position、background-attachment
5、位置決め属性:float、clear、position、top、right、bottom、left、min-width、min-height、max-width、max-height、overflow、clip、z-index
6、コンテンツ属性の生成:content、counter-reset、counter-increment
7、輪郭スタイル属性:outline-style、outline-width、outline-color、outline
8、ページスタイル属性:size、page-break-before、page-break-after
9、音声スタイル属性:pause-before、pause-after、pause、cue-before、cue-after、cue、play-during
二、継承性のある属性
1、フォントシリーズ属性font:組み合わせフォントfont-family:所定要素のフォントシリーズfont-weight:設定フォントの太さfont-size:設定フォントのサイズfont-style:フォントのスタイルを定義font-variant:小型大文字のフォント表示テキストを設定し、これはすべての小文字が大文字に変換されることを意味する.ただし、小型大文字フォントを使用するすべてのアルファベットは、残りのテキストに比べてフォントサイズが小さくなります.font-stretch:現在のfont-familyを伸縮変形する.すべての主流ブラウザではサポートされていません.font-size-adjust:ある要素にaspect値を指定することで、優先フォントのx-height 2、テキスト系列属性text-indent:テキストインデントtext-align:テキスト水平整列line-height:行高word-spacing:単語間の空白を増加または減少letter-spacing:文字間の空白を増加または減少text-transform:テキストサイズを制御する書き込みdirection:テキストの書く方向を規定するcolor:テキスト色3、要素の可視性:visibility 4、テーブルレイアウトプロパティ:caption-side、border-collapse、border-spacing、empty-cells、table-layout
5、リストレイアウト属性:list-style-type、list-style-image、list-style-position、list-style
6、コンテンツ属性の生成:quotes
7、カーソル属性:cursor
8、ページスタイル属性:page、page-break-inside、windows、orphans
9、音声スタイル属性:speak、speak-punctuation、speak-numeral、speak-header、speech-rate、volume、voice-family、pitch、pitch-range、stress、richness、azimuth、elevation
三、すべての要素が継承できる属性
1、要素可視性:visibility 2、カーソル属性:cursor
四、インライン要素が継承できる属性
1、フォントシリーズ属性2、text-indent、text-align以外のテキストシリーズ属性
五、ブロックレベル要素が継承できる属性
1、text-indent、text-align