2010-11-09 68 views
0

有問題的網站是DCWB網站位置錯在IE

忘記勾勒問題

基本上一切都看起來不錯在FF,但是當我看着它在IE大部分DIV的都postioned錯誤。

*

請問誰能幫助解決這個問題?

body { 
    background-color:#000; 
    font-size:8px; 
    font-family:Arial, Helvetica, sans-serif; 
    font-size:10px; 
    margin-left: 0px; 
    margin-top: 0px; 
    margin-right: 0px; 
    margin-bottom: 0px; 
    text-align: center; 
    color:#FFF; 
    overflow-y:scroll; 
} 
#header { 
    background-color: #900; 
    position:fixed; 
    width:100%; 
    height:50px; 
    left: 0px; 
    top: 0px; 
} 
#apDiv1 { 
    visibility:hidden; 
    position:fixed; 
    width:34px; 
    height:114px; 
    left: 0px; 
    top: 100px; 
} 
#pic{ 
    width: 108px; 
    right: 10px; 
    top: 150px; 
    position: fixed; 
} 
#facebook { 
    width: 34px; 
    left: 0px; 
    top: 100px; 
    position: fixed; 
} 
#Twitter { 
    width: 34px; 
    left: 0px; 
    top: 200px; 
    position: fixed; 
} 
#Menu { 
    background-color:#900; 
    color:#FFF; 
    font-size:12px; 

} 
#content { 
    width:800px; 
    position:absolute; 
    text-align:center; 
    left: 50%; 
    top:44px; 
    margin-left: -400px; 
    font-size: 10px; 
    font-weight: bold; 
} 
table tr td #Menu tr td p { 
    font-size: 12px; 
} 
table tr td table tr td strong { 
    font-size: 12px; 
} 
a:link { 
    color: #FFF; 
    text-decoration: none; 
} 
a:visited { 
    text-decoration: none; 
    color: #FFF; 
} 
a:hover { 
    text-decoration: none; 
    color: #FFF; 
} 
a:active { 
    text-decoration: none; 
    color: #FFF; 
} 
+1

也許:這個JavaScript可能會幫助你,你可能會遇到的問題。 – Guffa 2010-11-09 11:49:54

回答

0

有許多網站並不好看的,即,這是因爲它不「服從」,以Internet標準。有許多錯誤,包括雙重邊緣浮動錯誤。如果你所描述的實際問題是什麼

http://dean.edwards.name/IE7/

+0

感謝您的信息,我想我可能會再次從頭開始構建並執行所有測試IE,然後創建一個單獨的CSS頁面FF。 – JustDavid 2010-11-09 12:27:00

+0

等一下,你應該在互聯網投訴瀏覽器(FF,safari,chrome)中進行測試,然後製作一個單獨的樣式表,基本上與你所說的相反。 – alexy13 2010-11-09 12:36:37

+0

哈哈OK謝謝:) – JustDavid 2010-11-09 13:05:21

2
在你的代碼

沒有一個DOCTYPE聲明,這使得IE在quirks mode運行。添加以下在HTML頁面中的開始:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
+0

這是一個CSS頁面,鏈接到index.php等等...... – JustDavid 2010-11-09 11:54:10

+0

你是什麼意思的CSS頁?在您的php頁面(例如index.php)中,您必須添加doctype以正確運行 – Sotiris 2010-11-09 11:59:59