moveTo 是绝对位置,就是说x,y代表着是屏幕的位置。
moveBy是相对位置,x,y代表着是移动以后距离它现在的位置。
moveBy是相对位置,x,y代表着是移动以后距离它现在的位置。
解决方案 »
- 为什么这段JS的代码不能给文本框赋值呢?只有“标规”按钮有用。谢谢!
- use getScrollTop. please give me an example to understand theis usage.
- 鼠标移上LI变色背景的问题
- js获取treeview所有选中节点值(checkbox)
- 修改alert的标题?
- 怎么用js验证日期用下拉列表的形式
- 如何访问iframe 里的对象?就是父网页访问子网页。
- 如何检测局域网或internet的一台机子是开着的, 机子有防火墙.
- 如何控制window.showHelp()显示窗口的宽度和高度?
- 求助!script高手请进!!!
- Lostinet,请进来一下,请教两个问题(xml数据岛和 for xml auto查询)
- 如何实现层的显示和隐藏?(多谢,请进!)
Moves the upper-left corner of the element to the specified location for the moveable behavior
moveBy Method:
Moves the screen position of the window by the specified iX and iY offset values.