【发布时间】:2011-10-24 21:52:14
【问题描述】:
我有一个最奇怪的问题。无论我在 chrome 开发工具中如何操作样式,我似乎都无法更改段落中的字体。 我取消选中所有字体行,它仍然显示我在标题中使用的奇怪字体。我添加了我想要的字体(arial)作为内联元素样式,几乎在其他任何地方,仍然是奇怪的字体。 我怎样才能找出问题所在。我不得不说我确实使用了别人写的样式表。但是,如果我取消选中 chrome 中的所有行并且没有结果,我怎么知道是怎么回事.... 另一件事是,在页面的不同部分显示 arial 字体没有问题。
快把我逼疯了……
代码是分散的。相关段落是:
<div id="last">
<div id="info">
<a href="http://xxxxxx.com"><img src="images/logo.png" /></a>
<p style="margin-top:15px; font:Arial, Helvetica, sans-serif;">
xxxxx is an initiative of <a href="http://xxxxx.com">xxxxxx.com</a>, an organization committed to teaching and inspiring people of all ages about Judaism and Israel.<br /> For more information, questions or inquiries, please email <a href="xxxxxxxxxx">xxxxxx.com</a> </p>
</div>
尝试更改正文和#last #info 的字体以及您所看到的内联样式。
【问题讨论】:
-
请在这里显示一些代码。您可以做的另一件事是尝试将
!important添加到 font-family 属性。