---
title: "Discussion on \"2010全面兼容ie6/ie7/ie8/ff的css Hack写法\" | Hashnode"
description: "Discussion on \"2010全面兼容ie6/ie7/ie8/ff的css Hack写法\". 浏览器市场的混乱，给设计师造成很大的麻烦，设计的页面兼容完这个浏览器还得兼容那个浏览器，本来ie6跟ff之间的兼容是很容易解决的。加上个ie7会麻烦点，ie8的出现就更头疼了，原来hack ie7的方法又不能用了，怎么办呢？\n第一种方法：\n还好，微软提供了这样一个代码：\n把这段代码放到里面，在ie8里面的页面解析起来就跟ie7一模一样的了，所以，基本上可以无视ie8，剩下的代码只需要这样写就可以了\nbackground:#ffc; /\\*  对firefox有效\\*/\n\\*background:..."
url: "https://hashnode.com/posts/2010ie6ie7ie8ffcss-hack/628d95eab4bd016fc9a32abe"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [2010全面兼容ie6/ie7/ie8/ff的css Hack写法](https://www.topzs.com/2010ie6ie7ie8ffcss-hack?utm_source=hashnode&utm_medium=feed)

浏览器市场的混乱，给设计师造成很大的麻烦，设计的页面兼容完这个浏览器还得兼容那个浏览器，本来ie6跟ff之间的兼容是很容易解决的。加上个ie7会麻烦点，ie8的出现就更头疼了，原来hack ie7的方法又不能用了，怎么办呢？ 第一种方法： 还好，微软提供了这样一个代码： 把这段代码放到里面，在ie8里面的页面解析起来就跟ie7一模一样的了，所以，基本上可以无视ie8，剩下的代码只需要这样写就可以了 background:#ffc; /\\\* 对firefox有效\\\*/ \\\*background:...

Apr 8, 2010 · 1 min read · topzs.com  
Read the article

-   [#css](https://hashnode.com/tag/css)

## Written by

[Topaz](https://hashnode.com/@tangchang)

@tangchang

  
[View profile](https://hashnode.com/@tangchang)

Front-end development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
