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

COMPACT Attribute | compact Property

Internet Development Index

Sets or retrieves a Boolean value indicating whether the list should be compacted by removing extra space between list objects.

What's New for Internet Explorer 6

This property now applies to the menu and dir objects.

Syntax

HTML<ELEMENT COMPACT ... >
Scriptingobject.compact(v) [ = bCompactList ]

Possible Values

bCompactListBoolean that specifies or receives one of the following values.
trueRemoves extra space between objects in list.
falseDefault. Does not remove extra space between objects in list.

The property is read/write. The property has a default value of false.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

There is no functionality implemented for the compact property for the ul, ol, dir and menu elements unless defined by the author.

Examples

The following example shows how to use the compact property in HTML. Note that the presence of the word COMPACT sets the compact property to true

<HTML>
<BODY>
<DL COMPACT>
<DT>Cat
<DD>A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>
</BODY>
</HTML>

The following example shows how to set the compact property using Microsoft JScript®

<HTML>
<BODY>
<script>
//Function that toggles the compact property for the DL element below
function compactDLToggle()
{
animals.compact = !animals.compact;
toggle.innerText = "Compact = "+animals.compact;
}
</script>
<P style="color:blue; font-weight:bold">Effect of setting COMPACT property for a DL element</P>
<BUTTON id="toggle" onclick="compactDLToggle()">Toggle Compact Property</BUTTON>
<DL id=animals>
<DT>Cat
<DD>A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is deprecated in HTML Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

MENU, DIR, DL, UL, OL
澄城县| 绥德县| 都兰县| 丰县| 眉山市| 惠水县| 宣威市| 乐山市| 无极县| 特克斯县| 仪征市| 苏尼特左旗| 濮阳市| 赫章县| 革吉县| 达孜县| 镇平县| 漳平市| 五常市| 清水河县| 阿拉善左旗| 芜湖市| 穆棱市| 吴堡县| 郎溪县| 三都| 泌阳县| 岐山县| 高淳县| 琼结县| 托里县| 营口市| 赤壁市| 维西| 南通市| 嘉禾县| 荔波县| 通渭县| 康马县| 称多县| 永胜县|