JavaScript - Hide a Div at startup (load)

前端 未结 6 1756
南方客
南方客 2020-12-29 03:17

I have a div in my php page that uses jQuery to hide it once the page has loaded. But is there a way to hide it from the very start of loadup?

The reason I ask is be

6条回答
  •  猫巷女王i
    2020-12-29 03:37

    Why not add "display: none;" to the divs style attribute? Thats all JQuery's .hide() function does.

提交回复
热议问题