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.
<div id="scroll" style="margin-left:auto;margin-right:auto;width:10000px;">
上面的 div 将在用户交互时水平滚动。我如何隐藏溢出,因为我只希望用户一次看到 800px。这可能吗?如果是这样的话。对不起,如果我不清楚
<div class="Wrapper"> <div class="Content"> </div> </div> .Wrapper { width: 800px; overflow-x: scroll; /* or : overflow-x: auto; */ overflow-y: hidden; } .Content { width: 10000px; }