代码如下:
<p class="card">
<p class="card-header" style="font-size:21px;font-weight:700;color:#555555;text-shadow:0 1px 4px rgba(0,0,0,0.2);text-align:center;">
用户登录
</p>
<p class="card-text card-block">
<form>
<fieldset class="form-group">
<input class="form-control" placeholder="用户名"
style="
background:#d8d8d8;
border-radius:6px;
color:#fff;font-size:14px;
height:40px;line-height:20px;margin-top:25px;padding:11px 15px;">
</fieldset>
<fieldset class="form-group">
<input class="form-control" placeholder="密码"
style="
background:#d8d8d8;
border:1px solid #f9f9f9; border-radius:6px;
color:#fff;font-size:14px;
height:40px;line-height:20px;margin-top:15px; padding:11px 15px;">
</fieldset>
**<p>
<label><input type="checkbox">记住密码 </label>
<button type="button" class="btn btn-link pull-right">找回密码</button>
</p>**
<button type="button" class="btn btn-primary btn-block">登录</button>
</form>
</p>
</p>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
把这几个元素的verticle-align都设置成middle就行了
如果用楼上的方法不行的话,可以后边的那个类。使用position:relative;top:你要的值。来调整对齐就可以了