Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的图像尺寸为 1680 x 602 像素。我正在使用 sliderJs 显示 2 个图像的滑块。jQuery 滑块有效。我的问题是我的页面在设置图像后显示水平滚动条。如何消除水平滚动条?
谢谢!
<div class="slidercontainer"> <div id="slides"> <img src="images/img1.png" alt=""/> <img src="images/img2.png" alt=""/> </div> </div>
根据滚动条出现的位置,您可以使用 css 隐藏它
.slidercontainer{overflow-x:hidden;}
或者
#slides{overflow-x:hidden;}