2012-06-11 81 views
0

大家好...你能給我你的意見在下面的鏈接? http://dante.edoardobiasini.it 出於某種原因,在IE7中,上述固定頭不集中,但去一路向右...... 謝謝IE7奇怪的行爲與固定的標題和960.gs

+0

類似的問題已經被問過:http://stackoverflow.com/questions/1628265/how-to-get-positionfixed-css-to-work -in-ie-7-with-transitional-doctype – MrCode

+0

我已經回答了你的問題,但請閱讀下面的內容:[我的網站上的某些內容不起作用。我可以只粘貼一個鏈接嗎?](http://meta.stackexchange.com/questions/125997/something-on-my-web-site-doesnt-work-can-i-just-paste-a-link對它)總之,你應該在你的問題中包含一些相關的代碼,並嘗試做一個測試用例。 – thirtydot

回答

1

IE7並不總是正確地left: auto,這是#branding有此刻的行爲。

爲了解決這個問題,補充一點:

#branding { 
    left: 50%; 
    margin-left: -480px; /* 960/2 */ 
} 
+0

另外,您應該將doctype改回爲'<!DOCTYPE html>'。這是比現在更好的選擇。 – thirtydot

+0

這個伎倆...... – Milksamsa