使用ie 8和ie9时如何处理浏览器问题 [英] how to handle browser issues when work with ie 8 and ie9

查看:62
本文介绍了使用ie 8和ie9时如何处理浏览器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标签和文本框在IE8和IE9浏览器中没有正确对齐。

其中显示了7和以前的版本中的属性

the labels and text boxes are not aligned properly in IE8 and IE9 browsers.
where as there are showing propery in ie 7 and previous versions

推荐答案

您可以通过为我们的项目中的不同IE浏览器添加不同的样式表来实现。



您需要在页面中执行以下操作 head 部分。

You can do it by adding different style sheets for different IE browsers as we do in our projects.

You need to do like below in your pages head section.
<!--[if !IE]><!-->
    <link rel="stylesheet" type="text/css" href="Styles/style.css" />
<!--<![endif]-->
<!--[if IE 7]>
    <link href="Styles/ie7-style.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 8]>
    <link href="Styles/ie8-style.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 9]>
    <link href="Styles/ie9-style.css" rel="stylesheet" type="text/css">
<![endif]-->



因此,对于不同的IE浏览器,您将有三种不同的样式表。

然后,您可以通过在浏览器F12窗口中检查它们来分别编写您想要在这些文件中执行的任何样式。



谢谢......


So, you will have three different style sheets for different IE browsers.
Then you can write whatever styles you want to do in those files separately by checking them in browsers F12 window.

Thanks...


这篇关于使用ie 8和ie9时如何处理浏览器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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