div模拟textarea(h5 contenteditable)

原创 ydsjiang 随笔 Web前端 171阅读 2017-12-06 20:57:44 举报

<div contenteditable="true" class="test">
.....此处省略.....
</div>

.test{
width:500px;
min-height: 100px;
max-height: 200px;
border: 1px solid red;
word-wrap:break-word;
overflow-y: auto;
}

h5 contenteditable=true 规定元素可编辑

评论 ( 0 )
最新评论
暂无评论

赶紧努力消灭 0 回复