开发者

set a background image to be clickable [duplicate]

开发者 https://www.devze.com 2023-03-31 17:32 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How can I make a background clickable
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

精彩评论

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

关注公众号