源代碼
點擊運行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> <style> p.ex1 {margin-left:2cm;} </style> </head> <body> <p>一個沒有指定邊距大小的段落。</p> <p class="ex1">一個左邊距為2厘米的段落。</p> <p>一個沒有指定邊距大小的段落。</p> </body> </html>
運行結果