📜  contenteditable 的占位符 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:55.283000             🧑  作者: Mango

代码示例1
[contenteditable=true]:empty:before{
  content: attr(placeholder);
  pointer-events: none;
  display: block; /* For Firefox */
}