*{margin:0;padding:0;} ul li{width:100px;height:20px;} li.a{background:#ccc;} li.b{background:red;}