修复不显示的标题链接
我正在处理以下页面:
http://69.134.44.19:8000/ products.html?v=products
在 Google Chrome 和 Firefox 中,它可以正确显示,但在 IE 中,所有链接都被推到徽标下方。它也(我现在意识到)没有在我的 css 中为页面上的所有产品元素使用我的 :hover 东西。它也没有正确对齐此页面上的内容:
关于如何解决此问题的任何想法?为什么 IE 如此异常?为什么就不能遵守规则呢?
是否有任何在线工具可以确保我的网站跨浏览器安全?
I have the following page I'm working on:
http://69.134.44.19:8000/products.html?v=products
In Google Chrome and Firefox, it displays correctly, in IE, however, all the links are pushed down under the logo. It also (I now realize) isn't using my :hover thing in my css for all of my product elements on the pages. It also isn't aligning things correctly on this page:
Any ideas of how I can fix this? Why is IE such an outlier? Why can't it just follow rules?
Are there any tools online to make my site cross browser safe?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哇,答案很简单。经过一些谷歌搜索后,我发现了这个:
http://friendbit.com/ css/cross-browser-strategies-for-css/
在我所有页面的顶部,我有一条包含联系信息和版权信息的评论。显然,当 IE 去读取页面时,它找不到 Doctype,因为它不在正确的位置,因此 IE 启动 怪异模式。将 Doctype 减速移动到所有页面的顶部(在我的评论上方)完全解决了问题!
Wow, the answer was quite simple. After some google searches, I came across this:
http://friendlybit.com/css/cross-browser-strategies-for-css/
At the top of all of my pages, I have a comment containing contact information and copyright info. Apparently, when IE goes to read the page, it doesn't find the Doctype because it isn't in the right location so IE initiates Quirk Mode. Moving the Doctype deceleration to the top of all the pages (above my comment) fixed the problem completely!