max
UK[mæks] 美[mæks]
adv.At most
height
英[haɪt] 美[haɪt]
n.Height; height, altitude; highland; top, vertex
Plural: heights
css max-height property syntax
Function:Set the maximum height of the element.
Description: This attribute value will set a maximum limit on the height of the element. Therefore, the element can be shorter than the specified value, but not taller. Negative values are not allowed.
Note: The max-height property does not include margins, borders, and padding.
css max-height property example
<html> <head> <style type="text/css"> p { max-height: 10px } </style> </head> <body> <p>这是一些文本。这是一些文本。这是一些文本。 这是一些文本。这是一些文本。这是一些文本。 这是一些文本。这是一些文本。这是一些文本。 这是一些文本。这是一些文本。这是一些文本。 这是一些文本。这是一些文本。这是一些文本。</p> <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" /> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance