把一个显示界面变成编辑页面简单方法

 <DIV contentEditable=true style="BORDER-TOP: red 1px solid; BORDER-RIGHT: red 1px solid; BORDER-BOTTOM: red 1px solid; BORDER-LEFT: red 1px solid"></DIV>

.testbox { border: 3PX solid red;;width: 400px; min-height: 120px; max-height: 300px; margin-left: auto; margin-right: auto; padding: 3px; outline: 0; border: 1px solid #a0b3d6; font-size: 12px; word-wrap: break-word; overflow-x: hidden; overflow-y: auto; }

posted @ 2014-07-15 09:18  Silababy  阅读(286)  评论(0编辑  收藏  举报