修改缩放html页面时悬浮框位置显示不正确的BUG

This commit is contained in:
sw 2014-11-18 10:39:50 +08:00
parent 804b23f0f6
commit 90f5cd2e60
1 changed files with 3 additions and 2 deletions

View File

@ -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>