for (i=0 ;i<clear_ctrl.length;i++){
clear_main[i].className = clear_main[i].className.replace(' main-i_active','');
clear_ctrl[i].className = clear_ctrl[i].className.replace(' ctrl-i_active','');
}这块儿代码不起作用啊
clear_main[i].className = clear_main[i].className.replace(' main-i_active','');
clear_ctrl[i].className = clear_ctrl[i].className.replace(' ctrl-i_active','');
}这块儿代码不起作用啊
2016-12-14
.slider .main .main-i img{
width: 100%;
position: absolute;
top: 0;
left: 0;
bottom:0;
right:0;
margin:auto;
}
教大家一种水平垂直剧中的办法,但是他的父级一定要设置成relative哦
width: 100%;
position: absolute;
top: 0;
left: 0;
bottom:0;
right:0;
margin:auto;
}
教大家一种水平垂直剧中的办法,但是他的父级一定要设置成relative哦
2016-11-19