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

HTML DOM content 屬性

HTML DOM Style 對(duì)象

定義和用法

content 屬性設(shè)置文本或圖像出現(xiàn)(浮動(dòng))在另一個(gè)元素中的什么地方。

語法:

Object.style.content=value

可能的值

描述
string 定義文本內(nèi)容。
url 定義 url。
  • counter(name)
  • counter(name, list-style-type)
  • counters(name, string)
  • counters(name, string, list-style-type)
 
attr(X) 定義顯示在該選擇器之前或之后的選擇器的屬性。
open-quote  
close-quote  
no-open-quote  
no-close-quote  

提示和注釋

注釋:如果在一行中對(duì)于浮動(dòng)元素而言空間太少,則這個(gè)元素會(huì)跳到下一行,這個(gè)過程會(huì)持續(xù)到有足夠空間的一行為止。

注釋:行內(nèi)元素的內(nèi)容、背景和邊框應(yīng)該出現(xiàn)在浮動(dòng)元素之前。塊級(jí)元素的背景和邊框應(yīng)當(dāng)出現(xiàn)在浮動(dòng)元素之后,但是塊級(jí)元素的內(nèi)容應(yīng)當(dāng)在浮動(dòng)元素的前面。

實(shí)例

本例設(shè)置圖像浮動(dòng)于左邊:

<html>
<head>
<script type="text/javascript">
function setFloatLeft()
{
document.getElementById("img1").style.cssFloat="left";
}
</script>

</head>
<body>

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

<p>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>

<form>
<input type="button" onclick="setFloatLeft()" value="Set image to float left" />
</form>

</body>
</html>

HTML DOM Style 對(duì)象

瑞安市| 西丰县| 屏东县| 泗洪县| 乐陵市| 金溪县| 夏津县| 巴林左旗| 个旧市| 兴义市| 遂昌县| 白城市| 临泽县| 陆川县| 张家港市| 新河县| 华亭县| 莱西市| 临潭县| 罗定市| 教育| 砚山县| 商河县| 遵义县| 仙桃市| 南昌市| 凤台县| 体育| 萍乡市| 五指山市| 保德县| 青田县| 遂川县| 道孚县| 肃北| 永安市| 信宜市| 安国市| 宜兴市| 福鼎市| 新泰市|