【发布时间】:2016-02-04 01:02:29
【问题描述】:
我在酒店预订栏的 wordpress 页面中添加了一个 php 包含。预订栏现在隐藏了我的菜单下拉项
这是一个带有预订栏的测试页面:http://www.claridge.com/test/
这是一个没有栏的页面,因此您可以看到下拉菜单:http://www.claridge.com/rooms/
我尝试设置 z-indexes,但没有成功。
任何帮助将不胜感激!
【问题讨论】:
我在酒店预订栏的 wordpress 页面中添加了一个 php 包含。预订栏现在隐藏了我的菜单下拉项
这是一个带有预订栏的测试页面:http://www.claridge.com/test/
这是一个没有栏的页面,因此您可以看到下拉菜单:http://www.claridge.com/rooms/
我尝试设置 z-indexes,但没有成功。
任何帮助将不胜感激!
【问题讨论】:
您的测试页面上有一堆错误,并且该菜单由脚本运行
所以出了点问题就不会运行
修复以下错误或在您自己的调试控制台上查看它
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.claridge.com/resources/demos/style.css
Uncaught TypeError: Cannot read property 'msie' of undefined jquery.fancybox.js?ver=1.0:4
Uncaught TypeError: Cannot set property 'media' of undefined jquery.fancybox-media.js:39
Uncaught TypeError: Cannot set property 'thumbs' of undefined jquery.fancybox-thumbs.js:26
Uncaught TypeError: undefined is not a function jquery.fitvids.js?ver=1.0:78
Uncaught TypeError: Cannot read property 'msie' of undefined superfish.js?ver=1.0:63
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.claridge.com/resources/demos/style.css
对于您的脚本错误,请尝试删除此行
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
你可能需要使用 jQuery 而不是 $
另外加alert();
如果这有效,那么您的代码应该正在运行
您还包括许多版本的 jQuery
【讨论】:
首先,检查Validator results。您会看到至少有 31 个错误(此时它停止搜索)。现在,您将在第 245 和 246 行看到您正在关闭 </body>
和</html> 标签,但您的页面几乎没有启动。解决这些问题,它会正常工作,基本上你不会加载脚本,因为你过早地结束了你的页面
【讨论】: