Bootstrap anchor style
Description
We can use btn class to make an anchor look like a button and
add the .disabled class to <a>
buttons to disable them.
Example
<!DOCTYPE HTML>
<html>
<head>
<link href="http://java2s.com/style/bootstrap.min.css" rel="stylesheet">
</head><!-- ww w . ja v a 2 s . c o m-->
<body style='margin: 20px;'>
<a href="#" class="btn btn-primary btn-lg disabled">Primary link</a>
<a href="#" class="btn btn-default btn-lg disabled">Link</a>
</body>
</html>
We use .disabled
as a utility class here,
similar to the common .active class, so no prefix is required.