阅读背景:

使用CSS / Javascript切换侧栏div与另一个div

来源:互联网 

here's my situation:

这是我的情况:

So I'm trying to toggle a sidebar by clicking another div. It's a 100% height sidebar that is fixed to the right side of the viewport. Essentially I am trying to wrap a 300px div around both the 50px wide toggle div and the 250px wide sidebar div, and I want to hide the sidebar portion using a negative margin-right pixel value. Using the .toggle:active selector (so this occurs when the toggle div is clicked), I want to show the sidebar portion by setting that margin-right pixel value back to 0px.So I'm trying




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: