我的<footer>
中有一堆<footer>
元素。现在,当标签超过<footer>
的宽度时,标签就会被包装。
如何使标签在页脚内水平滚动?
这是一个标签包装的JSFiddle。http://jsfiddle.net/DTcHh/5088/
发布于 2015-03-04 13:37:11
很简单:
footer {
background: black;
padding: 10px;
overflow-x: auto; /* scrollbar only when needed */
}
footer .btn-group {
font-size: 0; /* eliminates the white space gap between non-floated .btn s */
white-space: nowrap; /* prevents child inline .btn s from wrapping to the next line */
}
footer .btn-group .btn {
float: none;
}
发布于 2015-03-04 13:38:11
https://stackoverflow.com/questions/28865283
复制相似问题