Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,我正在寻找一个最佳解决方案来安排许多(动态生成的)div(都具有相同的宽度!)一个在另一个之下。到目前为止,我有 2 条建议:
li
我个人更喜欢建议#2。你怎么看?
div { display: block; }
这应该将所有 div 显示为块元素并占据整个宽度,因此以下 div 应该堆叠在下面。