input中的文字无法垂直居中
发布于 4 年前 作者 jing59 5382 次浏览 来自 问答

针对input的文字垂直居中,我单独做了个实验,重新编辑了此帖,存在于value 和 placeholder 是否有值造成的渲染差异,详细在代码片段中查看

麻烦官方看下,查下是否是渲染的BUG

@官方@官方@官方

4 回复

@官方麻烦来看看

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;

}

试一下

回到顶部