针对input的文字垂直居中,我单独做了个实验,重新编辑了此帖,存在于value 和 placeholder 是否有值造成的渲染差异,详细在代码片段中查看
麻烦官方看下,查下是否是渲染的BUG
@官方@官方@官方
@官方麻烦来看看
input 和textarea 都有这问题,而且line-height 是没有效果的
问题没有复现,你是什么机型?
.operation .number {
width: 60rpx;
height: 40rpx;
line-height: 40rpx;
min-height: 40rpx;
text-align: center;
border: 0;
background: transparent;
font-size: 25rpx;
color: #999;
position: relative;
z-index: 10;
margin-top: -3rpx;
}
试一下