【发布时间】:2014-09-15 00:17:22
【问题描述】:
我正在尝试使用引导程序设计一个响应式网页。我有以下 HTML 结构
<div class="container">
<div class="row">
<div class="col-lg-8 col-sm-8">
<div class="well"><!--Page content here--></div>
</div>
<div class="col-lg-4 col-sm-4">
<div class="well">
<form class="form-horizontal" role="form">
<!--Form elements here-->
</form>
</div>
</div>
</div>
</div>
现在,我希望将 div.col-lg-4 内的 div.well 固定定位。因此,当我将 style="position:fixed;" 添加到 div.well 时,它从其父级继承的默认响应宽度(即 33.33%)会减小并且表单元素会缩小。有关如何解决此问题的任何建议?
【问题讨论】:
标签: html css twitter-bootstrap css-position fixed