<input
type="submit"
value="" style="background-image: url('images/button_search.gif'); width: 70px; height: 21px; border: 0px;"
/>
注:其中长宽设置就是图片的长和宽了。
[img]http://dl.iteye.com/upload/attachment/600033/4855e343-f6b4-3f00-8c2b-7e8467996787.jpg[/img]
本文介绍了一种使用背景图片来设计按钮的方法,并通过具体的HTML代码示例展示了如何设置按钮的尺寸以匹配图片的长和宽。
8406

被折叠的 条评论
为什么被折叠?



