日期:2014-05-16 浏览次数:20384 次
JavaScript拖动层和缩放层(简约版)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <meta content="text/html;charset=gb2312" http-equiv="content-type"> <style> *{font-size:9pt;font-family:宋体;line-height:130%;} </style> </HEAD> <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>
?