【文件属性】:
文件名称:position:返回元素相对于 documentElement 的位置框对象的组件
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-22 16:27:01
JavaScript
位置
返回元素相对于document 、 window或其他元素的位置对象。
位置对象如下所示:
{
left : 100 , // distance from the left side of a relative target
top : 100 , // distance from the top side of a relative target
width : 200 , // width of element's border-box
heigth : 300 , // height of element's border-box
right : 300 , // left + width
bottom : 400 // top + height
}
支持
IE8+
安装
component install darsain/position
【文件预览】:
position-master
----.gitignore(17B)
----README.md(2KB)
----CHANGELOG.md(199B)
----component.json(317B)
----test()
--------index.js(1KB)
--------index.html(1KB)
----index.js(2KB)