$(window).resize(function(){
heightCorrection(window);
});
function heightCorrection(doc){
var documentHeight = $(doc).height();
$(".chat-window").css("height",(documentHeight-120)+"px");//聊天窗口从新赋值高度
}
监听网页缩放情况给元素重新赋值
最新推荐文章于 2024-08-08 17:11:49 发布