简体   繁体   English

使用CSS从相对于静态位置编辑基本边栏偏移画布

[英]Edit Basic sidebar-offcanvas from relative to static Position with CSS

i need to make my relative offcanvas to Static Position with the same effect of transition !!! 我需要使我的相对画布达到静态位置,并具有相同的过渡效果!!! please check my live demo and make scroll 请检查我的现场演示并滚动

DEMO DEMO

i need somthing like this Demo 我需要像这个演示这样的东西

I tried to make the sidebar with the same height with Jquery like that : 我试图用Jquery使侧边栏具有相同的高度:

$('#sidebar').height($(window).height()- 51);

its working but, i need to make it static with the top bar also 它的工作,但我也要使其与顶部栏静态

set position attribute to fixed . position属性设置为fixed It will help your sidebar fix at position where ever you have placed it . 它将帮助您的侧边栏固定在您放置过的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM