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

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

I have the following CSS and HTML snippet being rendered.

<
15条回答
  •  清歌不尽
    2020-11-29 14:49

    Use box sizing property:

    -moz-box-sizing:border-box; 
    -webkit-box-sizing:border-box; 
    box-sizing:border-box;
    

    That will help

提交回复
热议问题