您需要输入不带单词的单词
image。
background: url('/image/btn.png') no-repeat;
两种方法都经过测试,这一方法可行。
例:
<html> <head> <style type="text/css"> .button{ background: url(/image/btn.png) no-repeat; cursor:pointer; border: none; } </style> </head> <body> <input type="button" name="button" value="Search" onclick="showUser()" /> <input type="image" name="button" value="Search" onclick="showUser()" /> <input type="submit" name="button" value="Search" onclick="showUser()" /> </body></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)