Home  >  Article  >  Web Front-end  >  js实现按钮加背景图片常用方法_javascript技巧

js实现按钮加背景图片常用方法_javascript技巧

WBOY
WBOYOriginal
2016-05-16 16:32:181735browse

本文实例讲述了js实现按钮加背景图片常用方法。分享给大家供大家参考。具体实现方法如下:

方法一:

复制代码 代码如下:

 
方法二:
复制代码 代码如下:

 
方法三:
就是用图片按钮,即:
复制代码 代码如下:

希望本文所述对大家基于javascript的web程序设计有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn