方法1。页面顶上加
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
IE7在有DOCTYPE的时候才支持!important
方法2。
<style type="text/css">
#nav_top_right{
background:orange;
}
</style>
<!--[if lte IE 6]>
<style type="text/css">
#nav_top_right{
background:green;
}
</style>
<![endif]-->