H5-安卓手机上如何居中
2018-11-05 本文已影响4人
墨_梵
安卓手机设置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