HTML CSS Reference/CSS Attributes and Javascript Style Properties/overflow
Содержание
"overflow" Example
<source lang="html4strict">
<html> <script language="JavaScript"> function function1(){
if(myBody.style.overflow=="auto"){ myBody.style.overflow="scroll"; myButton.value="Set overflow to hidden."; results.innerText="overflow is set to scroll."; return false; } if (myBody.style.overflow=="scroll"){ myBody.style.overflow="hidden"; myButton.value="Set overflow to auto"; results.innerText="overflow is set to hidden."; return false; } if(myBody.style.overflow=="hidden"){ myBody.style.overflow="auto"; myButton.value="Set overflow to scroll"; results.innerText="overflow is set to auto."; return false; }
} </script> <body id="myBody" bottommargin="250" style="overflow:auto">
<input id=myButton type=button value="Set overflow to scroll" onclick="function1();">
</body>
</html>
</source>
"overflow" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | | |
| || | |<body>| | |
| |<dir>| | |<col> <colgroup> | | |currentStyle <custom> | | |
defaults | | | || | |
- | | | <embed> | | |<fieldset> | | |<form> <hn> | | |<html> | | |<input type="button"> <input type="checkbox"> | | |<input type="file"> <input type="image"> | | |<input type="password"> <inputtype="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> | | | <label> | | |<legend>
- | | |<listing> <menu> | | |
| | |
| | |