css - 字体速记在 Firefox 中不起作用

标签 css firefox fonts shorthand

我尝试用速记来缩短我的 CSS。在我的段落代码中,我有:

p{
font: 12px/14px normal 'verdana';
margin: 0px;
}

这在 chrome、safari 等中工作正常,但在 firefox 中无效。它没有注册“字体:12px/14px 正常‘verdana’;”仅“边距:0px;”

有什么问题/我能做什么?

最佳答案

应该是:Font: Weight, Size, Family

    p{
    font:normal 12px/14px  'verdana';
    margin: 0px;
    }

演示:http://jsfiddle.net/4tUxp/

关于css - 字体速记在 Firefox 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16503246/

相关文章:

html - IE 6 中的阻止缩放

html - 使用 css 为 div 背景设置替代图像

html - Flexbox 在 Firefox 中看起来完全不同

javascript - WebGL 不适用于 Firefox

r - R 中的额外字体问题 - afm 错误

pdf - Adobe Reader 中的嵌入式 TrueType 字体

javascript - 使用网络 worker 在加载网页时创建进度条

html - 如何将文本叠加到容器内的 flexbox 图像上并使其响应

html - Bootstrap 下拉列表 - 列表的右侧在 Firefox 上被截断

html - 通过 HTTP 和 HTTPS 加载自定义字体