font-weight 不能正常工作? [英] font-weight is not working properly?

查看:22
本文介绍了font-weight 不能正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.i3physics.com/blog/2010/07/dsfsdf/

这是一个例子.

写着PHP"的部分(右上角)保持原样纤细.这是css代码的一部分

The part where it said "PHP" (the right top corner) remained as slim as it was. here is part of the css code

.wp_syntax_lang {
  background-color:#3c3c3c;
  position:absolute;
  right:0;
  padding:1px 10px 3px;
  color:#ddd; font-size:9px; font-weight:800;
  text-transform:uppercase;
  -moz-border-radius-bottomleft:5px;
  -webkit-border-bottom-left-radius:5px;
  border-radius-bottomleft:5px;
}

我尝试了粗体、粗体、700、800、900,但在 FF 下不起作用.

I tried bold, bolder, 700, 800, 900 and is not working under FF.

推荐答案

这是因为字体大小 (9px) 太小,无法显示粗体.尝试 11px 或更多,效果很好.

Its because the font size (9px) is too small to display bold. Try 11px or more and it works fine.

这篇关于font-weight 不能正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆