.container { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; }

.text-area { width: 80%; height: 200rpx; border: 1rpx solid #ccc; padding: 10rpx; font-size: 28rpx; }

//index.js Page({ handleInput(event) { console.log(event.detail.value); // 输出输入的文本内容 } })

微信小程序实现自动换行文本框:代码示例与样式定制

原文地址: https://www.cveoy.top/t/topic/pSs8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录