???

???: ??

?????? maxWidth ?? ???

??: ??? ?? ??? ?????.

??: ??Object.style.maxWidth=length|%

?????? maxWidth ?? ?

<html>
<head>
	<meta charset="UTF-8">
<script type="text/javascript">
function setMaxWidth()
{
document.getElementById("p1").style.maxWidth="100px";
}
</script>
</head>
<body>

<p id="p1">這是一些文本內(nèi)容,這是一些文本內(nèi)容,這是一些文本內(nèi)容,這是一些文本內(nèi)容</p>

<input type="button" onclick="setMaxWidth()"
value="設(shè)置最大寬度" />

</body>
</html>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????