Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在两个页面上,字体大小都是 10pt,
但是在一页上的字体大小看起来明显比另一页上的大,
这可能是什么原因?
那肯定不是10pt。或者,页面被缩放。(查看 -> 缩放 -> 重置,在 Firefox 中)。
请注意,CSS 采用最具体的选择器(或带有 '!important' 的选择器),因此请确保您没有其他东西覆盖它。
pt 单位仅用于打印。
您确定没有将一页定义为“px”而另一页定义为“pt”吗?
您应该安装 Web 开发人员工具栏 - 它会通过“信息”菜单中的“显示元素信息”选项告诉您实际的字体大小。