css实现按钮固定在底部

来源:互联网 发布:淘宝卖家名字大全 编辑:程序博客网 时间:2024/05/22 12:47

想要把按钮固定在底部,让浏览器滚动时也不受影响。其实代码很简单的啦!
css如下:

<style>.r{position:fixed; bottom:0;}</style>

html如下:

<div>    <div class="r">        <input type="submit" value="确认添加"  class="btn btn-primary"/>    </div></div>
2 0
原创粉丝点击