简体   繁体   English

使用IFrame进行响应式设计测试面临IE7和IE8问题

[英]Responsive Design Testing using IFrames facing problems with IE7 and IE8

I am trying to create a page which accepts URL of the website and shows me all the display sizes horizontally. 我正在尝试创建一个接受网站URL的页面,并向我显示所有显示尺寸的水平页面。

something like this : http://dfcb.github.com/Responsivator/ or something like this : http://mattkersley.com/responsive/ 像这样的东西: http : //dfcb.github.com/Responsivator/或像这样的东西: http : //mattkersley.com/sensitive/

In both the websites they are using iframes to load content in the specified width and then they are playing with width and height for different devices, it works well in all browsers apart from IE7 and IE8 I am wondering how to make it work on IE 7 and 8. There should be some way or other. 在这两个网站中,他们都使用iframe加载指定宽度的内容,然后在不同设备上播放宽度和高度,它在IE7和IE8之外的所有浏览器中都能正常工作,我想知道如何使其在IE 7上正常工作8.应该有某种方式。

I read somewhere that http://www.ehow.com/how_8123203_use-iframes-ie8.html you can use P3P headers but I am not sure. 我在某处读到了可以使用P3P标头的http://www.ehow.com/how_8123203_use-iframes-ie8.html ,但我不确定。

language is not an issue. 语言不是问题。 but I just want it to be working on every browser. 但我只希望它能在每种浏览器上使用。 I have developed a test page and kept it online : http://sentimentanalysis.comeze.com/responsiate/ 我已经开发了一个测试页面并使其保持在线: http : //sentimentanalysis.comeze.com/responsiate/

if you see closely it works fine on chrome, ff, IE 9 but works pretty weird on IE7 and 8, how to make it look same? 如果您仔细观察它在chrome,ff,IE 9上能正常工作,但在IE7和8上却很奇怪,如何使它看起来相同? Is it possible? 可能吗?

Any pointers would be helpful. 任何指针都会有所帮助。

Responsive design doesn't work in IE7 and 8. 响应式设计在IE7和8中不起作用。

Using methods like: 使用如下方法:

@media only screen and (max-width: 768px){}

do not working in IE7 or IE8, the only way around this is the client side Chrome frame. 不能在IE7或IE8中使用,解决此问题的唯一方法是客户端Chrome框架。

Mobile headers (not responsive media queries) 移动标题(无响应媒体查询)

You can send pretend mobile headers but that's about it. 您可以发送假装的移动标头,仅此而已。 This would require a lot of messing about to fool the server into thinking you are on a mobile device, but it will take a lot of doing. 这将需要很多麻烦来欺骗服务器,使您以为您在移动设备上,但是这需要大量的工作。 Your server will have to request the page and all of it's assets (images, styles and scripts) and it won't show the true responsive design of the site: only the full mobile site if the target has one. 您的服务器将必须请求该页面及其所有资产(图像,样式和脚本),并且它不会显示该站点的真正响应式设计:如果目标站点只有一个,则仅显示整个移动站点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM