zhangxinxu / cssworld

《CSS世界》三部曲答疑反馈交流区
49 stars 2 forks source link

1ex代表的尺寸 #12

Open SongJuXin opened 3 years ago

SongJuXin commented 3 years ago

如果是中文字体,或者该字体没有字符“x”,1ex代表多少呢。

zhangxinxu commented 3 years ago

正规的中文字体都会包含字符x的,如果是自定义的不含字符x的字体,此时的x会按照祖先元素或浏览器内置的字体渲染。

SongJuXin commented 3 years ago

了解了,感谢解答!