无法更改段落上的字体(html css)

时间:2011-10-24 13:28:49

标签: html css fonts

我有最奇怪的问题。我似乎无法改变段落中的字体,无论我操作chrome dev工具中的样式有多少。 我取消选中所有字体行,它仍然显示我在标题中使用的奇怪字体。我添加了我想要的字体(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以及内联样式。

1 个答案:

答案 0 :(得分:5)

变化

font: Arial;

font-family: Arial;