87,901
社区成员
发帖
与我相关
我的任务
分享
<div id=box>
<div style='border:1 solid #666'>1</div>
<div style='border:1 solid #666'>2</div>
<div style='border:1 solid #666'>3</div>
</div>
<input type=button id=bt value=test>
<script>
$(function() {
$('#bt').click(function() {
$('#box').hide(2000, function() {
$(this).find('div').each(function(){
alert($(this).css('display'));
});
});
});
});
</script>
实验表明容器内的div并未因容器的隐藏而具有隐藏样式