gpt4 book ai didi

javascript - jQuery.slideUp 的问题

转载 作者:行者123 更新时间:2023-11-30 23:42:31 25 4
gpt4 key购买 nike

我在使用 Jquery 时遇到问题,它可以工作,但完成后似乎会闪烁:

示例如下:

http://www.zombiewrath.com/maintest.php

为什么要这样做?

这是代码:

<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
</head>
<body>
<input type="button" onclick="test()">

<div id="tablemin">
<table bordercolor="#0000FF" width="670" border="1">
<tr>
<td class="style5" width="400" valign="top" style="width: 300px"><b><u>Personal Feed: </u></b><br>
</td>
<td class="style5" width="355" valign="top"><u><strong>Live Feed:</strong> </u><br>
<div id="ReloadTime3" style="width: 350px">
</div></td>
</tr>
<tr>
<td class="style5" valign="top" colspan="3" style="width: 488px"><b><u>Local news for Zone B-4...</u></b></td></tr>
</table>
<p>&nbsp;</p>
</div>
<script type="text/javascript">
$(document.body).click(function () {
$('#tablemin').slideUp('slow');
});
</script>
</body></html>

*注意,我使用的是 IE 7,如果它在幻灯片末尾没有闪烁,请说:) -并发布哪个浏览器...

为什么在 IE 7 下会闪烁 =/

谢谢。

最佳答案

有趣,最近也遇到了同样的问题。 IE6 中也会出现这种情况,其他浏览器都能正确处理。

这不是一个真正的解决方案,但您可能可以使用 animate 代替吗?

$('#tablemin').animate({height: '0px'},1000);

确保 tablemin 上有溢出:隐藏。

关于javascript - jQuery.slideUp 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4156104/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com