div高度全屏
来源:互联网 发布:沉默的螺旋 案例 知乎 编辑:程序博客网 时间:2024/05/22 12:19
function fullScreen(){
total = document.documentElement.clientHeight;
colHeight = total-document.getElementById("pageRight").offsetTop;
document.getElementById("pageLeft").style.height=colHeight+"px";
document.getElementById("pageRight").style.height=colHeight+"px";
document.getElementById("pageFooter").style.height=colHeight+"px";
document.getElementById("icon").style.height=colHeight+"px";
document.getElementById("icon").style.paddingTop=colHeight/2+"px";
document.getElementById("icon2").style.height=colHeight+"px";
document.getElementById("icon2").style.paddingTop=colHeight/2+"px";
}
total = document.documentElement.clientHeight;
colHeight = total-document.getElementById("pageRight").offsetTop;
document.getElementById("pageLeft").style.height=colHeight+"px";
document.getElementById("pageRight").style.height=colHeight+"px";
document.getElementById("pageFooter").style.height=colHeight+"px";
document.getElementById("icon").style.height=colHeight+"px";
document.getElementById("icon").style.paddingTop=colHeight/2+"px";
document.getElementById("icon2").style.height=colHeight+"px";
document.getElementById("icon2").style.paddingTop=colHeight/2+"px";
}
0 0
- div高度全屏
- 如何div高度占满全屏(自适应)
- JQuery全屏遮罩层DIV
- div 全屏自适应 布局
- div+css全屏
- JQuery全屏遮罩层DIV
- 让div全屏
- div 全屏居中
- DIV 全屏方式
- 子div没撑起父div高度
- div 列高度一样
- DIV自适应高度
- DIV自适应高度解决办法
- div 自适应高度
- div自动高度
- 高度自适应div
- div自动分配高度
- div的高度问题
- 关系型数据库与NOSQL
- PAT BASIC LEVEL 1052. 卖个萌 (20)
- 安卓自定义View进阶 - Path之完结篇(伪)
- Plugin with id 'com.neenbedankt.android-apt' not found.
- 453. Minimum Moves to Equal Array Elements | 计算步数
- div高度全屏
- Sqoop学习笔记 --- sqoop使用时候常见错误
- Heavy Transportation(最大生成树)
- 拼接字符串到url跳转页面后解析
- 4 Values whose Sum is 0 POJ - 2785(折半枚举)题解
- MeasureSpec学习 - 转
- DOM创建元素、属性、文本节点
- Hbase shell基础和常用命令详解
- 第三章 员工考勤信息管理