根據(jù)老師的課程寫的教程,大家可以配合著看,提供源碼:https://gitee.com/zhanghuanbiao/LearnFree/tree/master/handlebars
$('#pag').on('click','.clickable',function(){
$this = $(this);
refreshClasses($(this).data('id'))
})
要求jq 1.7+版本
$this = $(this);
refreshClasses($(this).data('id'))
})
要求jq 1.7+版本
2018-03-22
.overlap中的透明要通過rgba設(shè)置才能使得筆記本顯示出來不是透明的
.overlap{
position: fixed;
left:0;
top: 0;
width:100%;
height: 100%;
/* background-color: black;
opacity: 0.5;*/
background-color: rgba(0,0,0,0.5);
/*display: none;*/
}
.overlap{
position: fixed;
left:0;
top: 0;
width:100%;
height: 100%;
/* background-color: black;
opacity: 0.5;*/
background-color: rgba(0,0,0,0.5);
/*display: none;*/
}
2018-01-23
用法有點(diǎn)復(fù)雜,理解著學(xué)習(xí)稍微麻煩點(diǎn),建議更換別的模板引擎
2017-12-23