only

英[ˈəʊnli] 美[ˈoʊnli]

adj.Only; only; the best, the most appropriate

adv.Only, only; the result is, unexpectedly

conj.But, but;if not

Bootstrap sr-only style syntax

Function: Hide elements on other devices except screen readers

Bootstrap sr-only style example

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>php中文网(php.cn)</title> 
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">  
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
	<h2>实例</h2>
	<p> .sr-only 类除了屏幕阅读器外,其他设备上都隐藏元素:</p>
	<a class="sr-only" href="#">跳转到主要内容</a>
	<p>与 .sr-only 类结合使用,在元素获取焦点时显示(如:键盘操作的用户):</p>
	<a class="sr-only sr-only-focusable" href="#">跳转到主要内容</a>
</div>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance