🎉
不定期分享源码,关注不丢失哦
文章目录
一、作品介绍
🏷️本套采用HTML+CSS,使用Javacsript代码实现首页图片切换轮播效果,共有1个页面
。
二、作品演示
三、代码目录
四、网站代码
HTML部分代码
c
<div class="header">
<div class="w">
<a href="" class="logo">
<img src="./images/logo.png" alt="">
</a>
<ul class="nav">
<li><a href="">华为专区</a></li>
<li><a href="">鸿蒙智联</a></li>
<li><a href="">智能家居</a></li>
<li><a href="">运动健康</a></li>
<li><a href="">影音娱乐</a></li>
<li><a href="">智慧出行</a></li>
<li><a href="">教育商店</a></li>
</ul>
<div class="icons">
<a href="">
<img src="./images/search.png" alt="" class="icon1 s">
<img src="./images/search2.png" alt="" class="icon2 s">
</a>
<a href="">
<img src="./images/cart.png" alt="" class="icon1 c">
<img src="./images/cart2.png" alt="" class="icon2 c">
</a>
<a href="">
<img src="./images/list.png" alt="" class="icon1 l">
<img src="./images/list2.png" alt="" class="icon2 l">
</a>
</div>
</div>
</div>
<div class="banner">
<img id="banner_img1" class="banner_img active" src="images/1.webp" alt="">
<img id="banner_img2" class="banner_img" src="images/2.webp" alt="">
<img id="banner_img3" class="banner_img" src="images/3.webp" alt="">
<div class="dots">
<div id="dot1" class="dot active" onmousemove="changeBanner(1)"></div>
<div id="dot2" class="dot" onmousemove="changeBanner(2)"></div>
<div id="dot3" class="dot" onmousemove="changeBanner(3)"></div>
</div>
</div>
<div class="cats">
<div class="w">
<a href="">
<img src="./images/i1.png" alt="">
<div>手机</div>
</a>
<a href="">
<img src="./images/i2.png" alt="">
<div>笔记本</div>
</a>
<a href="">
<img src="./images/i3.png" alt="">
<div>平板</div>
</a>
<a href="">
<img src="./images/i4.png" alt="">
<div>台显</div>
</a>
<a href="">
<img src="./images/i5.png" alt="">
<div>手写笔</div>
</a>
<a href="">
<img src="./images/i6.png" alt="">
<div>办公周边</div>
</a>
<a href="">
<img src="./images/i7.png" alt="">
<div>打印机</div>
</a>
<a href="">
<img src="./images/i8.png" alt="">
<div>储存神器</div>
</a>
</div>
</div>
五、源码获取
🥇 ~ 关注我,点赞博文~
每天带你涨知识!
🎁1.看到这里了就[点赞+好评+收藏]
三连 支持下吧,你的「点赞,好评,收藏」是我创作的动力。
💙2.想要获取本文源码,点击前往吧