哪个属性用于更改元素的字体? [英] Which property is used to change the font of an element?
问题描述
15。哪一个属性用来改变元素的字体?
您回答:
$
$ b $ p
$ div
$ div $ >解决方案font 属性是改变字体的各个方面的属性,包括系列,样式和重量。
font-family
属性只会改变font-family。这个家族是一组相关的字体(或I took a CSS quiz at w3schools.com, and I got all of the answers correct except the one below. I tried to search on the subject, but as far as I can see the answer should be correct. Where am I wrong? Really confused with this.
15. Which property is used to change the font of an element?
You answered:
font-family
Wrong Answer!
解决方案The
font
property is the one that changes all aspects of a font, including family, style and weight. Thefont-family
property only changes the font-family. The family is a group of related fonts (or typefaces).So 'Comic Sans MS' is a font family, while 'Comic Sans MS Bold 10pt' is a font. In speech, people tend to mix up those terms.
这篇关于哪个属性用于更改元素的字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!