<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <style> #id{ width:200px; height:200px; background:red \9; /*ie 6 7 8 9*/ background:#00ff11\9\0; /*ie9*/ background:blue\0/; /*ie 8 9*/ background:#123456\0; /*ie 8*/ *background:black; /*ie 7*/ _background:#ffcc00; /*ie 7*/ } </style> <body> <div id="id"></div> </body> </html>