nowrap: 文本不會(huì)換行,文本會(huì)在在同一行上繼續(xù)扣典,直到遇到
標(biāo)簽為止妆毕。
實(shí)現(xiàn):
<div style="width: 600px; height: 100px;white-space: nowrap; overflow: auto;font-size: 0;">
<div style="width: 200px; height: 80px;background: #999;display:inline-block;margin-right: 10px;"></div>
<div style="width: 200px; height: 80px;background: #999;display:inline-block;margin-right: 10px;"></div>
<div style="width: 200px; height: 80px;background: #999;display:inline-block;margin-right: 10px;"></div>
<div style="width: 200px; height: 80px;background: #999;display:inline-block;margin-right: 10px;"></div>
</div>