欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML DOM lineHeight 屬性

HTML DOM Style 對象

定義和用法

lineHeight 屬性設置行之間的距離(行高)。

語法:

Object.style.lineHeight=normal|number|length|%

可能的值

描述
normal 默認。設置合理的行間距。
number 設置數(shù)字,此數(shù)字會與當前的字體尺寸相乘來設置行間距。
length 設置固定的行間距。
% 基于當前字體尺寸的百分比行間距。

實例

本例改變行高:

<html>
<head>
<script type="text/javascript">
function changeLineHeight()
{
document.getElementById("div1").style.lineHeight="2";
}
</script>
</head>
<body>

<div id="div1">
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</div>
<br />
<input type="button" onclick="changeLineHeight()"
value="Change line-height" />

</body>
</html>

HTML DOM Style 對象