Home  >  Article  >  Web Front-end  >  Web page identifier problem_html/css_WEB-ITnose

Web page identifier problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:231606browse

ec55c5d9a547a1e3d99d93ee2cfaaf0c
Content...
f582ea491ad549026e9b13d2501d63e7

77ca47e44b630c9d661c7dcbfd2c54c0
... .
16b28748ea4df4d9c2150843fecfba68

d6a20ebbce3d01296e18aeb29c3c7924
..
16b28748ea4df4d9c2150843fecfba68


This is what the web page looks like When I wrote it, I added three identifiers #page1, #page2, #page3. I want #page1 to go to the top of the webpage, and #page2,3 to the top of the webpage
but now it is slightly lower than the top, and # page1, #page2, #page3 are in the same web page. Pull down the scroll bar to see these 3 pages
How can I achieve that #page1, #page2, #page3 all go to the top of the webpage, and when #page1 The content of page2 and 3 is hidden, and the content of page 1 and 3 is hidden on #page2....


Reply to the discussion (solution)

It seems to be used The anchor point is fine, but it needs to be hidden, so how about using js to implement it together? With sliding door?

http://www.codefans.net/jscss/code/946.shtml

This is good and can be reused.

Statement:
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