How to show hidden div using url

前端 未结 2 985
盖世英雄少女心
盖世英雄少女心 2021-01-29 11:09

I\'m making a small page that has 3 sections. While 1 section is showing the others are hidden. When the page loads the welcome section is displayed, while the other sections ar

2条回答
  •  心在旅途
    2021-01-29 11:25

    You will need some javascript, that, on page loading, checks the URL for an anchor like #menu-xy, and makes the corresponding div visible.

提交回复
热议问题