首页 > 试题广场 >

以下哪个 CSS 属性是继承属性(inherited)?

[单选题]
以下哪个 CSS 属性是继承属性(inherited)?
  • vertical-align
  • background-color
  • text-indent
  • justify-content
继承就是指子节点默认使用父节点的样式属性。 不可继承的属性太多了不要背,记住可以继承的属性有哪些就行了。可以继承的属性很少,只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承。 所有元素可继承:visibility和cursor。 内联元素可继承:letter-spacing、word-spacing、white-space、line-height、color、font、font-family、font-size、font-style、font-variant、font-weight、text-decoration、text-transform、direction。 终端块状元素可继承:text-indent和text-align。 列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。
发表于 2019-08-16 18:26:27 回复(10)
只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承
发表于 2021-01-08 11:01:48 回复(2)
继承就是指子节点默认使用父节点的样式属性。 不可继承的属性太多了不要背,记住可以继承的属性有哪些就行了。可以继承的属性很少,只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承。 所有元素可继承:visibility和cursor。 内联元素可继承:letter-spacing、word-spacing、white-space、line-height、color、font、font-family、font-size、font-style、font-variant、font-weight、text-decoration、text-transform、direction。 终端块状元素可继承:text-indent和text-align。 列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。
发表于 2019-09-23 23:35:09 回复(1)

一、无承性的

1、display:规定元素应该生成的框的类型

2、文本属性:

vertical-align:垂直文本对齐

text-decoration:规定添加到文本的装饰

text-shadow:文本阴影效果

white-space:空白符的处理

unicode-bidi:设置文本的方向

3、盒子模型的属性:widthheightmargin margin-topmargin-rightmargin-bottommargin-leftborderborder-styleborder-top-styleborder-right-styleborder-bottom-styleborder-left-styleborder-widthborder-top-widthborder-right-rightborder-bottom-widthborder-left-widthborder-colorborder-top-colorborder-right-colorborder-bottom-colorborder-left-colorborder-topborder-rightborder-bottomborder-leftpaddingpadding-toppadding-rightpadding-bottompadding-left

4、背景属性:backgroundbackground-colorbackground-imagebackground-repeatbackground-positionbackground-attachment

5、定位属性:floatclearpositiontoprightbottomleftmin-widthmin-heightmax-widthmax-heightoverflowclipz-index

6、生成内容属性:contentcounter-resetcounter-increment

7、轮廓样式属性:outline-styleoutline-widthoutline-coloroutline

8、页面样式属性:sizepage-break-beforepage-break-after

9、声音样式属性:pause-beforepause-afterpausecue-beforecue-aftercueplay-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-sideborder-collapseborder-spacingempty-cellstable-layout

5、列表布局属性:list-style-typelist-style-imagelist-style-positionlist-style

6、生成内容属性:quotes

7、光标属性:cursor

8、页面样式属性:pagepage-break-insidewindowsorphans

9、声音样式属性:speakspeak-punctuationspeak-numeralspeak-headerspeech-ratevolumevoice-familypitchpitch-rangestressrichness、、azimuthelevation

三、所有元素可以承的

1、元素可见性:visibility

2、光标属性:cursor

四、内联元素可以承的

1、字体系列属性

2、除text-indenttext-align之外的文本系列属性

五、块级元素可以承的

1、text-indenttext-align
发表于 2022-03-05 08:13:44 回复(0)
<p>vertical-align:设置元素的垂直对齐方式;text-indent:设置文本块中首行文本的缩进,若是负值,则被缩进到左边;vertical:垂直的意思;align:排整齐,使成一线;indent:缩进的意思</p>
发表于 2020-08-21 18:02:53 回复(0)
选了答案说我答案为空
发表于 2019-09-15 13:45:56 回复(0)
继承就是指子节点默认使用父节点的样式属性。 不可继承的属性太多了不要背,记住可以继承的属性有哪些就行了。可以继承的属性很少,只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承。 所有元素可继承:visibility和cursor。 内联元素可继承:letter-spacing、word-spacing、white-space、line-height、color、font、font-family、font-size、font-style、font-variant、font-weight、text-decoration、text-transform、direction。 终端块状元素可继承:text-indent和text-align。 列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。
发表于 2021-05-06 17:37:07 回复(0)
text-indent:设置文本块中首行文本的缩进,若是负值,则被缩进到左边; 可继承的:字体样式(文字字符间距,颜色,行高,大小等),列表样式,visibility, cursor 背景颜色不可继承
发表于 2023-03-26 23:27:27 回复(0)
继承就是指子节点默认使用父节点的样式属性。 不可继承的属性太多了不要背,记住可以继承的属性有哪些就行了。可以继承的属性很少,只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承。 所有元素可继承:visibility和cursor。 内联元素可继承:letter-spacing、word-spacing、white-space、line-height、color、font、font-family、font-size、font-style、font-variant、font-weight、text-decoration、text-transform、direction。 终端块状元素可继承:text-indent和text-align。 列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。
发表于 2022-10-08 20:55:49 回复(0)
靠背的一个知识点
编辑于 2022-12-07 18:45:52 回复(0)
只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承
发表于 2022-12-05 19:33:07 回复(0)
颜色、文字、字体间距、行高和对齐方式,列表样式可以继承
发表于 2022-11-19 15:44:05 回复(0)
加油
发表于 2022-04-06 12:08:25 回复(0)
只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承

发表于 2022-03-23 10:58:00 回复(0)
继承就是指子节点默认使用父节点的样式属性。 不可继承的属性太多了不要背,记住可以继承的属性有哪些就行了。可以继承的属性很少,只有颜色,文字,字体间距行高对齐方式,和列表的样式可以继承。 所有元素可继承:visibility和cursor。 内联元素可继承:letter-spacing、word-spacing、white-space、line-height、color、font、font-family、font-size、font-style、font-variant、font-weight、text-decoration、text-transform、direction。 终端块状元素可继承:text-indent和text-align。 列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。
发表于 2022-03-04 23:21:42 回复(0)
颜色、文字、字体间距、行高和对齐方式,列表样式可以继承
发表于 2022-01-10 19:08:12 回复(0)