问答详情
源自:2-5 右边控制条支持拖拽(Resizeable Panel)

关于计算偏移的那两个值

能不能把m_start_x = e.pageX - ctrl.offsetLeft; m_start_y = e.pageY - ctrl.offsetTop;换成 m_start_x = panel.offsetLeft; m_start_y = panel.offsetTop;啊?

提问者:慕UI6326490 2015-03-10 16:23

个回答

  • 慕UI8284076
    2015-12-23 22:16:38

    hellow world