跨浏览器/设备的文本大小一致性?
假设我使用 em 调整网站的文本大小,跨浏览器和设备的大小会有多大变化?我实际上正在重新设计一个网站,如果我用 firebug 使文本变大,某些布局就会搞砸,这有多大问题? 谢谢
Assuming I make a website's text sizing with em, how much will the sizing vary cross browser and device? Im actually redesigning a site and if I make the text larger with firebug some of the layouts screw up, how much of an issue is this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
保持跨浏览器文本大小一致的最可靠方法是使用像素而不是 em。这会击败旧浏览器的文本调整大小选项,但这是您必须做出的决定。
The most reliable way to keep text size consistent across browsers is to use pixels rather than ems. This defeats older browsers text resizing options, but that's a decision you have to make.