我在YUI的Reset CSS中遇到了麻烦:
address,caption,cite,code,dfn,em,strong,th,var {
font-style: normal;
font-weight: normal;
}
这使得我的em
不再是斜体,也使得我的strong
不再是加粗的。这没关系,我知道如何在自己的样式表中覆盖这些。
strong, b
{
font-weight: bold;
}
em, i
{
font-style: italic;
}
当我需要同时使用em
和strong
标记文本时,问题就出现了。
<strong>This is bold, <em>and this is italic, but not bold</em></strong>
我为strong
设置了加粗样式,但是 YUI 的 em
样式又将其变回了普通字体。我该如何解决?
我的规则使它加粗,但YUI的 规则会使其恢复正常。如何解决?