看到一个网页,将某文字的display属性设置为none,但是网页显示正常,但是当我把代码copy到本地时文字却无法显示,如下图,求解
迷茫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.
巴扎黑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.