`
java新手上路
  • 浏览: 81788 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类

jquery 获取高度、宽度

阅读更多
获取高度或者宽度使用
$("#content").height();
$("#content").innerHeight();//元素内部区域高度,忽略padding、border
$("#content").outerHeight();//忽略边框
$("#content").outerHeight(true);//包含边框高度

$("#content").width();
$("#content").innerWidth();//元素内部区域高度,忽略padding、border
$("#content").outerWidth();//忽略边框
$("#content").outerWidth(true);//包含边框高度

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics