一,效果圖。css
二,代碼。html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS 教程</title> <style> body { background-color: #d0e4fe; } h1 { color: range; text-align: center; } p { font-family: "Times New Roman"; font-size: 20px; } </style> </head> <body> <h1>css 實例!</h1> <p>這是一個段落</p> </body> </html>
參考資料:《菜鳥教程》post