max
UK[m?ks] 美[m?ks]
adv.At most
width
英[w?dθ] 美[w?dθ, w?θ, w?tθ]
n.Width; breadth
Plural: widths
css max-width property syntax
Function:Define the maximum width of the element.
Description: This attribute value will set a maximum limit on the width of the element. Therefore, the element can be narrower than the specified value, but not wider. Negative values ??are not allowed.
Note: All major browsers support the max-width attribute.
css max-width property example
<html> <head> <style type="text/css"> p { max-width: 300px } </style> </head> <body> <p>這是一些文本。這是一些文本。這是一些文本。 這是一些文本。這是一些文本。這是一些文本。 這是一些文本。這是一些文本。這是一些文本。 這是一些文本。這是一些文本。這是一些文本。 這是一些文本。這是一些文本。這是一些文本。</p> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance