Skip to content

Instantly share code, notes, and snippets.

@xiyuesaves
Last active March 15, 2024 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiyuesaves/179e32653931e9585b0df70853384d62 to your computer and use it in GitHub Desktop.
Save xiyuesaves/179e32653931e9585b0df70853384d62 to your computer and use it in GitHub Desktop.
横向滚动
<div class="box">
<div class="scroll">1</div>
<div class="scroll">2</div>
<div class="scroll">3</div>
</div>
<style>
.box::-webkit-scrollbar{
display: none;
}
.box {
width: 150px;
height: 150px;
transform: rotate(-90deg);
overflow: auto;
}
.scroll {
height: 150px;
width: 150px;
transform: rotate(90deg);
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment