320 及更高版本在 ie7+8 标准模式下恢复为 320?
我是 320 及以上模板的新手,目前正在 ie9 上测试网站的 shell,但使用开发工具来测试 ie8 和 ie8。 7 标准模式。
该网站还使用biolerplate html5 和wordpress。 我已经查看并测试了我认为我能看到的所有内容,看起来它应该在所有浏览器中工作......但
我没有在这里上传一个测试网站: http://dev.clear-living.co.uk
如果有人能发现我的错误眼睛(睡眼惺忪)看不清请帮我指出来。我已经看了这两天了!
更新: 当我说它不起作用时,我的意思是它保持 320 宽度格式,并且不会在浏览器中放大。测试这一点的最佳方法就是调整浏览器窗口的大小。在上面的链接中,这在除 ie7 和 ie7 之外的所有浏览器中都可以正常工作。 8 标准模式。
I'm new to the 320 and up template and I'm currently in the process of testing a shell of a site on ie9 but using dev tools to test ie8 & 7 in standards mode.
The site also uses biolerplate html5 and wordpress.
I've looked at and tested what I feel is everything I can see and it all looks like it should work in all browsers... it doesn’t
I've uploaded a test site here:
http://dev.clear-living.co.uk
If anyone can spot the error that my eyes (blearily) fail to see please point it out for me. I've been looking at this for two days now!
UPDATE:
when I say it doesn't work I mean it stays on the 320 width format and doesn't scale up in the browser. Best way of testing this is just to resize the browser window. In the link above this works fine in all browsers except ie7 & 8 in standards mode.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从表面上看,320 And Up 的设计目的是在 CSS 中使用响应式媒体查询,这在 IE8 及更低版本中不起作用。 320 提供了一个脚本 - respond.min.js - 在这些中启用使用 Javascript 的媒体查询顽固的浏览器,但你似乎没有包含它,我猜这就是导致你的问题的原因。
检查 320 及以上提供的示例页面底部;你会看到其中包含的脚本,有选择地用于更无用的 IE 版本。还包括 DOMAssistantCompressed 和 selectivizr;我猜你会希望 IE8 及以下版本的所有这些都可以与 320 及以上版本一起使用。
By the looks of it, 320 And Up is designed to use responsive media queries in its CSS, which don't work in IE8 and below. There's a script provided with 320 -- respond.min.js -- to enable media queries using Javascript in these recalcitrant browsers, but you don't appear to be including it, which I'm guessing is what's causing your problem.
Check the bottom of the example pages provided with 320 And Up; you'll see the script included there, selectively for the more useless versions of IE. DOMAssistantCompressed and selectivizr are also included; I'm guessing you'll want all of those make IE8 and below work with 320 And Up..
感谢@Matt 的评论。即使我确实包含了respond.js,它仍然无法正常工作!
我花了很长很长的时间试图让它发挥作用......
...答案。
我从 github 上得到了最新的 respond.js,它的效果就像做梦一样!
真希望我早点想到这一点!
Thanks to @Matt for your comments. Even when I did include respond.js it still wasn't working!
I've spent a long, long time trying to get this to work....
...answer.
I got the latest respond.js from github and it worked like a dream!
Wish I'd have thought about that earlier!