css max-height property
Translation results:
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 propertysyntax
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 propertyexample
<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
Popular Recommendations
- Basic Protection Against Max Execution Time Limit
- XRP (XRP), SUI (SUI), and IntelMarkets (INTL): Which Coin Will Reach a New Height?
- NBA 2K25 jumpshot guide: All requirements and best jump shots for each player height
- Xiaomi\'s huge TV Max 100 on the way to Europe
- Xiaomi reveals new Robot Vacuum X20 Max as best global model
- iPhone 16 Pro Max lab test reveals its actual charging speed