/*id和table*/ #a{ background-color:green; width:400px; height:300px; } tr{ background-color:pink; } td{ color:gray; } /*class*/ .a{ color:red; font-size:20px; } /*class和id混合*/ .d{font-size:15px; background-color:green; font-style :italic ; } #b,#f{ color:yellow; background:red; } .h{ text-transform:capitalize ; } /*混合继承*/ .e{ background-color:pink; width:400px; height:300px; } #t{ letter-spacing :length; text-decoration:underline; } div{ text-decoration:blink; } .e #t{font-size:50px;font-style:oblique ; } .e #t div{ color:gray; }