Problem with <input type='text' /> and <textarea> width

后端 未结 6 724
感情败类
感情败类 2020-12-19 03:04

In the following code, both the INPUT and TEXTAREA elements render wider than they should. How can I limit them to 100% of the usable area within the div?

&         


        
6条回答
  •  一整个雨季
    2020-12-19 03:39

    I had this same problem. I used the box-sizing property mentioned here:

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

    Here's what it looked like for me:

    
    

提交回复
热议问题