//=$secondUrl?>
CSS
텍스트 스타일
텍스트에 스타일 적용
텍스트에 기울임, 이탤릭 등의 효과를 적용할 수 있습니다. 사용하는 CSS속성은 font-style 입니다.
font-style 속성 사용 방법
선택자{font-style:값}
font-style속성의 값으로 normal, oblique (기울임), italic (이탤릭) , inherit (부모 태그의 값)
그럼 p태그에 기울임(oblique) 효과를 적용하겠습니다.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>font-style</title>
<style>
p{font-style:oblique}
</style>
</head>
<body>
<p>hello world</p>
</body>
</html>
결과는 바로 아래에서 확인할 수 있습니다.
위 코드의 결과
inherit가 뭔지 궁금하시죠?
부모태그의 font-style속성의 값을 그대로 적용한다는 의미입니다. 다음과 같이요.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>font-style</title>
<style>
div{font-style:oblique}
p{font-style:inherit}
</style>
</head>
<body>
<div>
hello world
<p>hello world</p>
</div>
</body>
</html>
결과는 바로 아래에서 확인할 수 있습니다.
위 코드의 결과
다음은 italic입니다.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>font-style</title>
<style>
p{font-style:italic}
</style>
</head>
<body>
<p>hello world</p>
</body>
</html>
결과는 바로 아래에서 확인할 수 있습니다.
font-style 속성에 대해 알아봤습니다. ^^
//=$langList['bottomThankyou'][$langMode]?>