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

HTML DOM clear 屬性

HTML DOM Style 對象參考手冊

定義和用法

clear 屬性設置一個元素的側(cè)面是否允許其他的浮動元素。

語法:

Object.style.clear=left|right|both|none

可能的值

描述
left 在左側(cè)不允許浮動元素
right 在右側(cè)不允許浮動元素
both 在左右兩側(cè)均不允許浮動元素
none 默認。允許浮動元素出現(xiàn)在兩側(cè)。

實例

本例不允許文本左邊的浮動元素:

<html>
<head>
<style type="text/css">
img 
{
float:left;
}
</style>
<script type="text/javascript">
function clearLeft()
{
document.getElementById("p1").style.clear="left";
}
</script>
</head>
<body>

<img src="logocss.gif" width="95" height="84" />

<p id="p1">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.</p>

<input type="button" onclick="clearLeft()"
value="Clear left side of text" />

</body>
</html>

HTML DOM Style 對象參考手冊

惠州市| 瑞昌市| 五莲县| 青岛市| 历史| 万载县| 昔阳县| 高安市| 建宁县| 惠来县| 青铜峡市| 句容市| 巫溪县| 华宁县| 襄汾县| 宁城县| 漠河县| 定襄县| 嘉峪关市| 额敏县| 招远市| 房产| 铜梁县| 荆门市| 开鲁县| 宜都市| 泗洪县| 宣威市| 奉化市| 勐海县| 吉安市| 家居| 万源市| 西乌珠穆沁旗| 隆回县| 锡林浩特市| 门源| 德安县| 陕西省| 田阳县| 高雄市|