简体   繁体   English

text-decoration:none是否会覆盖font-weight:900?

[英]Does text-decoration:none override font-weight:900?

I'm using monospace fonted text for hyperlinks in my menu. 我在菜单中为超链接使用了等宽字体文本。 In order to eliminate the underline, I used text-decoration:none. 为了消除下划线,我使用了text-decoration:none。 Will this prevent me from making the font bolder? 这会阻止我使字体变粗体吗?

http://www.fccorp.us/index.php -> the text in the blue boxes on the left. http://www.fccorp.us/index.php- >左侧蓝色框中的文本。

不可以。文字修饰不会影响字体粗细。

No text-decoration doesn't have any effect on font-weight . 没有text-decoration不会对font-weight产生任何影响。 They are two entirely different properties. 它们是两个完全不同的属性。

It will not. 它不会。 Font weight is not affected by decoration. 字体粗细不受装饰的影响。 Link to jsfiddle in comments 链接到评论中的jsfiddle

The monospace font just doesn't look particularly different when it's bolded. 等宽字体在加粗时看起来并没有特别的区别。 Try setting it to Courier instead. 尝试将其设置为Courier。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM