텍스트를 들여쓰는 방법

예제 분석:

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>
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!