好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

CSDN的隐藏侧边栏功能是怎么实现的?_html/css_WEB-ITnose

比如这个页面的“隐藏侧边栏”
http://bbs.csdn.net/
给个源码看看


回复讨论(解决方案)

其实就是设置 css,显示style.display='block',隐藏style.display='node'
我写了个例子,与csdn的实现方式可能不一样

   html,body{ width:100%;height:100%;padding:0px;margin:0px;overflow:hidden  }  #ifr1{height:100%;width:200px;float:left;  }  #ifr2{height:100%;width:100px float:right; }  #hand{    position: absolute;    z-index: 99;    left: 200px;    top: 48%;    height: 50px;    word-break: break-all;    display: block;    width: 20px;    background: #fff;    text-align: center;    border: 1px solid #ccf;  }       

隐藏

查看更多关于CSDN的隐藏侧边栏功能是怎么实现的?_html/css_WEB-ITnose的详细内容...

  阅读:29次