hml滚动图片怎么做(hml图片左右滚动代码)
生活常识 2023-04-30 10:07生活常识www.baidianfengw.cn
{
margin: 0;
padding: 0;
}
.box{
width: 600px;
height: 200px;
background-color: pink;
margin: 100px auto;
overflow: hidden;
border: 3px solid red;
position: relative;
}
.box ul{
width: 400%;
height: 200px;
position: absolute;
top: 0;
left: 0;
}
.box ul li{
list-style: none;
float: left;
}
.box ul li img{
vertical-align: middle;
}