码迷,mamicode.com
首页 > 其他好文 > 详细

width() 、 height() 方法;innerWidth() 、innerHeight() 方法;outerWidth() 、 outerHeight() 方法的区别

时间:2018-07-19 16:19:11      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:区别   的区别   方法   宽度   元素   height   outer   bsp   nbsp   

1、width() 、 height() 方法

  设置或返回元素的宽度、高度(不包括内边距、边框或外边距);

2、innerWidth() 、innerHeight() 方法

  返回元素的宽度、高度(包括内边距);

3、outerWidth() 、 outerHeight() 方法

  返回元素的宽度、高度(包括内边距和边框);

 

width() 、 height() 方法;innerWidth() 、innerHeight() 方法;outerWidth() 、 outerHeight() 方法的区别

标签:区别   的区别   方法   宽度   元素   height   outer   bsp   nbsp   

原文地址:https://www.cnblogs.com/hwldyz/p/9335850.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!