| | |
| | | dialogHeaderEl.style.cssText += ';cursor:move;' |
| | | //console.log(dragDom.style.cssText) |
| | | //dragDom.style.cssText += ';top:0px;' |
| | | dragDom.style.cssText = 'bottom:15px;' |
| | | |
| | | // dragDom.style.cssText = 'bottom:15px;' |
| | | // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null); |
| | | const sty = (function () { |
| | | if (window.document.currentStyle) { |
| | |
| | | })() |
| | | |
| | | dialogHeaderEl.onmousedown = (e) => { |
| | | |
| | | // 鼠标按下,计算当前元素距离可视区的距离 |
| | | const disX = e.clientX - dialogHeaderEl.offsetLeft |
| | | const disY = e.clientY - dialogHeaderEl.offsetTop |