IE的DIV布局和CSS样式问题 [英] DIV Layouts and CSS styling problems with IE

查看:114
本文介绍了IE的DIV布局和CSS样式问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我目前正在网站上工作,主要使用Google Chrome浏览器作为默认浏览器.

在Chrome中,网站看起来不错,所有div的布局均正确,并且所有CSS样式均应如此,但是在IE9中,某些样式未显示,并且我的几个div的大小不同,或放置在其上的位置不正确页面.

现在,我已经研究了CSS兼容性,并找到了在IE中显示某些CSS样式的正确方法,例如box-shadow和text-shadow.但是它们仍然不显示.

如果有人有任何建议,将不胜感激!

问候,
Tom.

Hi everyone,
I''m currently working on a website, and I primarily use Google Chrome as my default browser.

In Chrome the website looks fine, all divs are laid out correctly, and all CSS stylings are how they should be, however in IE9, some of the stylings are not showing, and a couple of my divs are different sizes, or incorrectly placed on the page.

Now I have researched on CSS compatibilty and found the correct ways of showing some CSS styles in IE, like box-shadow, and text-shadow for example. However they still do not show.

If anyone has any suggestions that would be greatly appreciated!

Regards,
Tom.

推荐答案

AFAIK,没有针对跨浏览器CSS兼容性问题的标准单一解决方案.

如果您选择使您的网站在各种浏览器和浏览器版本中看起来不错,

您可以为目标定位的每个浏览器和版本使用单独的CSS文件,并为每个浏览器相应地定制每个CSS文件.

如果选择具有单个CSS文件,则需要通过反复试验的方法在各种浏览器中对其进行测试并相应地调整属性来手动执行CSS优化.
AFAIK, There is no standard single solution for cross browser CSS compatibility issues.

If you choose to make your website look good in various browsers and browser versions,

You can have seperate CSS files for each browser and version that you target and tailor each CSS file accordingly for each browser.

If you choose to have a single CSS file, then you will need to manually perform CSS optimisation by trial and error method by testing it in various browsers and adjusting the attributes accordingly.


这篇关于IE的DIV布局和CSS样式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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