点击图片换另一个图片
<script>$(function(){$("#h1").toggle(function(){$("#h1").css("background-image","url(...
<script>
$(function(){
$("#h1").toggle(function(){
$("#h1").css("background-image","url('images/banjiquan_01.png')");
},function(){
$("#h1").css("background-image","url('images/banjiquan_05.png')");
})
})
</script>
<input type="button" id="h1" class="hh1" />
<style>
.hh1{
background: url("images/banjiquan_05.png");
width: 120px;
height: 90px;
}
</style>
现在不能点击怎么回事 展开
$(function(){
$("#h1").toggle(function(){
$("#h1").css("background-image","url('images/banjiquan_01.png')");
},function(){
$("#h1").css("background-image","url('images/banjiquan_05.png')");
})
})
</script>
<input type="button" id="h1" class="hh1" />
<style>
.hh1{
background: url("images/banjiquan_05.png");
width: 120px;
height: 90px;
}
</style>
现在不能点击怎么回事 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询