01通配符选择器.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> /* 通配符选择器 代表所有标签*/ * { color: red; } </style> </head> <body> <div>我是文本</div> <p>我是一段文字</p> <span>文字</span> <h1>一级标题</h1> </body> </html>