<meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0">
    <style type="text/css">
        body{background-color:white;}
        li{list-style: none;}
        .toubu{height:40px;
              line-height:40px;
              background-color:white;
              position:fixed;top:0;left:0px;width:100%;
            
                }
        .toubu img{vertical-align:middle}
        .one{width:70px;
             height:50px;
             margin-right:50%;}
        .two,.three{height:24px;
                    width:24px;
                    margin-left:30px;}
    
        .fenleison{overflow: hidden;
                    margin-bottom: -20px;}
        .fenleison li{float: left;
                      width: 25%;
                      text-align: center;}
        .fenleison,.list{color: #7e8c8d;
                         margin-top: 0px;
                         margin-right: 10%;}
        .yuan{
               width:50px;
               height: 50px;
               border-radius: 50%;
               background-color: aqua;
               color: #fff;
               margin: 10px;
               font-size: 15px;
               line-height: 50px;
               text-align: center;
               display: inline-block;
               margin-bottom: -10px;
               }
        .bigclass{background:#fff;
                  width:100%;
                  margin:10px 0;
                  padding:0 5%;
                  box-sizing: border-box;
                  margin-right: 40px;}
        .fire{height: 50px;
              line-height: 50px;}
        .fire img{width:25px;
                  height: 25px;
                  vertical-align: text-bottom;}
        .classlist{overflow: hidden;}
        
        .classlist li{float: left;
                      width:48%;
                      margin-bottom: 30px;
                      }
        .classlisttp{
                     width:100%;
                     height: 120px;
                     }
        .classlisttp img{width: 100%;
                        height: 100%;
                        border-radius: 15%;
                        }
        .classtitele{font-size: 13px;
                     color: black;
                     margin-top: 0px;}
        .levelprice{overflow: hidden;
                    margin-top: -20px;
                    margin-bottom: -30px;}
        .level{float:left;
               font-size: 13px;}
        .price{float: right;
               font-size: 13px;
               color: red;}
        .classlist li:nth-of-type(odd){margin-right: 4%;margin-top: 0px;}
        .daohangson{overflow: hidden;
                    margin-top: 30px;}
        .daohangson li{float: left;
                      width: 25%;
                      text-align: center;}
        .daohangson,.list{color: #7e8c8d;
                          margin-top: 0px;
                          margin-right: 10%;}
        
        *{margin:0;padding: 0;}
        #lunbo
        {
            position: relative;
            margin: 100px auto;
            width: 500px;
            height: 150px;
            overflow: hidden;
            margin-bottom: 0px;
            margin-top: 0px;
        }
        #lunbo ul
        {
            position: absolute;
            left: 0;
            height: 150px;
        }
        #lunbo li
        {
            float: left;
            width: 200px;
            height: 150px;
            list-style: none;
        }
        #lunbo li img
        {
            width: 200px;
            height: 150px;
        }
    </style>
</head>
<body>

1.jpg

2.jpg

3.jpg

4.jpg

6.jpg

123.jpg

456.jpg

1289.jpg

th.jpg

演示:121.mov

QQ图片20231201203520.png

            <div class="toubu">
        <img class="one" src="1.jpg">
        <img class="two" src="2.jpg">
        <img class="three" src="3.jpg">
        <div id="lunbo">
            <ul>
                <li><img src="4.jpg"></li>
                <li><img src="6.jpg"></li>
                <li><img src="th.jpg"></li>
                <li><img src="123.jpg"></li>
                <li><img src="456.jpg"></li>
                <li><img src="1289.jpg"></li>
            </ul>
            <script>
                window.onload=function()
                {
                    //获取到的div,定时器,ul,li
                    var oDiv=document.getElementById('lunbo')
                    var oUl=document.getElementsByTagName('ul')[0]
                    var oLi=document.getElementsByTagName('li')
                    var timer=null
                    //我们图片是轮播,就需要循环,2个ul拼到一起的长度
                    oUl.innerHTML=oUl.innerHTML+oUl.innerHTML
                    //获取到ul的宽度,宽度等于li的宽度x我们所有li标签
                    oUl.style.width=oLi[0].offsetWidth*oLi.length+'px'
                    //定时器的设置
                    timer=setInterval
                    (
                        function()
                    {
                        //判断2个ul的长度,如果到了一半就left自动归零
                        if(oUl.offsetLeft<-oUl.offsetWidth/2)
                        {oUl.style.left='0'}
                        //定时器改变的是ul的left值,每次ul的left都减2px
                        oUl.style.left=oUl.offsetLeft-2+'px'
                    },30
                    )
                    //oUl.innerHTML=oUl.innerHTML+oUl.innerHTML
                    //oUl.innerHTML+=oUl.innerHTML
                    //鼠标移入,停止
                    oDiv.onmouseover=function()
                    {
                        clearInterval(timer)
                    }
                    //鼠标移出的时候,继续动
                    oDiv.onmouseout=function()
                    {
                        timer=setInterval
                    (
                        function()
                    {
                        //判断2个ul的长度,如果到了一半就left自动归零
                        if(oUl.offsetLeft<-oUl.offsetWidth/2)
                        {oUl.style.left='0'}
                        //定时器改变的是ul的left值,每次ul的left都减2px
                        oUl.style.left=oUl.offsetLeft-2+'px'
                    },30
                    )
                    }
                }
            </script>
        
        </div>
        <div class="fenlei">
            <ul class="fenleison">
                <li>
                    <div class="yuan">风</div>
                    <p class="list">自然山河</p>
                </li>
                <li>
                    <div class="yuan">景</div>
                    <p class="list">美丽湖泊</p>
                </li>
                <li>
                    <div class="yuan">图</div>
                    <p class="list">黄昏雪山</p>
                </li>
                <li>
                    <div class="yuan">画</div>
                    <p class="list">宁静高山</p>
                </li>
            </ul>
        </div>
<div class="bigclass">
    <div class="fire">
        <img src="6.jpg">
        热门推荐
    </div>
    <ul class="classlist">
        <li>
            <div class="classlisttp">
                <img src="1.jpg">
            </div>
            <p class="classtitele">风水图</p>
            <div class="levelprice">
                <p class="level">类型:自然山野</p>
                <p class="price">价格:¥1000</p>
            </div>
        </li>
        <li>
            <div class="classlisttp">
                <img src="2.jpg">
            </div>
            <p class="classtitele">风水图</p>
            <div class="levelprice">
                <p class="level">类型:优美湖泊</p>
                <p class="price">价格:¥2000</p>
            </div>
        </li>
        <li>
            <div class="classlisttp">
                <img src="3.jpg">
            </div>
            <p class="classtitele">风水图</p>
            <div class="levelprice">
                <p class="level">类型:黄昏雪山</p>
                <p class="price">价格:¥3000</p>
            </div>
        </li>
        <li>
            <div class="classlisttp">
                <img src="4.jpg">
            </div>
            <p class="classtitele">风水图</p>
            <div class="levelprice">
                <p class="level">类型:挺立高山</p>
                <p class="price">价格:¥4000</p>
            </div>
        </li>
    </ul>
</div>
<div class="daohang">
    <ul class="daohangson">
        <li>
            <div class="yuan">首页</div>
            <p class="list">主页</p>
        </li>
        <li>
            <div class="yuan">分类</div>
            <p class="list">类型</p>
        </li>
        <li>
            <div class="yuan">结算</div>
            <p class="list">购物车</p>
        </li>
        <li>
            <div class="yuan">我的</div>
            <p class="list">我的</p>
        </li>
    </ul>
</div>