惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园_首页
M
MIT News - Artificial intelligence
D
DataBreaches.Net
L
LangChain Blog
宝玉的分享
宝玉的分享
F
Fortinet All Blogs
A
About on SuperTechFans
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
腾讯CDC
Vercel News
Vercel News
雷峰网
雷峰网
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】

博客园 - standas

Tomcat 支持中文和不区分大小写 - standas - 博客园 安装 Realtek HD Audio Driver 失败 CSS工具列表 Meta标签详解 changimg - standas - 博客园 网页中调用本地exe程序 - standas - 博客园 Microsoft JET Database Engine 错误 '80040e09' FCKeditor 在上传中文文件时文件名出现乱码 用于asp.net还原与恢复sqlserver数据库的killspid存储过程 ASP.NET访问Oracle数据库的方法(转) oracle_net.msi下载地址 oracle常用函数 oracle连接字符串 网站被挂木马,中毒了 电脑出现怪问题 全球15个顶级技术类博客 十个未来发展趋势 java课程资源 Java环境搭建
获取元素的绝对位置
standas · 2010-05-15 · via 博客园 - standas

function getElePosition(objElement){ 
         var curleft = objElement.offsetLeft || 0;
        var curtop = objElement.offsetTop || 0;
        while (objElement= objElement.offsetParent) {
            curleft += eval(objElement.offsetLeft);
            curtop += objElement.offsetTop;
        }
  return {pixelLeft : x , pixelTop : y};
}