sr-only Bootstrap类
对除屏幕阅读器之外的所有设备都隐藏一个元素,该类只有.sr类。
您可以尝试运行以下代码以实现仅sr的Bootstrap-
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class = "row" style = "padding: 91px 100px 19px 50px;">
<form class = "form-inline" role = "form">
<div class = "form-group">
<label class = "sr-only" for = "email">Email address</label>
<input type = "email" class = "form-control" placeholder = "Enter email">
</div>
<div class = "form-group">
<label class = "sr-only" for = "pass">Password</label>
<input type = "password" class = "form-control" placeholder = "Password">
</div>
</form>
</div>
</body>
</html>热门推荐
10 祝妹妹毕业祝福语简短
11 新年祝福语和语句简短
12 生日祝福语 简短独特高考
13 国庆求婚祝福语简短精辟
14 中秋祝福语送朋友简短
15 农民朋友发财祝福语简短
16 生日祝福语简短独特的
17 龙年简短祝福语有哪些
18 冬至婆婆的祝福语简短