<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> </style> </head> <body> <!-- class选择器选择器 .className{} id选择器 #idName{} 属性选择器 [属性名=属性值]{} 完全匹配 [属性名*=属性值]{} 包含 [属性名^=属性值]{} 开头 [属性名$=属性值]{} 结尾 具体选择器,见W3CSchool手册 各种效果: 见W3CSchool --> </body> </html>