简体   繁体   English

IE wordpress导航样式在登录时是完美的,但在注销时则不是

[英]IE wordpress nav styles perfect when logged in, but not when loggged out

Out of no where, the navigation on site down started acting crazy when viewed in Internet Explorer while not logged in. However, when you log in... everything works perfectly... 在没有登录的情况下,在Internet Explorer中查看时, 站点向下导航突然开始发疯。但是,当您登录时...一切运行正常...

I know it must be a stylesheet ordering issue, but I'm not having any luck finding a fix. 我知道这一定是样式表订购问题,但是我没有运气找到解决办法。

You can log in here with the username: bobo and password: bobo to see what I'm talking about. 您可以使用用户名bobo和密码bobo登录此处 ,以查看我在说什么。

Thanks in advance for taking a look 预先感谢您的浏览

-- -

EDIT 编辑

this is the jQuery for the nav: 这是导航的jQuery:

<script type='text/javascript'>
jQuery(document).ready(function ($) {  
    $('#access li').each(function(){
        $(this).hover(function(){
            $('> ul',this).show();
        }, function(){
            $('> ul',this).hide();
        });
    });
});
</script>

Figured it out! 弄清楚了!

I guess wordpress caught a bug when adding a new page to the menu, because after combing through the source code, I noticed one of the links closing li tag was out of place. 我猜wordpress在向菜单添加新页面时捕获了一个错误,因为在梳理源代码之后,我注意到关闭li标签的链接之一不合适。

Removed that link from the nav. 已从导航中删除该链接。 BAM! AM! working perfectly now... 现在工作正常...

Hope this is able to help someone like me who feels that wordpress is out to get them. 希望这能帮助像我这样的人,他们认为wordpress可以帮助他们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM