2011-10-27 121 views
0

嗨你們我有一個問題與IE 7 ....我有一個頭和一些文本,在Firefox中,即8,9,鉻之間有一些空間。然而在IE 7中卻不是。IE 7問題HTML/CSS

http://jamessuske.com/thornwood2/

HTML代碼

<div class="contentHeader"> 

Thornwood Fine Homes 

</div><!--contentHeader--> 

<div class="contentTextIndex"> 

<p>In hac habitasse platea dictumst. Curabitur sed augue eget elit tristique venenatis. In ligula dui, facilisis in varius vitae, ullamcorper at risus. Mauris dictum aliquam massa, in elementum lacus vehicula quis. Aliquam erat volutpat. Aenean velit enim, rutrum ut laoreet ac, convallis eu orci. Etiam ac justo iaculis nunc iaculis mattis. Nam porta, lacus ac lobortis congue, leo nunc scelerisque leo, a sodales odio neque nec ligula. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed vel sem eu eros congue elementum in tincidunt neque. </p><p>Cras sed pretium quam. Morbi metus lorem, pulvinar a lacinia sed, molestie at ipsum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec et justo metus, id vehicula erat. Nam ullamcorper mattis accumsan. Phasellus euismod egestas posuere. Nulla sed leo nulla. In sagittis interdum justo, ornare euismod ligula lacinia ac. Aliquam erat volutpat. </p> 

</div><!--contentTextIndex--> 

CSS代碼

.contentHeader{ 
font-family:Verdana, Geneva, sans-serif; 
font-size:36px; 
margin:0px; 
padding:0px; 
} 

.contentTextIndex{ 
width:350px; 
font-size:16px; 
float:left; 
} 

感謝您的幫助:)

+0

我在Firefox 7.0.1上看到您的內容正文中缺少大塊黑塊 – Blender

回答

0

這是因爲瀏覽器對各種元素不同的默認頁邊距,只需設置他們明確地像這樣

.contentTextIndex{ 
width:350px; 
font-size:16px; 
float:left; 
margin:10px 0px; 
} 
+0

謝謝,確實有幫助...但現在Firefox有一個問題... http://jamessuske.com/ thornwood2/ – user979331

+2

uhu,我回答你的原始問題,所以你好*咳嗽咳嗽*! – Tules

+0

是的,我剛剛在FF 7.0.1中檢查過,它對我來說絕對很好! – Tules