动漫人物
首先要取得top值和left值,先要把这个div的定位设为 relative 或者 absolute比如:<div id="tiao" style="margin-top: 3;margin-left: -5;width: 470;height: 25;position:relative" ></div>top值: document.getElementById('tiao').offsetTop+document.body.scrollTopleft值:document.getElementById('tiao').offsetLeft;