会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
super_素素
博客园
首页
新随笔
联系
订阅
管理
2018年3月29日
关于height、offsetheight、clientheight、scrollheight、innerheight、outerheight的区别
摘要: 二、也是平时经常用到的offsetheight 它返回的高度是内容高+padding+边框,但是注意哦,木有加margin哦,当然一般也木有啥需要把margin加进去的,以上代码为例,结果显示上图h2; 对了,为什么这个offsetheight的用法和height的用法不一样的,因为offsetHe
阅读全文
posted @ 2018-03-29 09:53 super_素素
阅读(253)
评论(0)
推荐(0)
公告