如下图
给非input元素增加placeholder特性

 有子控件时
给非input元素增加placeholder特性

 

 

 想要实现如果明细中没有子控件时显示可添加多个子控件

.simplaceholder{
    width:100px;
    height:30px;
    margin: 10px auto;
}
.simplaceholder:empty:after{
    content: attr(placeholder);
    color:darkgray;
}
<div class='simplaceholder' placeholder='可添加多个子控件'></div>

 

相关文章:

  • 2021-10-18
  • 2021-07-31
  • 2022-01-03
  • 2021-11-13
  • 2021-11-14
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案