<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我想我遗漏了一些明显的东西。在我的 slider 下,我有 3 个框,每个框包含 3 个元素。
文本和 jpg 应该在同一行,视频直接排在下面。
所有 3 个框应在列中水平均匀分布。
这是我当前的输出:
http://test.completesources.com/fitnesspro/
这是我的代码:
http://jsbin.com/qucewa/edit?html,css,output
我只是在学习 webdev 并尝试复制一个站点作为练习。我想如果我能让这些盒子正常工作,我就会拥有网站的其余部分。
谢谢!
最佳答案
尝试添加css
.box {
background: blue;
margin: 5px;
/* width: 15%; */
display: inline-block;
overflow: hidden;
}
关于html - 在列内水平对齐 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31298679/