英[ˌəʊvəˈfləʊ] US[ˌoʊvərˈfloʊ]

vt.& vi. Overflow, drown; crowd, fill; overflow; overflow of resources

n. Flood, overflow; overflow tube; overflow, excess; exceed the amount

vi. Overflow, overflow; overflow

adj. Overflow, full

Third person singular: overflows Present participle: overflowing past tense: overflowed past participle: overflown

javascript overflow attribute syntax

Function: Specifies how to handle content that does not fit the element box.

Syntax: Object.style.overflow=visible|hidden|scroll|auto

javascript overflow attribute example

<html>
<head>
	<meta charset="utf-8">
<style type="text/css">
div
{
border:thin solid green;
width:100px;
height:100px;
}
</style>
<script type="text/javascript">
function hideOverflow()
{
document.getElementById("div1").style.overflow="hidden";
}
</script>
</head>
<body>

<div id="div1">
这是一些文本,这是一些文本,这是一些文本,这是一些文本
</div>
<br />
<input type="button" onclick="hideOverflow()"
value="Hide overflow" />

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance