代码我在JSP中使用是如何使一个按钮的研究背景图像resonsive
<button class="refresh" onclick="javascript:regenImage();" type="button"></button>
CSS我用它来把图像上的那个按钮是
.refresh{
background-color: transparent;
background-image: url("../images/sp_out.png");
background-repeat: no-repeat;
height: 40px;
width: 43px;
}
通过使用图像是没有得到响应,请帮我出
你这是什么意思响应。在这里,你的宽度和高度是固定的按钮。 – 2015-04-01 09:00:21
对于你的onclick,它应该是'onclick =“regenImage();”' – Raptor 2015-04-01 09:01:29
图像大小根据屏幕大小设置..... – 2015-04-01 09:01:31