获取一个容器的宽

95 阅读1分钟

四种方法

  • width() 内容
  • innerWidth() 内容+内边距
  • outerWidth() 内容+内边距+边框
  • outerWidth(true) 内容+内边距+边框+外边距