日期:2014-05-17  浏览次数:20615 次

请教大家一个问题,我要在一个背景图片上做连接,如何弄?或者别的办法?
或者在这个表格插入这个图片当背景来做连接  


------解决方案--------------------
背景不能链接,除非上面有什么东西,或者是空白的div块什么的


http://bolm.cn
------解决方案--------------------
可以给table或td加onclick做链接
------解决方案--------------------
<table width= "1000 " cellpadding= "0 " cellspacing= "0 " align= "center " border= "0 "
<tr>
<td height= "110 ">
<map name= "map1 ">
<area shape= "rect " target= "_blank " coords= "474,22,977,114 " href= "index.asp "/>
<area shape= "rect " target= "_blank " coords= "50,24,200,117 " href= "# " />
</map>
<img src= "1.jpg " width= "1000 " usemap= "#map1 " border= "0 "> </td>
</tr>
</table>
用这个可以连接自己改了,图片换成背景就行了
------解决方案--------------------
假设图片大小 100x100
<style type= "text/css ">
a.bg { background-image: url(/images/a.gif); display: block; height: 100px; width: 100px; }
</style>
<a class= "bg " href= "/index.html "> </a>