【发布时间】:2016-10-29 18:08:07
【问题描述】:
在 text-angular github 项目的 wiki 页面上,它说:
https://github.com/fraywing/textAngular/wiki/Styling-the-Editor
我尝试使用此代码:
<div text-angular="text-angular" ta-toolbar="[]" ng-model="message"
placeholder="<div class='placeholder'>Write Coment...</div>"></div>
但屏幕会显示为: placeholder show as raw html
看了这个网站后我尝试了以下方法:https://css-tricks.com/almanac/selectors/p/placeholder/
::-webkit-input-placeholder { color: red; }
还是不行。如何为输入占位符提供自定义样式?
【问题讨论】:
-
我认为您不能在
div中包含placeholder... -
用输入定义一个占位符
-
这也取决于您的浏览器。看我的帖子
标签: html css angularjs input placeholder