简体   繁体   中英

transparent background image link

How do i make my transparent gif image a link which the link won't respond if press the transparent part?

<a href="{storeurl}?act=viewDoc&docId=1"><img src="skins/sunlift/styleImages/navbar_pic/leafshape.gif></a>

Any ideas?

<img src="skins/sunlift/styleImages/navbar_pic/leafshape.gif>
            here is the problem ----------------------------^-- there should be "

should be

 <img src="skins/sunlift/styleImages/navbar_pic/leafshape.gif">

............................................................

hi now give to your anchor link display properties as like this

a{
display:inline-block;
vertical-align:top;
}

because a is inline block element

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM