html和css IE兼容性 [英] html and css IE Compatibility

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

问题描述

我用html创建了一个网站,但该页面在IE中显示效果不佳..为什么这个问题???

解决方案

IE浏览器有时候会'根据我们的期望反映。

为此您可以使用条件样式表。

这意味着,您必须为不同版本的IE浏览器包含不同的样式表。并且您只需通过在IE中查看开发人员工具(F12)就可以将您的样式添加到IE中。



请查看以下文章来执行此操作。 />
1. 如何创建仅限IE的样式表 [ ^ ] 。

2. 条件样式表与CSS黑客攻击?答案:都没有! [ ^ ]。



另请查看使用ie 8和ie9时如何处理浏览器问题 [ ^ ]。

i have created a website in html, but that page is not displaying perfectly in IE.. why this problem???

解决方案

IE browsers sometimes don''t reflect as per our expectation.
For that you can use conditional style sheets.
That means, you have to include different style sheets for different version of IE browsers. And you need to add your styles particular to IE only by checking in the developer tool (F12) in IE.

Please check the below articles for doing this.
1. How To Create an IE-Only Stylesheet[^].
2. Conditional stylesheets vs CSS hacks? Answer: Neither![^].

Also Check how to handle browser issues when work with ie 8 and ie9[^].


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

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