2010-01-07 58 views
1

我的網站www.dhtherapies.com的頂級菜單在IE7中無法使用 - 任何想法。我已經嘗試添加填充,這是它如何在Firefox中修復它時,它正在做同樣的事情,但不能鍛鍊如何爲IE7做 - 它的想法?模板將無法在IE7中工作

乾杯

這是IE7

/* CSS Document */ 

div.moduletable div { 
zoom: 1; 
} 

div.moduletable2 div { 
zoom: 1; 
} 

#top { 
margin-left: 0px; 

} 

#hornav ul li ul { 
margin-left: -20px; 
} 

#hornav ul li ul ul { 
    margin: -30px 0px 0px 10.3em; 
} 


#hornav li:hover { 
    z-index:1; 
    background-position: 0 0; 
    } 

#hornav ul li li a {margin-top:0px; } 
#hornav ul li ul {margin-top: 0px; } 
+1

究竟是什麼錯誤?我沒有在任何瀏覽器中看到頂級菜單。如果你的意思是'主頁'菜單項,那就說出來。 – 2010-01-07 13:51:26

回答

0

不能確定的菜單的CSS,但此行(在兼容模式或IE8)拋出javascript錯誤在IE7

var menu_li_els = document.getElementById('hornav').firstChild.childNodes; 

因爲沒有孩子...

如果你修改它,它應該是ok

var menu_nav = document.getElementById('hornav'); 
if(menu_nav.childNodes.length > 0){ 
    var menu_li_els = menu_nav.firstChild.childNodes; 
    //... do stuff here... 
}