jQuery 隐藏 IE 混乱
谁能告诉我为什么当您单击“联系”时会出现隐藏和显示框?
他们只在 IE 中这样做。我似乎无法解决这个问题。
这是网站:http://molossi.psm2.co.uk/
谢谢:)
编辑: 这里是 IE 上的一个问题的图片。这是在我单击“联系”后拍摄的取消。我已缩小到 75% 以捕捉更多内容。
Could anyone let me know why the hide and show boxes are playing up when you click contact?
They only do this in IE. I cannot seem to fix the problem.
This is the website: http://molossi.psm2.co.uk/
Thanks :)
EDIT: Here is a picture of on of the issues on IE.This is taken after I have clicked Contact then Cancel. I have zoomed out to 75% to capture more.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我在 IE 中测试链接时,它对我来说工作正常...我认为这个 css 导致了问题:
当您单击“联系人”时,它会在导航栏下方显示一个 div,当您取消时,它会在外部加载一个单独的 div导航栏 div。因此,在您的浏览器中,导航栏和外部 div 之间的切换并没有按应有的方式发生。
尝试集中精力于 css 的 main-nav 属性。也许行高或边距顶部或高度导致了这种情况。
It is working fine for me when I tested the link in IE...I think this css is causing the problem:
When you click on contact it shows a div below the navigation-bar and when you cancel it loads a separate div outside of navigation-bar div. So in your browser somehow the switching among nav-bar and outside div is not happening as it should be.
Try to concentrate on main-nav property of the css. Maybe line-height or margin-top or height is causing this.
您需要添加文档类型才能使用标准模式,并且应该验证您的 HTML 和 CSS:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fmolossi.psm2.co.uk%2F
http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fmolossi.psm2.co.uk%2F
You need to add a doctype in order to use Standards Mode and you should validate your HTML and CSS:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fmolossi.psm2.co.uk%2F
http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fmolossi.psm2.co.uk%2F