search

Home  >  Q&A  >  body text

css - Why parent width is fixed and centered, but input width: 100% is outside parent range

Like the title, the details are as shown

This is the input style

PHP中文网PHP中文网2758 days ago1772

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-07-03 11:43:30

    Added box-sizing: border-box;
    box-sizing

    reply
    0
  • 習慣沉默

    習慣沉默2017-07-03 11:43:30

    Placeholder,Placeholder,Placeholder,Placeholder

    padding + width is already greater than 100%, the reason is that simple

    In the box model width = margin (maybe) + border + padding + width

    reply
    0
  • Cancelreply