<!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>体验CSS语法规范</title> <style> /* 选择器 {样式} */ /* 给谁改样式 { 改什么样式} */ p { color: red; /* 修改了文字大小为12像素 */ font-size: 12px; } </style> </head> <body> <p>有点意思</p> </body> </html>