---
title: "css浏览器兼容"
author: "Jophy"
date: "2009-04-23T10:56:58Z"
tags: []
slug: "css"
draft: false
lastmod: "2009-04-23T10:56:58Z"
id: 373159
url: "https://jophy.iteye.com/blog/373159"
---

.cssName{ width:213px ; *width:213px !important;*width:211px; }
其中，第一个为firefox下面的，第二个是IE7的，第三个是IE6的
因为：firefox不认 “*”这个东西，也就是后面两个在firefox下面是没有的
因为IE下面“*”是有效的，而且IE7支持“!important”，所以第二个在IE7下面是优先的。自然，第三个就是IE6的
所以使用顺序就是：FireFox，IE7（加*加!important），IE6（加*）