读书人

IE8 css hack,该怎么解决

发布时间: 2012-09-14 11:53:44 作者: rapoo

IE8 css hack
不知各位有没有使用过IE8,有没有找到总结IE8的CSS hack?网上找的/*/p{ color:#1e90ff}/*/在IE8似乎没效果

[解决办法]
某外文网站上的解决方案,摘抄如下:

Place the following HTML META tag into the HEAD element of each Web page (before tags other than TITLE or META):

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

This will tell Windows Internet Explorer 8 to render each page as Windows Internet Explorer 7 would, fixing your Web site.

大意是:在<head>中,<title>和任何<meta>之前插入这个<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> , 这一行信息就告诉IE8该页面按照IE7的规则来处理!我已用过,能够解决问题![color=#800080][/color]

读书人网 >CSS

热点推荐