我在网站上遇到了很多问题。
蓝色的 div 容器有问题。内容来自下<li>
正在涌入当前 <li>
.
我该如何阻止它?
区域的 CSS:
#strip {
background:#039;
border-bottom: 1px solid #ccc;
}
#strip ul {
margin-left: auto;
margin-right: auto;
width: 100%;
}
#strip li {
list-style: none;
margin-bottom: 0;
height: 247px;
overflow:hidden;
}
最佳答案
转到#strip li 然后使宽度与您的 div 的(#strip)宽度相同。
关于html - Div内容溢出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1930609/