CSS 隐藏空元素,注意:empty前面的冒号不能有空格!*/ div.box:empty { display:none; }. /* 子元素若有一个为空,隐藏父元素*/ .parentBox:has(.
確定! 回上一頁