使用弹性布局 flex
父div加属性
style=" width: 100%; height: 470px; display: flex; justify-content: center; align-items: center;"
子div
style=" height: 100%; width: 870px;"
展示
使用弹性布局 flex
父div加属性
style=" width: 100%; height: 470px; display: flex; justify-content: center; align-items: center;"
子div
style=" height: 100%; width: 870px;"
展示