javascript minHeight property
Translation results:
min
abbr.minute minute;minuto (Portuguese or Spanish=minute) (Portuguese or Spanish) minute;minority minority;miniature small
height
英[haɪt] 美[haɪt]
n.Height; height, altitude; plateau; peak, vertex
plural: heights
javascript minHeight propertysyntax
Function:Set the minimum height of the element.
Syntax: Object.style.minHeight=length|%
javascript minHeight propertyexample
<html> <head> <meta charset="utf-8"> <script type="text/javascript"> function setMinHeight() { document.getElementById("p1").style.minHeight="200px"; } </script> </head> <body> <p id="p1">这是一些文本,这是一些文本,这是一些文本,这是一些文本</p> <input type="button" onclick="setMinHeight()" value="Set min height" /> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance