我的网站突然出现一些问题,没有已知的变化。最突出的是,没有子菜单出现。 html在那里,一切似乎都在管理面板的wordpress中被正确设置。但是,没有子菜单出现在悬停上。网站是btwimages.com。
<!-- ################ TOP MENU SECTION ################ -->
<!-- **Top-Menu** -->
<div id="top-menu">
<div class="container">
<ul id="menu-main-menu" class="menu"><li id="menu-item-2351" class="home menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="http://www.btwimages.com">Home</a></li>
<li id="menu-item-2352" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="#">About Us</a>
<ul class="sub-menu">
<li id="menu-item-2316" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/about-us/about-btw-images/">About BTW images</a></li>
<li id="menu-item-2318" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/about-us/testimonials/">Testimonials</a></li>
<li id="menu-item-2317" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/about-us/our-team/">Our Team</a></li>
</ul>
</li>
<li id="menu-item-2353" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="#">Services</a>
<ul class="sub-menu">
<li id="menu-item-2354" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><a href="#">Real Estate</a>
<ul class="sub-menu">
<li id="menu-item-2341" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/real-estate/photography/">Photography</a></li>
<li id="menu-item-2340" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/real-estate/floor-plans/">Floor Plans</a></li>
<li id="menu-item-2343" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/real-estate/virtual-tours/">Virtual Tours</a></li>
<li id="menu-item-2342" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/real-estate/video-tours/">Video Tours</a></li>
<li id="menu-item-2339" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/real-estate/brochures/">Brochures</a></li>
<li id="menu-item-3454" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/real-estate/truevision/">TrueVision</a></li>
</ul>
</li>
<li id="menu-item-2888" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/3d-immersion/">3D Immersion</a></li>
<li id="menu-item-3098" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/virtual-staging/">Virtual Staging</a></li>
<li id="menu-item-2344" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/video/">Video</a></li>
<li id="menu-item-2336" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/general-photography/">General Photography</a></li>
<li id="menu-item-2337" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/marketing/">Marketing</a></li>
</ul>
</li>
<li id="menu-item-2329" class="menu-item menu-item-type-post_type menu-item-object-page"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="http://www.btwimages.com/portfolio/">Portfolio</a></li>
<li id="menu-item-2355" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="#">Pricing</a>
<ul class="sub-menu">
<li id="menu-item-2333" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/pricing/real-estate-photography/">Real Estate Photography</a></li>
<li id="menu-item-2912" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/pricing/3d-immersion-tour/">3D Immersion Tour</a></li>
<li id="menu-item-2331" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/pricing/floor-plans/">Floor Plans</a></li>
<li id="menu-item-2332" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/pricing/printing/">Brochures</a></li>
<li id="menu-item-3099" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/virtual-staging/">Virtual Staging</a></li>
<li id="menu-item-3455" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/services-2/real-estate/truevision/">TrueVision</a></li>
</ul>
</li>
<li id="menu-item-2356" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="#">News</a>
<ul class="sub-menu">
<li id="menu-item-2328" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/news/latest-news/">Latest News</a></li>
<li id="menu-item-2325" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/news/btween-the-lines/">BTWeen the lines</a></li>
<li id="menu-item-2327" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/news/latest-home-tours/">Latest Home Tours</a></li>
</ul>
</li>
<li id="menu-item-2357" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="#">Support</a>
<ul class="sub-menu">
<li id="menu-item-2482" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/support/faq/">FAQ</a></li>
<li id="menu-item-2910" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/support/3d-immersion-faqs/">3D Immersion FAQs</a></li>
<li id="menu-item-2347" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/support/help-videos/">Help Videos</a></li>
<li id="menu-item-2349" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/support/preparation-checklist/">Preparation Checklist</a></li>
<li id="menu-item-2348" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/support/media-terms-of-use/">Media Terms of Use</a></li>
<li id="menu-item-2350" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/support/service-policies/">Service Policies</a></li>
</ul>
</li>
<li id="menu-item-2358" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"><span class="hoverL"> <span class="hoverR"> </span> </span><a href="#">Contact Us</a>
<ul class="sub-menu">
<li id="menu-item-2320" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/contact-us/learn-more/">Learn More</a></li>
<li id="menu-item-2321" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.btwimages.com/contact-us/request-service/">Request Service</a></li>
</ul>
</li>
</ul> </div>
</div><!-- **Top-Menu - End** -->
<!-- ################ TOP MENU SECTION END ################ -->
答案 0 :(得分:0)
如果无法通过管理面板进行修复,则可以将此代码添加到页眉或页脚中:
jQuery('.menu-item-has-children').hover(function() {
jQuery('.menu-item-has-children .sub-menu').css('display', 'none');
jQuery(this).find('.sub-menu').css('display', 'block');
});