uni-app input placeholder-style以及placeholder-class无效
uni-app input placeholder-style以及placeholder-class无效
示例代码:
<input v-model="pwd" class="input-txt" password type="text" value="" placeholder="请输入密码" placeholder-class="placeholder"/>
.placeholder{
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
}
操作步骤:
<input v-model="pwd" class="input-txt" password type="text" value="" placeholder="请输入密码" placeholder-class="placeholder"/>
.placeholder{
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
}
预期结果:
提示字体颜色变成白色
实际结果:
提示字体颜色是默认色
bug描述:
input placeholder-style以及placeholder-class无效
.placeholder{
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
}
在APP中实际是默认设置的颜色。

相关链接 :
更多关于uni-app input placeholder-style以及placeholder-class无效的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
问题已确认,后续优化,已加分,感谢您的反馈!
更多关于uni-app input placeholder-style以及placeholder-class无效的实战教程也可以访问 https://www.itying.com/category-93-b0.html


