我为酒店预订栏添加了一个php包含到wordpress页面。预订栏现在隐藏着我的菜单下拉项目。
下面是一个带有预订栏的测试页面:http://www.claridge.com/test/
下面是一个没有栏的页面,这样您就可以看到下拉列表:http://www.claridge.com/rooms/
我试过设置z-索引,但没成功。
任何帮助都将不胜感激!
发布于 2014-09-03 20:59:15
测试页面上有大量错误,该菜单由脚本运行。
所以有些事情不对劲,它就不会运行。
修复以下错误或在您自己的调试控制台上查看它
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
发布于 2014-09-03 20:59:38
首先,检查验证器结果。您将看到至少有31个错误(在这一点上停止搜索)。现在,您将在第245和第246行中看到您正在关闭</body>和</html>标记,但是您的页面才刚刚开始。修复这些问题,它将正常工作,基本上您没有加载脚本,因为您过早地结束了页面
https://stackoverflow.com/questions/25653395
复制相似问题