简单的 jQuery 和 CSS 导航在刷新时随机无法正常工作...所有浏览器
好吧,似乎所有浏览器和分辨率都是如此。我是编码新手,所以我相当确定这是我遗漏的一个简单错误。我问了一群朋友,看来大家的情况都是一样的。导航悬停仅在主编码布局上的某些时候起作用(尚未完全编码)。我自己把导航拉出来,它似乎 100% 都能正常工作。
您可以在此处查看它的工作原理:http://dperolio.com/newnav/css/
这里就是问题所在: http://dperolio.com/tealtop2
它最初可能对您有用,也可能不是。如果您垃圾邮件刷新(Ctrl+R),有时会起作用。当它不起作用时,无论如何它似乎都处于悬停状态(粗体白色链接)。
我很感激你能提供的任何见解;我再次确信我刚刚犯了一些愚蠢的错误,希望更有经验的人能够发现它并为我指出?谢谢!
Okay, this seems to be the case in all browsers and resolutions. I'm brand new to coding, so I'm fairly sure it's a simple error I'm missing. I've asked a group of friends, and it seems to be the same for everyone. The navigation hover only works some of the time on the main coded layout (not fully coded yet). I pulled the navigation out by itself and it seems to work correctly 100% of the time.
You can view how it should work here: http://dperolio.com/newnav/css/
Here is where the problem is: http://dperolio.com/tealtop2
It may work for you initially, or it may not. If you spam refresh (Ctrl+R) it will sometimes work. When it doesn't work, it seems it just sits in the hover state no matter what (bold white links).
I appreciate any insight you can offer; again I'm fairly sure I just made some stupid mistake and hopefully someone more experienced can spot it and point it out for me? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这是愚蠢的...这是因为我在调用 jQuery 之后而不是之前列出了外部 CSS。
I knew it was something stupid... It was because I had the external CSS listed after calling the jQuery instead of before it.
这是我为您制作的一个快速演示:
Here is a quick demo I made for you: