div不出现横向滚轮

2020-08-19  本文已影响0人  陈大事_code

给div中的子元素设置display:inline-block

若存在文字换行的情况,加设置white-space: nowrap

上一篇 下一篇

猜你喜欢

热点阅读