How to make an empty anchor tag clickable in IE7?

前端 未结 4 2039
情书的邮戳
情书的邮戳 2020-12-13 15:44

I need to make an area within a background image clickable to generate an event for JavaScript use. So, I created an anchor tag and inside that I inserted some relevant text

4条回答
  •  庸人自扰
    2020-12-13 16:08

    Make a DIV clickable instead. If it's calling JavaScript, you don't need an anchor tag at all.

    You can absolutely position if if needed.

提交回复
热议问题