开发者

set a background image to be clickable [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How can I make a background clickable

I want to have a clickable background image. but I am not able to do that. the problem is when i use

<div id="wrapper" class="bigshadow" style="background-color:  #fff url(/affiliate/uploads/images/image.gif) no-repeat right top"></div>

the image is not clickable. when i use

<a style=float:right href="google.com"><img src="/affiliate/uploads/images/image.gif" /></a>

the image does开发者_如何学编程n't set as a back ground. much appreciate for any help


Set your a to display: block, height, width and background image.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜