一.綁定屬性
給input框綁定?placeholder-class="placeholder-style"這個(gè)屬性。
<input placeholder="請(qǐng)輸入關(guān)鍵字" placeholder-class="placeholder-style"/>
二.修改
.placeholder-style {
color: rgba(164, 165, 172, 1);
font-size: 24rpx;
font-weight: 400;
}
三.例子
綁定屬性
?文章來源地址http://www.zghlxwxcb.cn/news/detail-574356.html
?設(shè)置樣式文章來源:http://www.zghlxwxcb.cn/news/detail-574356.html
?
到了這里,關(guān)于微信小程序設(shè)置input框placeholder的字體大小的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!