安卓手机设置height = line-height,字体偏上;
.box{
display: table;
}
.content{
display: table-cell;
vertical-align: middle;
}
元素最好不要有float等其他影响的css
.box{
display: table;
}
.content{
display: table-cell;
vertical-align: middle;
}
元素最好不要有float等其他影响的css
本文标题:H5-安卓手机上如何居中
本文链接:https://www.haomeiwen.com/subject/hvksxqtx.html
网友评论