【问题标题】:Font-Size Inconsistencies in all browsers所有浏览器中的字体大小不一致
【发布时间】:2011-06-21 01:54:35
【问题描述】:

有谁知道为什么我的字体大小在 Firefox 中较小,而在其他浏览器中却又大到弄乱了我所有的 div?

现场直播:

http://daveywhitney.com/build/cp/

css

width: 246px;

font-size: 12px;

margin-top: 0pt;

margin-right: 0pt;

margin-bottom: 0pt;

margin-left: 10px;

【问题讨论】:

    标签: html css font-size


    【解决方案1】:

    您是否考虑过使用 em 或 % 代替 px 作为字体大小?

    这里有更多:http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/

    【讨论】:

    • 很棒的文章,谢谢。很困惑我是怎么跑了这么久却没有遇到这个问题哈哈:)
    猜你喜欢
    • 2013-12-09
    • 1970-01-01
    • 2013-09-11
    • 1970-01-01
    • 2015-11-05
    • 2016-03-07
    • 2016-11-27
    • 2019-05-07
    • 1970-01-01
    相关资源
    最近更新 更多