滚动页面时保持按钮可见

Keep a button visible while scrolling a page

在 Web 项目的特定页面中,我想添加一个按钮,当页面上下滚动时,"follows" 用户可以使用该按钮。使用 CSS、php、jquery,无论我用什么方法... 问题是:我真的没有在网上找到任何关于此的文档(可能是错误的关键字)。我在哪里可以找到有关它的文档?谢谢!

我给你做了一个 jsfiddle,我希望这就是你要找的:http://jsfiddle.net/o0me03f5/

HTML:

<div id="button">button
</div>
<div id="content">
</div>

CSS:

#content
{
    height:2000px;
}

#button
{
    background-color:gray;
    width:100px;
    height:100px;
    position:fixed;
    bottom:0;
    left:0;
    right:0;    
}