运行代码
(Shift+Enter)
HTML教程
显示 div 元素的尺寸
outerWidth() - 返回元素的宽度 (包含内边距和边框)。
outerHeight() - 返回元素的高度 (包含内边距和边框)。
运行结果