模板在IE7中不起作用

时间:2010-01-07 13:44:26

标签: css internet-explorer-7 joomla

我的网站www.dhtherapies.com上的顶级菜单在IE7中不起作用 - 任何想法。我已经尝试过添加填充,这是它在firefox中做同样的事情时是如何修复的,但是无法为IE7做这个怎么做 - 想法?

干杯

这是IE7的css

/* 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 个答案:

答案 0 :(得分:0)

不确定菜单,但此行在IE7(或兼容模式下的IE8)中抛出javascript错误

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

因为没有孩子......

如果你修改它就应该没问题

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