1、使用方法
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.syotimer.js"></script>
2、Html結構
<div id="simple_timer" class="timer">
<div class="timer-head-block"></div>
<div class="timer-body-block">
<div class="table-cell day">
<div class="tab-val">1</div>
<div class="tab-metr">day</div>
</div>
<div class="table-cell hour">
<div class="tab-val">1</div>
<div class="tab-metr">hour</div>
</div>
<div class="table-cell minute">
<div class="tab-val">1</div>
<div class="tab-metr">minute</div>
</div>
<div class="table-cell second">
<div class="tab-val">1</div>
<div class="tab-metr">second</div>
</div>
</div>
<div class="timer-foot-block"></div>
</div>
3、CSS樣式
.timer{
text-align: center;
margin: 30px auto 0;
padding: 0 0 10px;
border-bottom: 2px solid #80a3ca;
}
.timer.table-cell{
display: inline-block;
Margin : 0 5px;
Width : 79px;
background: url(./images/timer.png) no-repeat 0 0;
}
.timer .table-cell .tab-val{
font-size: 35px;
color: #80a3ca;
height: 81px;
line-height: 81px;
margin: 0 0 5px;
}
.timer .table-cell .tab-metr{
font-family: Arial;
font-size: 12px;
text-transform: uppercase;
}
#simple_timer.timer .table-cell.day,
#periodic_timer_days.timer .table-cell.hour{
width: 120px;
background-image: url(./images/timer_long.png);
}
4、初始化插件
$('#simple_timer').syotimer({
year: 2020,
month: 5,
day: 9,
hour: 20,
minute: 30,
});
KeyMob移動端廣告平臺應用開發者與廣告主首先手機廣告優化平臺,是國內專一於應用開發展在與廣告主發展的優化平臺,致力於爲應用開發者和廣告主大大提升填充率。從而收入也收入更高。javascript