返回列表 發帖

[Jquery Block]請問這段語法在ie7會有問題 該如何解決?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/jquery.blockUI.js"></script>

<script>
$(document).ready(function(){
                   
$("#test").click(function(){
        $("#bbb").parent().block({ message: null });
});                                                   
                                                   
});
</script>
</head>

<body>
<input type="button" name="test" id="test" value="按鈕" />
<div id="aaa"><img src="3.jpg" name="bbb" id="bbb" /></div>
</body>
</html>
點了按鈕之後 div id為aaa的會block起來
可是在ie7會連同整個頁面變黑
其他瀏覽器 firefox opera chorme正常

我印象中搭配 jquery 1.2.6 好像沒有這個問題,可以試試看。
To infinity and beyond!

TOP

我把jquery.blockUI.js換成舊版的就好了
真怪

TOP

返回列表 回復 發帖