Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML里常见的单位 #20

Open
Liqiuyue9597 opened this issue Aug 9, 2020 · 0 comments
Open

HTML里常见的单位 #20

Liqiuyue9597 opened this issue Aug 9, 2020 · 0 comments

Comments

@Liqiuyue9597
Copy link
Owner

Liqiuyue9597 commented Aug 9, 2020

面试官问的是HTML里的单位,其实HTML只有标签没有单位,这个单位的知识应该属于CSS

相对长度单位 说明
em 相对于当前对象内文本的字体尺寸
px 像素,最常用,推荐使用
绝对长度单位 说明
in 英寸
cm 厘米
mm 毫米
pt

--> 解释rem和em
rem:相对于根元素(即html元素)font-size计算值的倍数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant