-3
$('.sn').css({'z-index':'-1000'});
(隱藏整個組)加載整個類,並從該類我想顯示或應用css $('#item1').css({'z-index':'1000'});
(只顯示一個來自組)從一個元素點擊動態但這不會發生幫助我嗎? 當我使用hide()& show()方法,它工作正常。動態添加和刪除zss索引的css
//on click ..
$(document).on('click','#slider1prev',function(){
selected = selected-1;
if(my_text != ""){
$('#noteImage'+selected).css({'z-index':'1000'});
$('#noteText'+selected).css({'z-index':'1000'});
}
});
// onload事件..
$('.sn').css({'z-index':'-1000'});
$('.notes').css({'z-index':'-1000'});
請你重新格式化你的問題? –
你真的需要看看你的代碼 –