search

Home  >  Q&A  >  body text

css - H5中display属性设置问题

看到一个网页,将某文字的display属性设置为none,但是网页显示正常,但是当我把代码copy到本地时文字却无法显示,如下图,求解

ringa_leeringa_lee2903 days ago876

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-17 13:48:46

    For this question of whether it takes effect, you can open computed to check whether it takes effect. This is an important part of debugging.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 13:48:46

    dispaly:none; means hidden. Also, it’s best to use the browser’s censor to check the style. You can’t see anything by looking at the css code, and the style can also be controlled by js.

    reply
    0
  • Cancelreply