兼容IE6
我的网站在 IE6 上运行时遇到问题。
这是我第一次尝试网站设计,所以我实际上没有经验,我学到的一切都是在过去三到四天里学到的。
这是我作为 JSFiddle 的网站: http://jsfiddle.net/pgete/
我将其托管在我的个人电脑(糟糕的互联网):http://41.238.112.237/
我建议访问我个人电脑上的那个并查看它的图片。但如果它没有响应,请不要感到惊讶。
它在 FF6 和 IE9 上运行良好。我在 IE6 上尝试了一下,结果看起来像一个巨大的橙色池。
当我尝试开发网站时应该注意什么?
I'm having trouble getting my website to work with IE6.
This is my first attempt at website design, so I literally have no experience and everything I learned, I learned in the last three to four days.
This is my website as a JSFiddle: http://jsfiddle.net/pgete/
I have it hosted on my personal computer (HORRIBLE internet): http://41.238.112.237/
I'd recommend visiting the one on my personal computer to see it with pictures. But if it's not responding, don't be surprised.
It runs fine on FF6 and IE9. I tried it on IE6 and it turned out looking like a giant pool of orange.
What should I keep an eye out for when I'm trying to develop a website?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非您有非常具体的理由支持 IE6,否则就放弃它。说真的——微软甚至还针对它的消亡举办了一场不错的小活动。 http://www.ie6countdown.com/
为了让我的答案更具体一点,当 我设计一个网站时,会尝试考虑受众。例如,我开发的一个房地产网站可以在 IE7+ 上运行,并提醒 IE6 用户确实应该升级(旧网站的使用率约为 1-3%,因此这是可以接受的事情)。在我工作的技术驱动型网站上,我们只支持 IE8+ - 我们的大多数用户甚至不使用 IE 技术,因此将其提高一点并没有什么大缺点。
您可以使用如下网站: http://www.netmarketshare.com/ browser-market-share.aspx?qprid=1 来查找浏览器共享,如果您正在创建一个面向所有人的新网站,但是..除非您正在做某事,否则不要使用 IE6对于中国人来说似乎:)(基于微软网站)
Unless you have a very specific reason for supporting IE6, just drop it. Seriously - microsoft even has a nice little campaign about it's demise. http://www.ie6countdown.com/
To make my answer a little more specific though, when I design a site, I try and take into account the audience. For instance, a real estate site that I developed works in IE7+, with a note to IE6 users that they really should upgrade (usage on the old site was about 1-3%, so it was an acceptable thing to do). On the tech-motivated site that I work on for my job, we only support IE8+ - a majority of our users don't even use IE technology, so pushing that up a bit has no major drawbacks.
You can use sites like this: http://www.netmarketshare.com/browser-market-share.aspx?qprid=1 to find browser share if you're doing a new site that is for people across the board, but.. don't bother with IE6 unless you're doing something for the Chinese it seems :) (based off of microsoft's site)
如果你确实也需要为 IE6 设计页面,你应该看看这个 CSS-compatbilty- list
我想当前的主要问题是导航项的显示属性“inline-block”的使用。
IE6 不支持 inline-block。
解决方法可能是将
display:block
与float:left
设置一起使用If you really need to design the page for IE6 too, you should take a look at this CSS-compatibilty-list
I guess the major problem currently is the use of the display-property "inline-block" for the navigation-items.
inline-block is not supported by IE6.
A workaround may be the use of
display:block
together with a setting offloat:left