<ul style="width: 100%;height: 15rem;display: block;overflow: scroll;white-space:nowrap;">
<li style="display: inline-block;width: 10rem;height: 100%;list-style: none;">1</li>
<li style="display: inline-block;width: 10rem;height: 100%;list-style: none;">2</li>
<li style="display: inline-block;width: 10rem;height: 100%;list-style: none;">3</li>
<li style="display: inline-block;width: 10rem;height: 100%;list-style: none;">4</li>
<li style="display: inline-block;width: 10rem;height: 100%;list-style: none;">2</li>
<li style="display: inline-block;width: 10rem;height: 100%;list-style: none;">3</li>
<li style="display: inline-block;width: 10rem;height: 100%;list-style: none;">4</li>
</ul>
ul横排滚动
最新推荐文章于 2023-07-27 15:08:21 发布