【发布时间】:2014-10-25 06:18:41
【问题描述】:
使用最新版本的 haml、haml-rails、sass 和 bootstrap-sass 运行 Rails 4.1.4。对于用户显示,我的 HAML 是这样的:
.tutors-listing
.row
- @users.each do |tutor|
.col-xs-12.col-md-3
.row.tutor
.col-xs-offset-1.col-xs-4.col-md-12
= image_tag tutor.photo, :class => 'img-responsive img-circle tutor-photo'
%h4.tutor-name
= tutor.first_name
%p
teaches
%strong.tutor-skills
= tutor.teachables
但是,此标记会导致以下故障:
我希望有人能确定这里出了什么问题。在中断点处,应该有 4 列均匀。
【问题讨论】:
-
在这里查看我的答案:stackoverflow.com/questions/24571062/…。这是一个 Bootply 演示:bootply.com/jme11/U91pZvp81q#。而且,有关“常规”响应式重置的更多详细信息:stackoverflow.com/questions/24494409/…
标签: html css ruby-on-rails ruby twitter-bootstrap