开发者

Can we have external NoScript file?

Can we have external NoScript file?

If javascript is not avaialbe i want to hide + and开发者_如何学Python - from According page.

How to do this if i can't edit html <head> i only can add any external css and js file


The easy way is to add the +/- from Javascript, rather than sticking them directly in the HTML. That way they won't show up if scripts are disabled.


If there is a suitable class, you can hide the elements by default, then show them if JavaScript is enabled.

e.g.:

In CSS:

.plusminus { display: none }

<span class="plusminus">+</span>

Then, have a JavaScript file that overrides that CSS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜