微信小程序:placeholder字体大小和颜色设置

  1. 在页面的wxml文件中定义 placeholder-class="phcolor"
  2. 在页面的wxss文件中定义 phcolor对应的样式内容

page.wxml


page.wxss

.phcolor{
    color:#aaa;
    font-size: 12px;
}

你可能感兴趣的:(微信小程序:placeholder字体大小和颜色设置)