[英]How to make a sidenav fixed to an existing Sticky Header onscroll?
I already have Sticky header nav in my project, however I need to have the sidenav (filter section) or Aside also show fixed on the left when the scroll occurs as there is a long list on the right side of the page. 我的项目中已经有粘性头导航,但是当滚动发生时,由于页面右侧有一个长长的列表,因此我需要在左侧固定显示sidenav(过滤器部分)或Aside。 As I mentioned the header is already in FIXED position to top.
正如我提到的,标题已经在顶部的固定位置。 How can I make the Aside or sidenav to stick along with the header, just beneath it.
我该如何使Aside或sidenav与标头一起紧贴在标头下方。 I am unable to do it via CSS and not sure how can I accomplish this using jquery.
我无法通过CSS做到这一点,并且不确定如何使用jquery完成此操作。
Any help would be much appreciated. 任何帮助将非常感激。 Thanks in Advance..
提前致谢..
Can you please provide us with your code with the css? 能否请您将带有CSS的代码提供给我们? Basically what you can do is:
基本上,您可以做的是:
There are several ways to solve your problem. 有几种方法可以解决您的问题。 You can also use an Iframe but I wouldn't recommend it for responsive designs.
您也可以使用iframe,但我不建议将其用于自适应设计。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.