如何縮排文本

實例解析:

text-indent屬性用於指定文字區塊中首行文字的縮排; 允許使用負值,如果值是負數,將第一行左縮排。

可以設定以下的值:

# ● length:定義固定的縮排。預設值:0。   

 ● %:定義基於父元素寬度的百分比的縮排。    

繼續學習
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <style> p {text-indent:50px;} </style> </head> <body> <p>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'</p> </body> </html>