当前位置: 首页 > 工具软件 > XCSS > 使用案例 >

css如何设置x轴为滚动,css x轴滑动

郭辉
2023-12-01

css代码:

.list_box {

background: #fff;

width: 100%;

height: 80rpx;

border-bottom: 1px solid #f2f3f5;

}

.list_wrap {

height: 80rpx;

overflow-x: scroll;

overflow-y: hidden;

padding: 0 20rpx;

white-space: nowrap;

}

.list_ul {

font-size: 32rpx;

color: #666;

white-space: nowrap;

}

.list_ul .list_li {

box-sizing: border-box;

display: inline-block;

}

.list_ul .list_li:after {

content: '|';

color: '#999' !important;

margin-left: 8rpx;

margin-right: 8rpx;

height: 60rpx;

display: inline-block;

}

html代码:

推荐

推荐1

推荐2

推荐3

推荐4

推荐5

 类似资料: