最新下载
Twitter Bootstrap表单验证
门户网站jQuery相册代码
24小时阅读排行榜
- 1 javascript函数如何定义_怎样传递参数和返回值【教程】
- 2 JavaScript怎样实现深拷贝【教程】
- 3 javascript中函数为什么如此重要【教程】
- 4 如何正确实现带记忆化的组合求和递归函数
- 5 c++中如何实现自定义容器的迭代器_c++迭代器模式代码实现【详解】
- 6 c++中如何判断一个字符串是否为有效的数字_c++字符串正则检查【详解】
- 7 Linux 用户 su - 切换后环境变量丢失或 PATH 变了的几种原因
- 8 如何让 Flexbox 布局自适应不同屏幕分辨率(含移动端适配)
- 9 asyncio 如何优雅取消一组相互关联的任务树
- 10 javascript如何实现动画效果【教程】
- 11 如何用javascript操作DOM_改变网页内容的方法有哪些【教程】
- 12 C多线程面试题_常见C语言多线程面试题汇总
- 13 javascript如何调试代码?_学习javascript调试工具与方法【教程】
- 14 Firestore 中实现文档内数组字段的分页查询:原理、限制与替代方案
- 15 JavaScript浮点数计算为何产生精度问题【教程】
最新教程
-
- Node.js 教程
- 15920 2025-08-28
-
- CSS3 教程
- 1546004 2025-08-27
-
- Rust 教程
- 23109 2025-08-27
-
- Vue 教程
- 25585 2025-08-22
-
- PostgreSQL 教程
- 22084 2025-08-21
-
- Git 教程
- 9089 2025-08-21
jQuery响应式聊天窗口界面特效是一款支持响应式布局,支持用户分组,聊天窗口支持图片上传和表情发布。
screenFuc();
function screenFuc() {
var topHeight = $(".chatBox-head").innerHeight();//聊天头部高度
//屏幕小于768px时候,布局change
var winWidth = $(window).innerWidth();
if (winWidth <= 768) {
var totalHeight = $(window).height(); //页面整体高度
$(".chatBox-info").css("height", totalHeight - topHeight);
var infoHeight = $(".chatBox-info").innerHeight();//聊天头部以下高度
//中间内容高度
$(".chatBox-content").css("height", infoHeight - 46);
$(".chatBox-content-demo").css("height", infoHeight - 46);
$(".chatBox-list").css("height", totalHeight - topHeight);
$(".chatBox-kuang").css("height", totalHeight - topHeight);
$(".div-textarea").css("width", winWidth - 106);
} else {
$(".chatBox-info").css("height", 495);
$(".chatBox-content").css("height", 448);
$(".chatBox-content-demo").css("height", 448);
$(".chatBox-list").css("height", 495);
$(".chatBox-kuang").css("height", 495);
$(".div-textarea").css("width", 260);
}
}
