在做按钮的时候,怎么给按钮加上漂亮的背景图片呢,这里提供一种解决方法。
首先我们定义一个样式吧。
.bottom{border:none;background:url(../images/bottom.jpg) left top no-repeat;width:80px; height:24px; color:#fff; font-size:12px; display:block; line-height:24px;}
然后在写input的时候调用下样式就可以了,如:
<input type="submit" class="bottom">
就可以了
谢谢,又学习到了一小招。