div contenteditable
Posted yiyangl
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了div contenteditable相关的知识,希望对你有一定的参考价值。
.input{ width:100%; height:auto; min-height: 24px; font-size:14px; padding:5px 8px; border:1px solid #ddd; word-break: break-all; } .input:empty::before { content: attr(placeholder); }
<div class=‘input form-control‘ contenteditable placeholder=‘请输入文字‘ ng-bind="input" ng-model="input"></div>
以上是关于div contenteditable的主要内容,如果未能解决你的问题,请参考以下文章