我已经从<head>
删除了bootstrap-responsive.css链接,但我的页面仍然响应。 我有三个<div class"row">
,每个都有树<div class="span4">
来保存一些数据,一切看起来像一个3x3的方形。我的分辨率是1600x872,“正方形”看起来很完美,但当我调整浏览器窗口大小时,div变得疯狂,看起来像一个矩形。我只想让div保持自己的位置,这意味着当我调整窗口大小时,会出现滚动条显示。你有解决方案吗?set bootstrap non-responsive divs
0
A
回答
2
你是否在.container
div中包装行?
当您不使用.container
时,那么行中的.span4
元素在缩小屏幕宽度时将为您提供“矩形”效果。
你可以在这个jsbin例子上进行测试。 顶行不包含在.container
内,但底行是。
http://jsbin.com/okogis/1/edit
<!-- this row has no .container, and will
look like a rectangle when you reduce screen width -->
<h4>NO .container</h4>
<div class="row">
<div class="span4">
<div class="spacer200 a1"></div>
</div>
<div class="span4">
<div class="spacer200 a2"></div>
</div>
<div class="span4">
<div class="spacer200 a3"></div>
</div>
</div>
<div class="spacer50"></div>
<!-- this row does have a .container,
and will not give the rectangle effect -->
<div class="container">
<h4>.container wrapping the row</h4>
<div class="row">
<div class="span4">
<div class="spacer200 a1"></div>
</div>
<div class="span4">
<div class="spacer200 a2"></div>
</div>
<div class="span4">
<div class="spacer200 a3"></div>
</div>
</div>
</div>
+0
因为我无法处理响应式设计,所以我认为使用没有响应的设计就是答案,但后来我已经看到只有一部分div在'.contaier'内,而不是全部,这是根的观点问题。现在,一切都在容器内部并且响应。感谢您的帮助! – user1640979
相关问题
- 1. Centering divs - Bootstrap
- 2. Float divs in bootstrap
- 3. Bootstrap divs not stacking right
- 4. Bootstrap classpath not set
- 5. Set Button Right&Center Bootstrap Alert Box
- 6. bootstrap set margin left to .container
- 7. JQuery Bootstrap selectpicker on('change')set selected
- 8. Bootstrap divs跳出父母div在移动
- 9. Bootstrap footer导航覆盖PopUp Divs
- 10. Twitter的Bootstrap`容器`divs在ASP.Net WebForms
- 11. bootstrap-mutliselect data-actions-box =“true”set and not working
- 12. MVC Bootstrap set data-toggle =“modal”via jquery
- 13. HTML div divs in divs
- 14. 与CSS和Bootstrap的网格系统响应,交替divs
- 15. 为什么我的Bootstrap CSS divs不能很好地堆叠?
- 16. Divs没有在Bootstrap/Javascript复选框菜单中排队
- 17. bootstrap divs在移动设备上无法正确堆叠
- 18. 为什么divs不会使用BootStrap而浮动?
- 19. divs里divs里面的div?
- 20. Chrome Drag and Drop Divs
- 21. Equal height divs
- 22. Set A minus Set B
- 23. Zend Framework:view var set in bootstrap在视图脚本中无法访问?
- 24. divs allignment
- 25. Responsive Divs
- 26. 上DIVS
- 27. Expandable divs
- 28. 嵌套divs错位父母divs
- 29. 对齐3 divs在中心下4 divs
- 30. Expand div/div divs push div divs down the page
如果删除'bootsrap-responsive.css'这几乎IMPOSIBLE您保持响应式设计在您的网页。你可以用一个'jsfiddle'向我们展示你的问题吗? – Pigueiras
看到我最后的答案。相信它,即使使用'bootstrap-responsive.css',设计仍然能够响应。谢谢! – user1640979