Home  >  Article  >  Web Front-end  >  顶部有个固定的导航栏,页面内定位时怎么定在导航栏下面。_html/css_WEB-ITnose

顶部有个固定的导航栏,页面内定位时怎么定在导航栏下面。_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:01:481997browse

点击定位按钮,有点被导航栏挡住了。要怎么设置,谢谢。


回复讨论(解决方案)

你应该再描述的清楚点

利用外部的父节点dom。window.parent.scrollTo(10,10),这个值是你的导航栏的高度

利用外部的父节点dom。window.parent.scrollTo(10,10),这个值是你的导航栏的高度



怎么用。写个小例子吧,谢谢。

问题你描述的更清楚点。现在看你的问题我试着说答案。是不是子栏目没办法定位在对应的主栏目上?是的话可以考虑绝对定位设置,或者你想定位别的东西在那个位置也可以这样做,还有可以在导航的子项目写你要的东西

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