CSS 测验题

通过对CSS 教程系统地学习,相信你已全面掌握 CSS 文本与字体样式知识点,为了巩固所学的内容,我们准备了一个小测验。

通过这个测验,您可以检验自己对 CSS 的掌握程度,发现可能需要进一步巩固的地方。


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

1. 哪个属性用于设置文本的颜色?

  • font-color
  • color
  • text-color
  • style-color

2. 哪个属性用于设置文本的字体大小?

  • text-size
  • font-size
  • size
  • text-font

3. 哪个属性用于设置文本的字体粗细?

  • text-weight
  • weight
  • font-weight
  • bold

4. 哪个属性用于设置文本的对齐方式?

  • text-align
  • align
  • font-align
  • style-align

5. 哪个属性用于设置文本的行高?

  • text-height
  • height
  • spacing
  • line-height

6. 哪个属性用于设置文本的装饰(如下划线)?

  • decoration
  • text-decoration
  • font-decoration
  • underline

7. 哪个属性用于设置文本的字体样式(如斜体)?

  • text-style
  • style
  • font-style
  • italic

8. 哪个属性用于设置文本的字体族(如Arial)?

  • font-family
  • family
  • text-family
  • style-family

9. 哪个属性用于设置文本的字母间距?

  • text-spacing
  • spacing
  • char-spacing
  • letter-spacing

10. 哪个属性用于设置文本的阴影效果?

  • shadow
  • text-shadow
  • font-shadow
  • style-shadow

11. 哪个属性用于设置文本的转换(如大写或小写)?

  • transform
  • case
  • text-transform
  • font-transform

12. 哪个属性用于设置文本的首行缩进?

  • text-indent
  • indent
  • paragraph-indent
  • first-line