Web/Html
line-height 줄의 높이를 지정하는 속성
selfstarter
2019. 11. 26. 07:53
line-height
- 줄의 높이를 지정. 기본값은 normal(1.2)
- length,pixel, %, normal(1.2)로 지정할 수 있다
<head>
<meta charset="utf-8">
<title>jQuery</title>
<style>
.lineHeight {
line-height : 1;
}
.lineHeight2 {
line-height : 30%;
}
</style>
</head>
<body>
<div class="lineHeight">글자높이 1<br>글자높이 1</div><br>
<div class="lineHeight2">글자높이 30%<br>글자높이 30%</div>
</body>