判斷元素是否隱藏

if( document.getElementById("div").css("display")==='none')

if( document.getElementById("div").css("display")==='block')

$("#div").is(":hidden"); // 判斷是否隱藏

$("#div").is(":visible")css

相關文章
相關標籤/搜索