修改缩放html页面时悬浮框位置显示不正确的BUG
This commit is contained in:
parent
804b23f0f6
commit
90f5cd2e60
|
@ -49,6 +49,7 @@
|
|||
}
|
||||
$("#floatpoint").css("top",YY);
|
||||
}
|
||||
//$("#floatpoint").css("left",screen_width/2+body_width/2+5);
|
||||
$(document).ready(function(){var body_width = $("#top-menu").width(); $("#floatpoint").css("left",screen_width/2+body_width/2+10);});
|
||||
function change_size(){var body_width = $("#top-menu").width(); $("#floatpoint").css("left",screen_width/2+body_width/2+10);}
|
||||
$(document).ready(function(){change_size();});
|
||||
$(window).resize(function(){screen_width = $(window).width();change_size();});
|
||||
</script>
|
Loading…
Reference in New Issue