js 控制div的拖拽与缩放

<html> <body>
<SCRIPT>
document.execCommand("2D-position",false,true);
</SCRIPT>
<DIV CONTENTEDITABLE="true"><DIV style="width:300px;height:100px; color:white; background-color:red;
position:absolute;">My DIV</DIV></DIV>
<p>
<span CONTENTEDITABLE="true"><span style="width:300px;height:100px; color:white; background-color:blue;
position:absolute;">My Span</span></span>
</body> </html>

你可能感兴趣的:(div)