dom-align:灵活地对齐DOM节点

时间:2021-04-29 11:30:40
【文件属性】:
文件名称:dom-align:灵活地对齐DOM节点
文件大小:30KB
文件格式:ZIP
更新时间:2021-04-29 11:30:40
JavaScript 对齐 灵活地将源html元素与目标html元素对齐。 截屏 安装 特征 支持IE9 + Chrome Firefox浏览器 支持对齐点和偏移 支持根据可见区域自动调整 在线演示 用法 import domAlign from 'dom-align' ; // use domAlign // sourceNode's initial style should be position:absolute;left:-9999px;top:-9999px; const alignConfig = { points : [ 'tl' , 'tr' ] , // align top left point of sourceNode with top right point of targetNode offset : [ 10 , 20 ] , // the
【文件预览】:
dom-align-master
----.travis.yml(496B)
----index.js(56B)
----.babelrc.js(156B)
----HISTORY.md(419B)
----package.json(2KB)
----.prettierrc(51B)
----tests()
--------index.js(184B)
--------basic.js(21KB)
--------point.js(2KB)
----src()
--------propertyUtils.js(3KB)
--------utils.js(17KB)
--------index.js(162B)
--------getElFuturePos.js(490B)
--------getAlignOffset.js(502B)
--------adjustForViewport.js(2KB)
--------align()
--------getVisibleRectForElement.js(4KB)
--------getRegion.js(559B)
--------isAncestorFixed.js(531B)
--------getOffsetParent.js(1KB)
----examples()
--------simple.js(4KB)
--------shadow-dom.js(1KB)
--------fail.html(0B)
--------shadow-dom.html(0B)
--------point.html(0B)
--------body-overflow.js(1KB)
--------simple.html(0B)
--------fail.js(925B)
--------body-overflow.html(0B)
--------point.js(2KB)
----LICENSE.md(1KB)
----.gitignore(210B)
----README.md(5KB)
----.editorconfig(192B)

网友评论