最新国产好看的视频,伊人天堂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
无为县| 嘉黎县| 镇赉县| 乐平市| 政和县| 顺平县| 安国市| 山西省| 容城县| 那坡县| 岳池县| 盱眙县| 尼勒克县| 澎湖县| 佛冈县| 监利县| 满洲里市| 思茅市| 巴彦县| 富阳市| 聂荣县| 年辖:市辖区| 民县| 浮山县| 大宁县| 桐庐县| 湘乡市| 榆中县| 阿拉善左旗| 百色市| 留坝县| 南充市| 木里| 禄丰县| 武乡县| 吉安县| 花垣县| 柯坪县| 贡山| 安泽县| 新绛县|