1、.offsetWidth
offsetWidth 為width+padding+border;
2、clientWidth
clientWidth為width+padding;
3、scrollWidth:擷取對象的滾動寬度 。
4、window.screen.width;為螢幕寬度比scrollWidth大;
1、.offsetWidth
offsetWidth 為width+padding+border;
2、clientWidth
clientWidth為width+padding;
3、scrollWidth:擷取對象的滾動寬度 。
4、window.screen.width;為螢幕寬度比scrollWidth大;