pading和margin都不能使用吗,只能用flex相关的吗 .box { display: flex; flex-direction: column; align-items: center; justify-content: center; } .box > div { margin: 10px; padding: 20px; border: 1px solid #000; } .box > div:last-child { margin-top: auto; margin-left: auto; }
点赞 1

相关推荐

牛客网
牛客企业服务