当试图检索元素的位置(相对于非静态父元素)时,如果在代码的后面将位置(css样式)设置为默认的静态位置以外的任何位置,则返回的值(在此css属性被设置之前)是错误的(静态父元素的左上角)。帮助?说得通:var left = $(this).position().left;
console.log(top);main.js</e
但是.top和.left会发生什么呢?= rng.Left + ((rng.Width - pic.Height) / 2) Else 'Picture'sheigth is larger than its width, this line makes it exactly fit int range height
.Top=