如在IE裏面不改變父級position: relative;需動態計算

 


 
/*$(".infobox_infoshow").mouseover(function(e){css

 var tagert = $(this);ide

 var tagertInfo=tagert.find(".infobox_info");this

 var Yleft =tagertInfo.parent().position().left-tagertInfo.width()-30;spa

 var Xtop = $(this).parent().position().top;seo

 tagertInfo.css("top",Xtop);ci

 tagertInfo.css("left",Yleft);it

 tagert.parent().parent().parent().siblings("tr").find("td").find(".infobox_info").hide();io

 tagertInfo.show();table

}).mouseout(function(e) {function

                    var tagert = $(this);

                    tagert.find(".infobox_info").hide();

                });*/


在IE 裏面動態提示框,改變父級標籤的定位屬性,則能夠直接使用



$(".infobox_infoshow").mouseover(function(e){

 var tagert = $(this);

 tagert.find(".infobox_info").show();

 tagert.parent().parent().parent().siblings("tr").find("td").find(".infobox_info").hide();

}).mouseout(function(e) {

                    var tagert = $(this);

                    tagert.find(".infobox_info").hide();

               });
相關文章
相關標籤/搜索