61,112
社区成员
发帖
与我相关
我的任务
分享
<input type="button" id="btn" style="width:276px; height:100px;" value="点击后改变背景图片" />
<script type="text/javascript">
document.getElementById('btn').onclick = function() {
this.style.backgroundImage = "url(http://www.google.com.hk/intl/zh-CN/images/logo_cn.png)";
}
</script>