css .father{ overflow:hidden; white-space:nowrap; height: 100upx; } .son{ overflow-x: auto; } //去除滚动条并依然可滑动 .son::-webkit-scrollbar { display:none } html <div class="father"> <div class="son"></div> </div>