1

当标签的值发生变化时,我正在使用 jquery.color.js 库中的 .animate 函数来突出显示 ASP.Net 页面上的标签。它在 IE 7.0 中工作得很好,但在 IE 6.0 中,它在页面更改位置上创建了一个按钮控件。有谁知道如何解决这个问题?

这是导致问题的 jquery 代码片段,当运行 .animate 函数时,页面上的按钮会移动位置。

    ParentItem.text("$" + itemCost);

    ParentItem.stop(true);
    ParentItem.animate({ backgroundColor: "#FFFF80"
    }, 300)
         .animate({ backgroundColor: 'white' }, 1250);
4

3 回答 3

0

这可能是因为 IE6 的双倍边距错误。

有关更多信息,请参见http://www.positioniseverything.net/explorer/floatIndent.html

于 2009-06-09T21:05:45.963 回答
0

如果在 IE6 中不需要该功能,我只需检查它,然后从该功能返回。

    if ($.browser.msie && $.browser.version == "6.0") {
        return;
    }
于 2009-06-10T18:07:30.920 回答
-6

“有人知道如何解决这个问题吗?”

忽略 IE6 用户;-)

<!--[if IE 6]>
<script type="text/javascript"> 
    /*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\"text/javascript\"   src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></"+"script>"); var __noconflict = true; } 
    var IE6UPDATE_OPTIONS = {
        icons_path: "http://static.ie6update.com/hosted/ie6update/images/"
    }
</script>
<script type="text/javascript" src="http://static.ie6update.com/hosted/ie6update/ie6update.js"></script>
<![endif]-->
于 2009-06-09T21:02:42.193 回答