【发布时间】:2015-12-03 14:40:55
【问题描述】:
当 HTML span 有 CSS font-family 时,我不能强制它使用父 font-family
.Parent {
font-family: tahoma !important;
}
.Child {
font-family: cursive, geneva;
}
<div class="Parent">
<span class="Child">Text</span>
</div>
为什么span 不使用父font-family?
我怎样才能做到这一点?
【问题讨论】:
-
从父级中删除 !important。
标签: html css font-family