请教input字体颜色的设置问题

发布于 6 年前作者 hujie17891 次浏览最后编辑 6 年前来自 ask

如上图,我想设置200那里是黑色(现在是灰色)。 下面是代码,看要如何修改?谢谢!

//wxml

<view style=“display:flex;” >

<label>用户编号:</label>

<view class=“inputView2”>  

<input  color=“#000000” type=“number” placeholder=“200” bindinput=“phoneInput” height=“10px” />

</view>

</view>

//css

.inputView2 {

background-color: #fff;

line-height: 20px;

}

3 回复
yitao
yitao1 楼6 年前

你的那个 “200” 是placeholder-class 的样式

rguo
rguo2 楼6 年前

设置placeholder-class

cuiyong
cuiyong3 楼5 年前

style=‘color:#000’,怎么说呢,建议先学一下css