第一个方 block 向右移动,但它必须像其他方 block 一样位于中间。例如,您可以在我的 fiddle 中找到。
.tiles {
display: flex;
flex-wrap: wrap ;
justify-content: space-between;
}
.tile1 {
flex: 0 1 80%;
height: 20vh;
background: #fff;
position: relative;
background: url("../images/h2.jpg");
background-size: cover;
}
最佳答案
最好尝试居中而不是空格
justify-content: center;
关于html - 无法在移动 View 上设置第一个 flex tile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47519215/