Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
334 views
in Technique[技术] by (71.8m points)

html - 导航栏的重新放置页面(reposition page for sticky nav bar)

I have a nav bar on my html page with a sticky position to the top of the page.

(我的html页面上有一个导航栏,在页面顶部具有粘性位置。)

The nav bar is set to scroll down the text to my id tags on the page when I click.

(导航栏设置为当我单击时将文本向下滚动到页面上的id标签。)

This works, but my titles are hidden behind the nav bar when the position on the page is moved because it is set to put the tagged title at the top of the page.

(此方法有效,但是当页面上的位置移动时,我的标题隐藏在导航栏的后面,因为它被设置为将标记的标题放在页面顶部。)

How do I make the page scroll up so the title text is visible when i click a nav link?

(如何使页面向上滚动,以便在单击导航链接时可以看到标题文本?)

  ask by BaxterBishop translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...