How can I make a TextArea 100% width without overflowing when padding is present in CSS?

前端 未结 15 2187
失恋的感觉
失恋的感觉 2020-11-29 14:44

I have the following CSS and HTML snippet being rendered.

<
15条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 15:05

    You can make use of the box-sizing property, it's supported by all the main standard-compliant browsers and IE8+. You still will need a workaround for IE7 though. Read more here.

提交回复
热议问题