testdrag.html

来自「Web版的WorkFlow流程设计器.采用Javascript编写,不需要服务器」· HTML 代码 · 共 20 行

HTML
20
字号
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script>
function init(){

}
function show1(obj){
	obj.innerHTML=event.top+","+event.left;
}
</script>
</head>

<body onLoad="init();">
<div id="test" onDraging="show1(this)"; style="border:solid 1px #ff0000;background:#ffffff;position:absolute;top:100px;left:1px;width:70px;behavior:url(../htc/sndrag.htc);">XY</div>
<div id="test1" style="border:solid 1px #ff0000;background:#ffffff;position:absolute;top:100px;left:100px;width:70px;behavior:url(../htc/sndrag.htc);">XYZ</div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?