< a href ="some_page.html" >< img src ="button.gif" alt ="Button" ></ a >
< input type ="image" src ="button.gif" alt ="Button" >
* This source code was highlighted with Source Code Highlighter .
< span class ="button" >< a href ="#"> Button </ a ></ span >
<!---->
< span class ="button" onClick ="alert(1);" >< b > Button </ b ></ span >
<!---->
< p >< span class ="button" >< input type ="button" value =" Button " ></ span ></ p >
<!---->
< span class ="button" >< a href ="#" >< img src ="i-article.gif" alt ="" > Button </ a ></ span >
* This source code was highlighted with Source Code Highlighter .
<!--[if lte IE 6]>
<style type="text/css">
body {
behavior:url("csshover2.htc");
font-size:16px;
}
</style>
<![endif]-->
< style type ="text/css" >
.button {
display:inline-block;
line-height:22px;
padding:0 11px 0 0;
background:url(bg-button-r.gif) right 0 no-repeat;
cursor:pointer;
}
.button a, .button b, .button input {
display:inline-block;
padding:0 0 0 11px;
font-family:Arial;
font-size:13px;
font-weight:normal;
color:#000;
text-decoration:none;
outline:none;
background:url(bg-button-l.gif) 0 0 no-repeat;
border:none;
cursor:pointer;
}
.button input {
height:22px;
}
.button img {
vertical-align:middle;
border:none;
}
.button:hover {
background-position:100% -22px;
}
.button:hover a, .button:hover b, .button:hover input {
background-position:0 -22px;
margin:0;
padding:0 0 0 11px;
}
.button:active {
background-position:100% -44px;
}
.button:active a, .button:active b, .button:active input {
background-position:0 -44px;
}
</ style >
* This source code was highlighted with Source Code Highlighter .
<span class = "button"> <input type = "button" value = "button"> </ span>, so far I have not won it.
Source: https://habr.com/ru/post/56389/
All Articles