为了账号安全,请及时绑定邮箱和手机立即绑定

添加sr-only没有隐藏掉label,什么原因?

<form action="" role="form" class="form-inline">

<div class="form-group">

<label for="username sr-only">用户名</label>

<input class="form-control" type="text" id="username" placeholder="test">

</div>


<div class="form-group">

<label for="password">密码</label>

<input type="password" class="form-control" placeholder="password">

</div>


<div class="checkbox">

<label>

<input type="checkbox">记住密码

</label>

</div>

<button type="submit" class="btn btn-default">登录</button>

</form>


正在回答

1 回答

class="sr_only"不是for="sr_only"

0 回复 有任何疑惑可以回复我~
#1

feibenren 提问者

非常感谢!
2015-05-08 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

添加sr-only没有隐藏掉label,什么原因?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号