我正在尝试大胆,而不仅仅是“adjust the font weight”。它似乎没有对Verdana文本执行任何操作。浏览器对此的支持是否已被删除或什么?
<div class='business-hours'>
Toll free: (866) 528-4930 · Mon-Fri 9-5 EST
</div>
#hd .top-nav .business-hours {
text-align: right;
font-family: verdana;
font-weight: 600;
font-size: 10px;
color: #9ea3a0;
}
发布于 2011-01-14 00:45:24
数字和其他不常用的font-weight
属性(如semi-bold
、book
等)仅当字体本身支持给定值(即定义了明确的book
或900
字体粗细)时,AFAIK才与之相关。因此,如果需要一致性,使用它并不是一件明智的事情。
请参阅Are all css font-weight property's values useful?
和reference info at the W3C
发布于 2011-01-14 00:47:40
它是H1标签还是什么?检查您的CSS是否覆盖了您的不太具体的规则。否则,语法如下:
<style>
.myboldtext
{
font-weight: 400;
}
</style>
<span class="myboldtext">This is my bold text</span>
400表示常规,700表示粗体。
希望这能有所帮助!
发布于 2011-01-14 00:47:47
根据父字体的不同,很难看出文本实际上是加粗的。例如:
p {
font-weight: lightest;
}
p span {
font-weight: bold;
}
和
<p>Hello, <span>world</span></p>
在许多浏览器中,实际上很难看出粗体文本和常规正文文本之间的区别。
不要只指定font-weight:粗体;请尝试将其更改为
font-weight: 700;
这将告诉浏览器使用比正常粗体更重的粗体来呈现文本。
https://stackoverflow.com/questions/4682620
复制相似问题