【发布时间】:2019-08-26 02:58:52
【问题描述】:
我知道我可以做到:
::-ms-input-placeholder, /* Microsoft Edge */
:-ms-input-placeholder, /* Internet Explorer 10-11 */
::placeholder /* Chrome, Firefox, Opera, Safari 10.1+ */
{
text-indent: 10px;
}
但我想使用投标属性 [style...]
<input type="text" [style.placeholder.text-indent.px]="customIndent">
【问题讨论】:
-
老实说,我认为这是不可能的。你必须使用 CSS 来定位它。