水平居中:设置div的css样式为:
text-align: center;
垂直居中:设置div的css样式为:
display:flex;
justify-content:center;
align-items:center;
忘记从哪看到的了,大家将就用吧
水平居中:设置div的css样式为:
text-align: center;
垂直居中:设置div的css样式为:
display:flex;
justify-content:center;
align-items:center;
忘记从哪看到的了,大家将就用吧