Hiding an element that contains only spaces using CSS

前端 未结 9 467
不思量自难忘°
不思量自难忘° 2021-01-07 17:34

I am trying to hide the following element in an automatically generated HTML document:

  

9条回答
  •  心在旅途
    2021-01-07 18:08

    You could use:

    p.sitspagedesc {
      content: " "; 
      display: none;
    }
    

    Unless you randomly have multiple spaces in there...

提交回复
热议问题