简体   繁体   English

网站首页上的导航问题

[英]Navigation issues on Homepage of website

I am building a website for a client based off of THIS template. 我正在根据模板为客户构建网站。 You can view the website here: https://www.retirementautopilot.com/capitalfinancial . 您可以在此处查看网站: https : //www.retirementautopilot.com/capitalfinancial I just applied some changes to the home page and suddenly the dropdown navigation doesn't work. 我只是对主页进行了一些更改,突然下拉菜单不起作用。 When you hover the mouse over "About" and "Services", a dropdown menu should appear. 将鼠标悬停在“关于”和“服务”上时,将出现一个下拉菜单。 If you travel to any other page you will see the dropdown works, so I messed up something on the homepage. 如果您访问任何其他页面,您都会看到下拉列表的工作原理,因此我在主页上弄乱了一些内容。

How do I get the navigation to work on the homepage again? 如何使导航再次在首页上运行?

Also, the site has a CSS style for screens smaller than 1000px and mobile devices. 此外,对于小于1000像素的屏幕和移动设备,该网站具有CSS样式。 If you shrink the browser down really small you can see the mobile version of the website. 如果您将浏览器缩小得很小,则可以看到该网站的移动版本。 On the homepage of my site, the mobile navigation doesn't work, but it works on every other page. 在我网站的主页上,移动导航不起作用,但在其他所有页面上都起作用。 I think these two issues are probably related. 我认为这两个问题可能有关。 How can I get the dropdown and mobile navigation to work on my homepage? 如何在我的主页上使用下拉菜单和移动导航?

I had to remove 我必须删除

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>

from my header on the index page and it worked again. 从我在索引页上的标题开始,它再次起作用。 It had nothing to do with me deleting anything. 这与我删除任何内容无关。 Rather, I already had jquery.min.js, which didn't work in conjunction with jquery.js. 相反,我已经有了jquery.min.js,它无法与jquery.js结合使用。

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

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