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

后端 未结 4 851
栀梦
栀梦 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 18:18

    document.getElementById('mybox').style.display = "block";
    

提交回复
热议问题