淡入淡出在 IE8 中不起作用

发布于 2024-10-13 03:44:46 字数 289 浏览 9 评论 0原文

我正在使用淡入和淡出淡出渐变 png 来读取文本,它是 png-24 代码非常简单,但 IE8 不会淡入淡出,它只是弹出并弹出 $(文档).ready(函数() {

        $('#menu').hover(function() {
            $('#gradient').fadeIn('slow');
        }, function() {
            $('#gradient').fadeOut('fast');
        });
    });    

I am using fade in and fade out to fade a gradient png in order to read text, it is a png-24 the code is very simple yet IE8 wont fade, it just pops in and pops out
$(document).ready(function() {

        $('#menu').hover(function() {
            $('#gradient').fadeIn('slow');
        }, function() {
            $('#gradient').fadeOut('fast');
        });
    });    

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

dawn曙光 2024-10-20 03:44:46
<html>
<head>
<title>Test Page</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#menu').hover(function() {
        $('#gradient').fadeIn('slow');
     }, function() {
        $('#gradient').fadeOut('fast');
    });
}); 
</script>
</head>

<body>
<div id="menu" style="background:red; height:200; width:200px;">

 <input type="file" id="gradient" style="display:none" />

</div>

</body>
</html>

它的工作正常......

<html>
<head>
<title>Test Page</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#menu').hover(function() {
        $('#gradient').fadeIn('slow');
     }, function() {
        $('#gradient').fadeOut('fast');
    });
}); 
</script>
</head>

<body>
<div id="menu" style="background:red; height:200; width:200px;">

 <input type="file" id="gradient" style="display:none" />

</div>

</body>
</html>

its work fine........

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文