#win { position:absolute; top:20px; left:20px; cursor:pointer; border:1px solid red; } #win p.title { width:100%; height:30px; line-height:30px; background-color:red; color:white; } #win p.title span { margin-left:10px; } #win div.content { padding:10px; width:300px; height:100px; border-radius:0px 0px 5px 5px; }
用jquery插件写的拖拽,简单,适用