好吧,我想在这里使用这个菜单http://codepen.io/emredenx/pen/ojcxl
它不适用于博主 http://menuteste158.blogspot.com.br/我也尝试了几种不同的模板。
我下载了 codepen 文件并且运行良好...然后我认为问题出在博客上 ..然后我去 jsFiddle 中进行测试以确保(My声誉不允许我放置超过 2 个链接,所以我将在评论中放置,对此感到抱歉) 并且没有用,我放置了与我下载的文件相同的代码,结果是和博主一样。这怎么可能?
If it was just the blogger could be conflicts between codes, but I tested in four different places (my computer, jsfiddle, codepen, blogger), and the problem persists in two of them ...
我用部分菜单在博客上发表评论,以 方便一点。
<!--menu-->
<!--script menu-->
<!--menu jquery-->
我把 jquery 放在了 <head>
之后在 </ body>
之前也没有什么区别,我唯一改变的是这部分代码:
if ($ (window) .width () <= mediasize) {
为此:
if ($ (window) .width () & lt; = mediasize) {
现在,我非常困惑……我不知道要更改什么,也不知道为什么要更改。在不同的地方是相同的代码。他们应该工作。现在这对我来说没有意义。
Ps.: Andy Hoffman was right about why the code error in jsFiddle, but still not working on blogger templetes.
最佳答案
关于javascript - CSS3 响应式下拉菜单不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36819059/