css - Android browser top and bottom centering problem
PHPz
PHPz 2017-05-24 11:36:45
0
1
1402

Writing a btn, in the WeChat Android version browser, the top and bottom centering will fail. The padding-top and padding-bottom set are obviously the same, and the line-height is used to make the text upward. How do everyone deal with this situation? What about the one that goes up and down?

PHPz
PHPz

学习是最好的投资!

reply all(1)
phpcn_u1582

During IOS and Android real-machine testing, the content displayed in INPUT will be a little higher if line-height is used to set it. I remember seeing that IOS has 1PX more content than Android, or something. You can try to adjust the padding-top to align it when displayed, but it will look uneven on the PC, and it will be centered on the mobile phone.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!