类选择器
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> .logo{ font-size:20px; color:green; background-color:pink; width:120px; height:80px; } .box{ text-indent:2em; } </style> </head> <body> <div class="logo box">专项训练</div> <div class="box logo">星火英语</div> <p>选择器</p> <p>红色</p> </body> </html>