最贊回答 / 學(xué)好底層
main.className?+=?' main-i_active';????ctrl.className?+=?' ctrl-i_active';記得"main-i_active"前面加一個(gè)空格 這樣添加類的時(shí)候才不會(huì)和之前的類"main-i"連在已簽約
2017-07-26
倒影代碼貼出,可用
.ctrl-i img{
width: 100%;
position: absolute;
left: 0;
bottom: 30px;
z-index: 1;
-webkit-box-reflect:below 0 -webkit-linear-gradient(
transparent,
transparent 50%,
rgba(255,255,255,.3));
}
.ctrl-i img{
width: 100%;
position: absolute;
left: 0;
bottom: 30px;
z-index: 1;
-webkit-box-reflect:below 0 -webkit-linear-gradient(
transparent,
transparent 50%,
rgba(255,255,255,.3));
}
2017-07-17
@炸毛噠天才小阿君 你的代碼文字出不來效果是因?yàn)檎齽t同時(shí)會(huì)匹配<h2>和<h3>標(biāo)簽,標(biāo)簽變成了data的中對(duì)應(yīng)的value值,設(shè)置的css就不起作用了
2017-07-10
視頻中g(shù)('.main-i')我編寫時(shí)拿不到dom元素,改成document.getElementsByClassName('main-i')可以拿到,可能執(zhí)行g(shù)函數(shù)時(shí)dom還沒加載完
2017-06-28