Above The running effect of the code is as shown below:
When you click on the hyperlink, the page can jump normally; but when you click on the label, the page cannot jump; above, it cannot jump in IE8 and Chrome (other browsers have not been tested). Therefore, the next effect to be achieved is to make the page jump when the label is clicked (that is, when the click event of the hyperlink is called, let the page jump), and the code to be written should be less, and it is best to be in It can be processed in one place. A project cannot have only one page, and a page cannot have only one hyperlink, and it cannot be too rigid. Another function of anchors is bookmarks. Other links can be jumped. The bookmark function of anchors is blocked, and….
Main.css
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn