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