-
-
Save xiyuesaves/179e32653931e9585b0df70853384d62 to your computer and use it in GitHub Desktop.
横向滚动
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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