Home  >  Article  >  Web Front-end  >  在用CSS设置字体为2em为什么字体大小没有变化?_html/css_WEB-ITnose

在用CSS设置字体为2em为什么字体大小没有变化?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:22:591930browse

各位大神好,我在用css设置字体为2em时,字体大小为什么没有变为父级字体的两倍呢?
代码


QQ浏览器打开的效果


回复讨论(解决方案)

哪里有设置?没看到

去掉

你这已经把css样式的内容给注释掉了,去掉

谢谢大家的回答,我搞明白原因了,原来错误在于CSS类名不能以数字开头!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn