テキストをインデントする方法

分析例:

#text-indent 属性は、テキスト ブロック内のテキストの最初の行のインデントを指定するために使用されます。値が負の場合は、最初の行を左にインデントします。負の値も許可されます。

次の値を設定できます:

●長さ: 固定インデントを定義します。デフォルト値: 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>
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!