【问题标题】:How to set up the browser scrollbar to scroll part of a page? (higher than footer part hidden) just like http://i-donline.com/如何设置浏览器滚动条来滚动页面的一部分? (高于隐藏的页脚部分)就像 http://i-donline.com/
【发布时间】:2012-09-10 05:57:57
【问题描述】:

如何设置浏览器滚动条来滚动页面的一部分? (高于隐藏的页脚部分)就像http://i-donline.com/

http://jsfiddle.net/hVvfn/2/

.header{
position: fixed;
left: 0;
top: 0;
width: 1000px;
height: 100px;
background:  blue;
z-index: 1;
}
.contentwrap{
position: absolute;
left: 0;
top: 100px;
width: 1000px;
height: 250px;
background:  ;
}
.footer{
position: fixed;
left: 0;
top: 350px;
width: 1000px;
height: 300px;
background:  blue;
}
.row{
position: relative;
left: 0;
top: 0;
width: 800px;
height: 250px;
border: purple 1px solid;
background: gray;
}​

【问题讨论】:

标签: html css


【解决方案1】:

有一个名为 iScroll 的库。只用于这类事情。你可以去看看,我觉得会有帮助。事实上我已经用过很多次了。像魅力一样工作。这是链接:

iScroll here

【讨论】:

  • 谢谢,但我想知道网站是否还在使用浏览器滚动条
  • 你可以这样配置。
  • 我检查了iscroll水平演示,但是如果拉动窗口大小,内容滚动条会显示并闪烁?
猜你喜欢
  • 2010-09-10
  • 2011-08-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-08-11
  • 1970-01-01
相关资源
最近更新 更多