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.
假设我使用 em 设置网站的文本大小,跨浏览器和设备的大小会有多大差异?我实际上正在重新设计一个网站,如果我用萤火虫使文本变大,一些布局会搞砸,这有多大问题?谢谢
保持跨浏览器文本大小一致的最可靠方法是使用像素而不是 em。这会破坏旧浏览器的文本大小调整选项,但这是您必须做出的决定。