【发布时间】:2017-06-23 22:48:56
【问题描述】:
所以,我的按钮遇到了一个小问题,基本上,当我单击下一个按钮并且页面有更多正文时,按钮往往会垂直向下移动并返回向上,页面上的单词更少。
.azibsButtons {
padding-top: 100px;
padding-left: 10px;
padding-right: 10px;
}
<div class="azibsButtons">
<button type="button" id="previous" class="btn btn-primary pull-left">Prev</button>
<button type="button" id="next" class="btn btn-primary pull-right">Next</button>
<button type="button" id="submit" class="btn btn-primary pull-right">Submit</button>
</div>
我需要按钮稳定在一个位置。
【问题讨论】:
-
尝试在 .azibsButtons 上使用 position:absolute
-
不,它没有帮助,按钮连接在一起并且仍然垂直上下移动@Chiller
-
尝试为内容区域添加高度并设置为overflow-y:scroll
-
你需要指定位置top/left ..尝试添加top 50px;例如
-
是的,我试过了,但按钮仍然上下移动
标签: jquery html css button padding