微信小程序 input、textarea设置宽度100%,还是超出父元素的宽度
Sonder
2022-07-19
117字
浏览 (4.7k)
![N_UEZWO9I2PJ~~9IP17_138.jpg](https://s2.loli.net/2022/07/19/NHrjmlSn472sqFV.jpg)
input,textarea{
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
input,textarea{
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}