简体   繁体   English

幻灯片菜单不起作用

[英]Slide menu doesn't work

I'm working on a new header for a website, and my header works perfectly on codepen. 我正在为网站创建新的标头,而我的标头在Codepen上可以正常使用。 You can check it out at: 您可以在以下位置签出:

http://codepen.io/germangallo/pen/eNeKWG http://codepen.io/germangallo/pen/eNeKWG

As you may see, if you click on the menu button (categories) it slides a menu that I've done following the steps by callmenick here: 如您所见,如果您单击菜单按钮(类别),则会滑动菜单,该菜单是我按照以下callmenick的步骤完成的:

http://callmenick.com/post/slide-and-push-menus-with-css3-transitions http://callmenick.com/post/slide-and-push-menus-with-css3-transitions

However, when I've tried to make it work at my site, everything is great, but the slider menu doesn't work. 但是,当我尝试使其在我的网站上工作时,一切都很好,但是滑块菜单不起作用。 I'm new at JavaScript, so I really don't know if the problem is there, and I can't figure out any way to fix the problem. 我是JavaScript新手,所以我真的不知道问题是否存在,而且我也找不到解决问题的方法。

My site is: http://www.pensarpoker.com/nuevo 我的网站是: http : //www.pensarpoker.com/nuevo

看起来您的脚本正在执行,然后才能在页面上访问dom元素,请尝试将滑块脚本添加到页面底部,或将其包装在$(document).ready()中(如果使用的是jQuery)。

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

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