input placeholder-style 在真机不起作用
我给一个input设置placeholder-style="color:red"的时候不起作用,要触发其他事件之后才起作用。
< view class = "page-section" > < view class = "weui-cells__title" >{{amountInvaild?'color:red':''}}</ view > < view class = "weui-cells weui-cells_after-title" > < view class = "weui-cell weui-cell_input" > < input class = "weui-input" type = "number" name = "amount" bindinput = "bindAmountInput" placeholder = "请输入数量" placeholder-style = "{{amountInvaild?'color:red':''}}" value = "{{selectedType.default}}" /> </ view > </ view > </ view > |
模拟器就不会有问题。
设备:iPhone 6 plus
os:10.3.1
Wechat:6.5.7