简体   繁体   English

如何为<strong>文本</strong>设置边框底部样式

[英]How to set border-bottom style for <strong> text

On this page ( http://nate.fm/articles ) I have two different articles listed.在此页面 ( http://nate.fm/articles ) 上,我列出了两篇不同的文章。 One is bold and one is regular.一种是大胆的,一种是常规的。 They are both links with a 3px border-bottom.它们都是带有 3px 边框底部的链接。 However, the bold font's border-bottom is pushed down slightly lower than the regular font.但是,粗体字体的边框底部比常规字体略低。

Can anyone tell me where that extra space is being defined in the CSS?谁能告诉我在 CSS 中在哪里定义了额外的空间?

However, the bold font's border-bottom is pushed down slightly lower than the regular font.但是,粗体字体的边框底部比常规字体略低。

No. Under the link Like the border is 7px below the character the first character L and under the link Pro-Life vs Pro-Birth the border is again 7px below the character P .不。在链接下, Like边框在字符第一个字符L下方 7px 下,在Pro-Life vs Pro-Birth链接下,边框再次在字符P下方 7px。 Perhaps you are getting deluded by the g in Light .也许你被Lightg迷惑了。

PS: I checked the distances by printing screen and pasting to photoshop. PS:我通过打印屏幕并粘贴到Photoshop来检查距离。

看起来这些实际上是不同的字体变体:字体粗细分别为 400 和 700,因此 700 字体的大小/高度可能略有不同(降序)以将这些粗体字母放入行中。

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

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