1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <style type="text/css"> 6 div{ 7 width:300px; 8 height:30px; 9 background:skyblue; 10 } 11 p{ 12 width:300px; 13 height:30px; 14 background:skyblue; 15 } 16 span{ 17 background:red; 18 } 19 /* 20 选择器{属性:值} 21 样式声明; 22 */ 23 </style> 24 </head> 25 26 <body> 27 <div></div> 28 <p></p> 29 <span>世界与逻辑</span> 30 </body> 31 </html>