最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

HTML DOM lineHeight 屬性

HTML DOM Style 對象參考手冊

定義和用法

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

語法:

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

可能的值

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

實例

本例改變行高:

<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 對象參考手冊

金秀| 湟源县| 方山县| 红原县| 班戈县| 碌曲县| 青河县| 花莲县| 保德县| 明星| 永靖县| 通化县| 霍州市| 青河县| 日土县| 普安县| 威海市| 阿尔山市| 湖州市| 乐清市| 安国市| 汝城县| 恩平市| 盘锦市| 宜宾市| 调兵山市| 施秉县| 福州市| 绿春县| 老河口市| 三都| 甘孜县| 宁武县| 宜阳县| 靖江市| 紫金县| 怀宁县| 同德县| 芮城县| 信丰县| 商丘市|