今天做项目时发现,在手机端用placeholder时,Android手机可以垂直显示;ISO则不能使placeholder垂直;解决办法:
.gcddfadf-con-pay-1 input::-webkit-input-placeholder{
font-size:0.3rem;
line-height: 1.0rem;
}
.gcddfadf-con-pay-1 input:-ms-input-placeholder{
font-size:0.3rem;
line-height: 1.0rem;
}
.gcddfadf-con-pay-1 input:-moz-placeholder{
font-size:0.3rem;
line-height: 1.0rem;
}
.gcddfadf-con-pay-1 input::-moz-placeholder{
font-size:0.3rem;
line-height: 1.0rem
}
就可以垂直显示了~