min

abbr.minute minute;minuto (Portuguese or Spanish=minute) (Portuguese or Spanish) minute;minority minority;miniature small

width

UK[wɪdθ] US[wɪdθ, wɪθ, wɪtθ]

n.Width; breadth

Plural: widths

javascript minWidth attribute syntax

Function:Set the minimum width of the element box.

Syntax: Object.style.minWidth=length|%

javascript minWidth attribute example

<html>
<head>
	<meta charset="utf-8">
<script type="text/javascript">
function setMinWidth()
{
document.getElementById("p1").style.minWidth="1000px";
}
</script>
</head>
<body>

<p id="p1">这是一些文本,这是一些文本,这是一些文本,这是一些文本</p>

<input type="button" onclick="setMinWidth()" value="Set min width" />

</body>
</html>

Run instance »

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