焦点图网页代码下载 体育赛事网站幻灯片代码

聚享 2019-11-19 409 阅读

特效描述:利用JS实现体育赛事网站幻灯片代码,利用JS实现体育赛事网站幻灯片代码

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/swiper.min.css">

<link rel="stylesheet" href="css/style.css">

2. 引入JS

<script src="js/swiper.min.js"></script>

<script src="js/script.js"></script>

3. HTML代码

<div class="banner">
<h2>游戏特色</h2>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img data-src="images/f1_bg.png" class="swiper-lazy" alt="">
<img data-src="images/f1_ren.png" class="swiper-lazy ren" alt="">
</div>
<div class="swiper-slide">
<img data-src="images/f2_bg.png" class="swiper-lazy" alt="">
<img data-src="images/f2_ren.png" class="swiper-lazy ren" alt="">
</div>
<div class="swiper-slide">
<img data-src="images/f3_bg.png" class="swiper-lazy" alt="">
<img data-src="images/f3_ren.png" class="swiper-lazy ren" alt="">
</div>
<div class="swiper-slide">
<img data-src="images/f4_bg.png" class="swiper-lazy" alt="">
<img data-src="images/f4_ren.png" class="swiper-lazy ren" alt="">
</div>
<div class="swiper-slide">
<img data-src="images/f5_bg.png" class="swiper-lazy" alt="">
<img data-src="images/f5_ren.png" class="swiper-lazy ren" alt="">
</div>
</div>
<div class="swiper-pagination"></div>
<span class="swiper-button-next"></span>
<span class="swiper-button-pv"></span>
</div>
</div>
<div style="text-align:center;margin:-50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>

演示地址下载地址

最新游戏