1.设置标签或控件为绝对路径
**.style.position = 'absolute';
2.获取标签或控件的绝对路径
var oRect = **.getBoundingClientRect();
var top = oRect.top; var left = oRect.left;
3,设置标签或控件的绝对路径
**.style.top = oRect.top + 'px';
**.style.left = oRect.left + 'px';
1.设置标签或控件为绝对路径
**.style.position = 'absolute';
2.获取标签或控件的绝对路径
var oRect = **.getBoundingClientRect();
var top = oRect.top; var left = oRect.left;
3,设置标签或控件的绝对路径
**.style.top = oRect.top + 'px';
**.style.left = oRect.left + 'px';