سایت آموزشی فری لرن

300 x 150
x
 
<!DOCTYPE html>
<html>
<head>
<style>
div{
 background-color: #d3691f;
 color: #fff;
 padding: 10px; 
 margin: 10px 0;
}
/* حالت عادی و معمولی */
.T1{
 line-height: normal;
}
/* استفاده از عدد */
.T2{
 line-height: 2;
}
/* استفاده از واحدهای اندازه گیری */
.T3{
 line-height: 5px;
}
</style>
</head>
<body>
<h2>line-height: normal</h2>
<div class="T1">
Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.
</div>
<h2>line-height: 2 [معادل 32پیکسل]</h2>
<div class="T2">
Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.
</div>
<h2>line-height: 5px</h2>
<div class="T3">
Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.Salam In Yek Matn Baraye Test Mibashad.
</div>
</body>
</html>
آدرس با موفقیت کپی شد