How can I show an element that has display: none in a CSS rule?

后端 未结 4 842
栀梦
栀梦 2021-02-03 17:29

I have a really simple external css stylesheet that has the following :

div.hideBox {
    display:none;
}

So when the html page loads, the div

4条回答
  •  情书的邮戳
    2021-02-03 17:56

    I can see that you want to write you own short javascript for this, but have you considered to use Frameworks for HTML manipulation instead? jQuery is my prefered tool for such a task, eventhough its an overkill for your current question as it has SO many extra functionalities.

    Have a look at jQuery here

提交回复
热议问题