简体   繁体   English

图像中的关闭按钮的锚标签在野生动物园中不起作用

[英]Anchor tag for close button at image not working in safari

I have a close tag for an image which is working 100% ok with all other browser except Safari following is the exact code. 我有一个图像的关闭标签,该图像与所有其他浏览器都可以100%正常工作,但Safari以下是确切的代码。

<div id="click" style="position: absolute; bottom: px; right: 9px; top: 2px; z-index: 201">
<div>
<a onclick="document.AdCheckClick1();" href="javascript:void(0)" target="_self">
    <img border="0" src="lhttp://www3.boago.com/SellBranch/Boomerang/se/close.png">
</a>
</div>

Can any one please guide me what is the issue 谁能指导我这是什么问题

If it works in other browsers except Safari, try using button instead: 如果它可以在Safari以外的其他浏览器中使用,请尝试使用button代替:

<button onclick="document.AdCheckClick1();" type="button" class="close-btn">
  <img border="0" src="http://www3.boago.com/SellBranch/Boomerang/se/close.png">
</button>`

And the CSS: 和CSS:

.close-btn {
  -webkit-appearance: button;
  background-color: transparent;
  color: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  display: inline-block;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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