【发布时间】:2015-07-07 14:01:30
【问题描述】:
我正在为移动设备做设计,我必须考虑不同的设备。我在页面底部放置了一个按钮组。这意味着按钮出现在滚动条的最后。但是,当页面因为设备太大而太小时,按钮会出现在页面的中间。在那之后,有空白。 我尝试使用以下规则:How to put the footer at the bottom of the visible page? 但按钮始终出现在屏幕底部。使用滚动条后我需要查看按钮。
HTML
<div id="botoneraInternet" class="btn-group btn-group-justified" role="group" aria-label="...">
<div class="btn-group btn-group-lg" role="group">
<button type="button" class="btn btn-default" id="botonHardware" disabled="" style="background-color: rgb(48, 144, 184);">
<span><img class="icons" src="imagenes/llave.png"></span> Hardware
</button>
</div>
<div class="btn-group btn-group-lg" role="group">
<button type="button" class="btn btn-default" id="botonClose" style="background-color: rgb(223, 228, 229);">
<span><img class="icons" src="imagenes/valija.png"></span> Cerrar WO
</button>
</div>
</div>
CSS
.btn-group {
position: relative;
vertical-align: middle;
}
.btn-group-justified {
display: table;
width: 100%;
table-layout: fixed;
border-collapse: separate;
}
有人可以帮助我吗? 非常感谢,我将给最佳答案打星。
【问题讨论】:
标签: html css button mobile device