如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
如图
代码如下
<script>
$(document).ready(function(){
$(".zf_hover").hover(function(){
var pic = $(this).attr('item')
$(this).css("background-size","cover");
$(this).css("color","#fff");
$(this).css("background","url("+pic+") no-repeat center center");
},function(){
$(this).css("background","white");
$(this).css("background-color","#fff");
});
});
</script>
王明昌博客



