【发布时间】:2016-09-29 02:20:25
【问题描述】:
我在页面底部放置了一个小框。我试图在 div 上方放置一个表单,但表单不断跳入引导 div。
这是 html 尝试 编辑: 我还希望表单中的行具有与面包屑相同的背景颜色,但它没有显示
<div style="padding:1px; background-color: #F2F2F2;">
<form class="rightiest" method="post" action="/logout">
<input class="btn btn-link" type="submit" value="Leave Group"/>
</form>
</div>
<div class="breadcrumb">
<div class="wrap">
<div class="container" style="text-align: center;font-size: 80%;">
<strong> Please hold we will soon attend to you shortly</strong>
</div>
</div>
</div>
这是控制表单的css
form.rightiest {float:right; margin-top:0px; margin-bottom:7px;}
通过上述方式,表单不断重叠到 div 中。请问如何将表单放在 div 的正上方。
【问题讨论】:
标签: html css css-position positioning