【发布时间】:2013-02-10 18:14:27
【问题描述】:
所以我正在寻找这个:http://twitter.github.com/bootstrap/base-css.html#forms 内联表单.form-inline
现在在我的页面上,输入看起来像没有填充一样:
现场示例:这里:http://jsbin.com/ariret/1/edit
这是我的代码:
<div class="navbar">
<div class="navbar-inner">
<form class="form-inline" action="<?php echo $this->baseUrl('login'); ?>" id="form-login" method="post">
<input type="text" class="input-small" id="email" name="email-login" placeholder="<?=$this->translate('Email');?>">
<input type="password" class="input-small" id="password" name="password-login" placeholder="<?=$this->translate('Password');?>">
<label class="checkbox">
<input type="checkbox" name="keep-logged" value="1" id="check-logged"> <?=$this->translate('Remember me'); ?>
</label>
<input type="hidden" name="login_type" value="normal" />
<button type="submit" class="btn"><?=$this->translate('Login');?></button>
</form>
</div><!-- end navbar-iner -->
</div><!-- end navbar -->
下面是它的样子:
它需要与登录按钮具有相同的高度。
我的页面中包含 css 和 js 文件!
【问题讨论】:
-
您是否有任何自定义 CSS 会影响您的输入?仅查看 html 很难调试。指向您的项目的链接会很有帮助。
-
好问题!这是重现问题的 jsbin 链接:jsbin.com/ariret/1/edit
-
@Jrod no,你可以在这里看到:jsbin.com/ariret/1/edit thx w0lf
-
测试链接将有助于更好地帮助您。
-
@Shail 更新了我的帖子先生:jsbin.com/ariret/1/edit
标签: jquery html css twitter-bootstrap