We would like to know how to turn anchor to button.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.link_class {<!--from w ww . ja va2s . c om-->
width: 150px;
height: 30px;
color: #fff;
text-align: center;
display: block;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background: #000;
text-decoration: none;
line-height: 30px;
}
</style>
</head>
<body>
<a class="link_class" href="http://www.java2s.com">My Link</a>
</body>
</html>
The code above is rendered as follows: