jQuery判断元素是否隐藏的方法
来源:动视网
责编:小采
时间:2020-11-27 20:32:15
jQuery判断元素是否隐藏的方法
jQuery判断元素是否隐藏的方法: jQuery 判断元素是否隐藏的方法 #thediv{ width:100px; height:100px; display:none; } $(document).ready(function(){ if($(#thediv).is(:visible)==false){ $(#show).text(处于隐藏状态)
导读jQuery判断元素是否隐藏的方法: jQuery 判断元素是否隐藏的方法 #thediv{ width:100px; height:100px; display:none; } $(document).ready(function(){ if($(#thediv).is(:visible)==false){ $(#show).text(处于隐藏状态)

jQuery 判断元素是否隐藏的方法
script>
在线运行
jQuery判断元素是否隐藏的方法
jQuery判断元素是否隐藏的方法: jQuery 判断元素是否隐藏的方法 #thediv{ width:100px; height:100px; display:none; } $(document).ready(function(){ if($(#thediv).is(:visible)==false){ $(#show).text(处于隐藏状态)