制作H5像一个div中一张长图,里边是一条一条信息,需要点击的响应式方法

<style>
.nav_box {
margin-top: 20vh
}

.section1 .directory {
margin-top: 4vh;
position: relative;
}

.section1 .directory a {
display: block;
height: 8%;
background: rgba(0, 0, 0, .2);
width: 100%;
position: absolute;
}
</style>
<section class="swiper-slide section1">
<div class="i-logo mrt3v ani" swiper-animate-effect="fadeIn" swiper-animate-duration="1s" swiper-animate-delay="0s">
<img src="data:images/i1-logo.png" />
</div>
<div class="nav_box ani" swiper-animate-effect="bounceInDown" swiper-animate-duration="1s" swiper-animate-delay="0s">
<img src="img/section1_title.png" />
</div>
<div class="directory ani" swiper-animate-effect="bounceInDown" swiper-animate-duration="1s" swiper-animate-delay="0s">
<img src="img/section1_directory.png" />

<a style="top: 5%;" href="#" class="a1"></a>
<a style="top: 14%;" href="#" class="a1"></a>
<a style="top:23%" href="#" class="a1"></a>
<a style="top:31%" href="#" class="a1"></a>
<a style="top: 40%;" href="#" class="a1"></a>
<a style="top: 49%;" href="#" class="a1"></a>
<a style="top: 58%;" href="#" class="a1"></a>
<a style="top: 67%;" href="#" class="a1"></a>
<a style="top: 76%;" href="#" class="a1"></a>
<a style="top: 85%;" href="#" class="a1"></a>

</div>
</section>
上一篇:C语言采用socket实现http post方式上传json数据


下一篇:angularjs——工具方法