首页 > 解决方案 > CSS Normalize:粗体与粗体?

问题描述

以下有什么区别:

b, strong {
   font-weight: bold;
}

b, strong {
   font-weight: bolder;
}

我在网上找不到合适的解释......在我的 CSS 重置中,我使用了第二个,font-weight: bolder;

但是哪一个是正确的,为什么?

更令人困惑的是,我还看到了以下内容:

b, strong {
   font-weight: inherit; 
}

b, strong {
   font-weight: bolder; 
}

2021 年 b 和 strong 标签的 font-weight 的正确 CSS 重置是多少?

标签: htmlcssbold

解决方案


推荐阅读