why css width property is working with input element
问题 According to CSS docs: The width CSS property ... applies to all elements but non-replaced inline elements, table rows, and row groups Input is inline element. So why width property is work with input element? 回答1: The exception is for non-replaced inline elements . Input is a replaced element. Replaced element In CSS, a replaced element is an element whose representation is outside the scope of CSS. These are kind of external objects whose representation is independent of the CSS. Typical