IE版本的兼容性问题 [英] compatiblility problem with IE versions

查看:91
本文介绍了IE版本的兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我正在开发一个项目,因为使用X-UA-COMPATIBLE标签可以正常使用IE7,但是当我删除标签时,显示的布局变得混乱...请​​帮助我,这样我就可以删除兼容性标签和很好地运行项目并在所有IE版本中正确显示布局

hello i am working on a project where it works fine with IE7 since using X-UA-COMPATIBLE tag but when i remove the tag the layout displayed gets jumbled...please help me so the i can remove the compatibility tag and run the project well and fine and layout is displayed correctly in all IE versions

推荐答案

您好,



我在这个项目中的几次问题也有同样的问题,我在这种情况下提出了以下两个解决方案..



1)你要么加一个您在标题元标记中的更多属性(content =" IE = edge"),您可以在其中设置compalibilty模式。因为内容属性的此Edge值将自动采用您的应用程序正在使用的浏览器的最新布局功能。



2)另一个最佳解决方案是一旦您运行你在IE中的页面请按f12打开IE视觉网页开发人员并确定哪个css类正在影响你的布局。一旦你发现css类,请根据你的需要进行必要的改动来覆盖它。在页面中应用相同的css类。
Hi,

I have had same Problem in my one of the project few time back and I came up with below two solution on this situation..

1) Either you please add one more attribute by name (content="IE=edge") in your header meta tag where you are setting compalibilty mode. Because this Edge value of content attribute will automatically take the latest layout feature of the browser which your application is using.

2) Another best solution is that Once you are running your page in IE please open IE visual web developer by pressing 'f12' and identify which css class is impacting your layout, Once you find out that css class please override it by making nessasary changes according to your need. apply the same css class in your page.


这篇关于IE版本的兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆