在css样式里面给背景图片加连接

在css样式里面给背景图片加连接

直接在图片的img的属性onclick上写上"window.open("你的url地址")",这样就可以点击图片在新窗口中打开链接。如果你想在当前页面中打开,就直接用window.location.h
html-css120