min-width and max-width with the same value?
问题 In the past, I saw the next css and I was thinking if there is some actual difference between min-width: 90px; max-width: 90px; and width: 90px; 回答1: using width will simply specify fixed width over the element without paying attention to its content (so you can have overflow) : div { width: 80px; border:2px solid red; } <div> <img src="https://lorempixel.com/200/100/" /> </div> Using max-width means that the element will have an upper bound for its width. So its width can be from 0 to max