【发布时间】:2008-08-21 14:36:41
【问题描述】:
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>
我对@987654329@ 的规则使它变得粗体,但是YUI 对em 的规则使它再次变得正常。我该如何解决?
【问题讨论】: