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

visibility Attribute | visibility Property

Internet Development Index

Sets or retrieves whether the content of the object is displayed.

Syntax

HTML { visibility : sVisibility }
Scriptingobject.style.visibility [ = sVisibility ]

Possible Values

sVisibilityString that specifies or receives one of the following values.
inheritDefault. Object inherits the visibility of the next parent object.
visibleObject is visible.
hiddenObject is hidden.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of inherit. The Cascading Style Sheets (CSS) attribute is not inherited.

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

Unlike display:none, objects that are not visible still reserve the same physical space in the content layout as they would if they were visible. You can change the visibility through scripting to show and hide overlapping content based on user interaction. For document style scripting information, see Introduction to Dynamic Styles.

As of Microsoft® Internet Explorer 5, a child object can be visible when its parent is hidden. With Internet Explorer 4.0, the parent object must be visible for a child object to be visible.

Examples

The following examples use the visibility attribute and the visibility property to determine whether the object is visible.

This example uses two calls to an embedded (global) style sheet to hide and then show the image when the user moves the mouse over and off the text.

<STYLE>
.vis1 { visibility:visible }
.vis2 { visibility:hidden }
</STYLE>
</HEAD>
<BODY>
<IMG ID="oSphere" SRC="sphere.jpg">
<P onmouseover="oSphere.className='vis2'"
onmouseout="oSphere.className='vis1'">
Move the mouse over this text to make the sphere
disappear.</P>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

This example uses a call to a function to hide the image.

<SCRIPT>
function disappear()
{
oSphere.style.visibility="hidden";
}
function reappear()
{
oSphere.style.visibility="visible";
}
</SCRIPT>
</HEAD>
<BODY>
<IMG SRC="sphere.jpeg" ID="oSphere">
Move the mouse over <SPAN ID="oTxt" onmouseover="disappear()"
onmouseout="reappear()"> this text</SPAN>
to see the sphere disappear.
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 2 (CSS2) Non-Microsoft link.

Applies To

A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, CUSTOM, DD, defaults, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OBJECT, OL, P, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
屏东市| 沅江市| 华阴市| 宝清县| 永和县| 镇宁| 安吉县| 称多县| 定安县| 明水县| 江口县| 衡水市| 南丹县| 惠水县| 红河县| 台南县| 灵台县| 丰城市| 高密市| 英山县| 玛曲县| 慈溪市| 微博| 奈曼旗| 沈丘县| 茂名市| 奉贤区| 鄂尔多斯市| 女性| 馆陶县| 潍坊市| 特克斯县| 沁源县| 册亨县| 龙井市| 天长市| 泸西县| 太谷县| 淮北市| 梧州市| 佳木斯市|