代码改变世界

獲得瀏覽器顯示標簽的真實的長寬高

2014-09-24 16:36  Koy  阅读(304)  评论(0编辑  收藏  举报

var rect = $('.CalendarColumn').get(0).getBoundingClientRect();

 

$('.CalendarColumn').get(0).getBoundingClientRect()
ClientRect {height: 73, width: 191, left: 45, bottom: 212, right: 236…}

bottom: 212

height: 73

left: 45

right: 236

top: 139

width: 191