offsetHeight,clientHeight,height
来源:互联网 发布:美图秀秀软件官方下载 编辑:程序博客网 时间:2024/06/05 17:21
offsetHeight:包括内容、内边距、边框的高度
clientHeight:包括内容、内边距的高度
看一下下边的css定义后的效果
.game-opt {
margin-top: 10px;
margin-bottom: 10px;
padding-top: 3px;
height: 20px;
border: solid 1px;
}
>> $('.game-opt')[0].clientHeight
23 (height+paddingTop)
>> $('.game-opt')[0].offsetHeight
25 (height+borderTop+borderBottom+paddingTop)
- offsetHeight,clientHeight,height
- clientHeight、offsetHeight、height
- 区别height,clientHeight,scrollHeight,offsetHeight
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- height、clientHeight、scrollHeight、offsetHeight区别
- platform_device与platform_driver
- java 判断int数组中有某个值
- 组合模式
- extjs 获取grid选中项的id
- 正则表达式30分钟入门教程
- offsetHeight,clientHeight,height
- linux备份-- tar 使用
- 创建HTML5 LOGO,Canvas绘图
- 给创建好的表曾删改字段
- Linux SPI框架(上)
- 薏米红豆粥功效及做法介绍
- linux内核部件分析(二)——原子性操作atomic_t
- uboot nandflsh
- 50个不得不看的JS技巧