jQuery 带有引导程序的窗口右下角的引导程序固定按钮
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27100910/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
bootstrap fixed button in window right bottom corner with bootstrap
提问by Scorpioniz
Is it possible, if yes - how, put simple button into window page right bottom corner in fixed or else (not very good at css) that it always be there, if I scroll down or up, or resize window? I am using bootstrap 3
是否有可能,如果是 - 如何将简单按钮放入窗口页面右下角固定或其他(不太擅长 css)它总是在那里,如果我向下或向上滚动,或调整窗口大小?我正在使用引导程序 3
回答by Scorpioniz
button { position: fixed; bottom: 0px; right: 0px; }
or
按钮{ position: fixed; bottom: 0px; right: 0px; }
或
whatever bottom and right pixels you need :)
您需要的任何底部和右侧像素:)
I use 20px
in both
我20px
在两者中使用
回答by smarttechy
<a style="position:absolute;bottom:5px;right:5px;margin:0;padding:5px 3px;" href="#">GO BACK</a>