在某些情况下 自己定义的高度无法实现展示,不管是设置了height还是line-height,父元素也设置了最后结果还是不起作用,在这样的情况下 你就应该考虑下设置下min-height
<view style="height: 40px;">
<input style="min-height: 25px; height: 25px; border: 1px solid #007AFF;" type="digit" placeholder="带小数点的数字键盘" />
</view>
这样子就可以设置好高度