One, maximum width attribute max-width
1. In CSS, the maximum width attribute (max-width) is used to define the maximum width display, and the element displays the width defined by the maximum width value when dragging the browser border so that its display range is greater than the maximum width.
2, in the maximum width attribute value, you can use three property values, respectively, auto value, length value and percent value, the syntax structure is as follows
Max-width:auto | Length | Percent
Note: In IE6.0, this property is ignored and the width is displayed with the default value of 100%
Second, minimum width attribute min-width
1. In CSS, the minimum width attribute (min-width) is used to define the minimum width display, and the element displays the width defined by the minimum width value when dragging the browser border so that its display range is less than the minimum width.
2, in the minimum width attribute, you can use three property values, respectively, auto value, length value and percent value, the syntax structure is as follows:
Min-width:aotu | Length | Percent
Note: In IE6.0, this property is ignored and the width is displayed with the default value of 100%
Reference: CSS Min-width and Max-width http://www.studyofnet.com/news/881.html
This article is from the "Learning also leisure" blog, please be sure to keep this source http://studyofnet.blog.51cto.com/8142094/1688381
The use of CSS Min-width and max-width