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

1、width() 、 height() 方法

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

2、innerWidth() 、innerHeight() 方法

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

3、outerWidth() 、 outerHeight() 方法

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

 

posted @ 2018-07-19 14:58  莉莉安~  阅读(269)  评论(0编辑  收藏  举报