<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<title>热门功能</title>
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
<script>
|
window.onresize = function() {
|
document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
|
};
|
window.onresize();
|
</script>
|
<style>
|
body {
|
margin: 0;
|
padding: 0;
|
background: #FFFFFF;
|
font-family: 微软雅黑;
|
}
|
|
.title {
|
color: #333333;
|
font-size: 0.34rem;
|
text-align: left;
|
font-weight: bold;
|
}
|
|
.content>img {
|
width: 100%;
|
height: 4rem;
|
border-radius: 0.2rem;
|
margin-top: 0.3rem;
|
}
|
|
.item {
|
margin-bottom: 0.2rem;
|
}
|
</style>
|
</head>
|
<body>
|
<div style="margin:0.5rem 0.2rem">
|
<div class="item">
|
<div class="title">
|
1、智能搜索优惠券
|
</div>
|
<div class="content">
|
<img src="img/search.png" data-src="http://img.flqapp.com/resource/hot_function/search.gif" />
|
</div>
|
</div>
|
|
<div class="item">
|
<div class="title">
|
2、自购立减
|
</div>
|
<div class="content">
|
<img src="img/buy.png" data-src="http://img.flqapp.com/resource/hot_function/buy.gif" />
|
</div>
|
</div>
|
<div class="item">
|
<div class="title">
|
3、免单
|
</div>
|
<div class="content">
|
<img src="img/miandan.png" data-src="http://img.flqapp.com/resource/hot_function/miandan.gif" />
|
</div>
|
</div>
|
|
<div class="item">
|
<div class="title">
|
4、返利奖励券
|
</div>
|
<div class="content">
|
<img src="img/quan.png" data-src="http://img.flqapp.com/resource/hot_function/quan.gif" />
|
</div>
|
</div>
|
</div>
|
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
|
</body>
|
|
|
<script>
|
$(".item").click(function() {
|
$(this).find("img").eq(0).attr("src",$(this).find("img").eq(0).attr("data-src"));
|
});
|
</script>
|
</html>
|