请教input字体颜色的设置问题
发布于 5 年前 作者 hujie 17611 次浏览 来自 问答

如上图,我想设置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 回复

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

设置placeholder-class

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

回到顶部