umaruio / fe-interview-cheat-sheet

[Gitbook Repo] A collection of front-end interview questions.
https://interview-cheatsheet.umaru.io/
Creative Commons Attribution Share Alike 4.0 International
26 stars 5 forks source link

HTML & CSS 篇中关于 px 的错误 #4

Closed youngBrain1893 closed 6 years ago

youngBrain1893 commented 6 years ago
  1. px 是相对单位而不是绝对单位 相应的 incmpx 的转化也是错误的

  2. ptpc 是绝对单位,1 in = 72pt, 1pc = 12pt

umarufans commented 6 years ago

我觉得说 px 是相对单位也不妥。我认为他确实是一个绝对单位,只不过受浏览器行为的影响罢了。

下边的换算确实不妥,这个地方我会做修改,谢谢 ~