嘿,我在 HTML 中有刷新按钮,我想在单击该按钮时旋转该按钮上的图像。我使用 css 创建了如下效果:
input.button_refresh {
margin-left: 600px;
background: url("../images/refresh.JPG") 0 0 no-repeat scroll ;
background-position: right;
font-weight: bold;
background-color: rgb(80,140,210);
display: inline-block;
cursor: pointer;
height: 20px; /* height of the background image */
width: 70px; /* width of the background image */
color: threedface;
border-radius: 6em;
}
HTML
<input type="image" name="Refresh" value="Refresh" class="button_refresh" onclick="window.location.reload()" />