【发布时间】:2014-03-11 02:45:21
【问题描述】:
我使用 twitter bootstrap 3 创建了一个注册表单。它看起来像我想要的那样,但页脚不在它的位置。我怎样才能让它处于应有的底部?
这是我的“布局”(主模板):
.container
.row
!= yield
%hr
!= haml :'shared/_footer'
其中!= yield 是/registration 页面内容的占位符。这是它的内容:
.col-lg-4.col-lg-offset-4
.well
%legend Create your account
%form{role: :form, action: '/signup', method: :post}
- if @return_url
%input{type: :hidden, name: :return_url, value: @return_url}
.row
%label.col-xs-4{for: :email} Email
.col-xs-8
%input.form-control{id: :email, name: :email, type: :email}
.row
%label.col-xs-4{for: :password} Password
.col-xs-8
%input.form-control{type: :password, name: :password, id: :password}
.row
.col-xs-8.col-lg-offset-4
%button.btn.btn-primary.btn-block{type: :submit} Create Account
.clearfix
【问题讨论】:
标签: html css twitter-bootstrap twitter-bootstrap-3 haml