给input(或texarea)一个作用于placeholder的类名.
wxml:
1 <input placeholder="请输入内容" placeholder-class="input-placeholder"/>
wxss:
1 .input-placeholder { 2 color:#ccc; 3 font-size:32rpx; 4 }