gpt4 book ai didi

html - 如何在行布局和全宽中组织我的按钮

转载 作者:太空宇宙 更新时间:2023-11-04 01:43:53 25 4
gpt4 key购买 nike

我想让我的两个 div(向上和向下按钮)并排排列在一个布局行中,并占据页面的整个宽度。现在,他们是这样组织的: enter image description here

我的 HTML 是这样的:

 <div layout="row">
<div class="btn btn-info btn-lg" width="50%;">
<span class="glyphicon glyphicon-menu-up"></span> Up
</div>
<div class="btn btn-info btn-lg" width="50%;">
<span class="glyphicon glyphicon-menu-down"></span> Down
</div>
</div>

最佳答案

像这样

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<div layout="row">
<div class="col-xs-6">
<div class="btn btn-block btn-info btn-lg">
<span class="glyphicon glyphicon-menu-up"></span> Up
</div>
</div>
<div class="col-xs-6">
<div class="btn btn-block btn-info btn-lg">
<span class="glyphicon glyphicon-menu-down"></span> Down
</div>
</div>
</div>

关于html - 如何在行布局和全宽中组织我的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44902589/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com