글꼴 두께를 설정하는 방법

분석 예:

font-weight 속성은 텍스트의 두께를 설정하는 데 사용됩니다.

다음 속성 값을 설정할 수 있습니다.

설명
normal표준 문자를 정의하는 기본값.
bold 굵은 문자를 정의하세요.
bolder 더 굵은 문자를 정의하세요.
lighter는 더 미세한 문자를 정의합니다.

○ 100

○ 200

○ 300

○ 400

○ 500

○ 600

○ 700

○ 800

○ 900

굵은 글자부터 얇은 글자까지 정의합니다. 400은 Normal에 해당하고, 700은 Bold에 해당합니다.





지속적인 학습
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <style> p.normal {font-weight:normal;} p.light {font-weight:lighter;} p.thick {font-weight:bold;} p.thicker {font-weight:900;} </style> </head> <body> <p class="normal">This is a paragraph.</p> <p class="light">This is a paragraph.</p> <p class="thick">This is a paragraph.</p> <p class="thicker">This is a paragraph.</p> </body> </html>
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!