CSS의 텍스트 변환의 경우 다음 값과 함께 text-transform 속성을 사용하십시오 -
text-transform: none|capitalize|uppercase|lowercase|initial|inherit;
예시
<!DOCTYPE html> <html> <head> <style> div { line-height: 1.9; text-transform: uppercase; } </style> </head> <body> <h1>Demo Heading</h1> <div> <p>This is demo text.<br> This is another demo text. </p> </div> </body> </html>
출력
예시
다른 예를 보겠습니다 -
<!DOCTYPE html> <html> <head> <style> div { text-transform: lowercase; } </style> </head> <body> <h1>Demo Heading</h1> <div> <p>THIS is demo text.<br> This is ANOTHER demo text. </p> </div> </body> </html>
출력