我正在创建一个Safari扩展程序,其中包含一些链接。但是点击时链接不会打开,有人知道如何使用吗?
这是我的弹出文件样本
<body>
<div id="container" class="clr">
<a target="_blank" href="https://www.apple.com/" class="app-btn">
<div class="btn-icon-container">
<div class="btn-border"></div>
<img src="apple.png" alt="Apple">
</div>
<div class="btn-text-container" style="width:46px;left:14px;">
<span class="ban-text">Apple</span>
</div>
</a>
<a target="_blank" href="http://nytimes.com/" class="app-btn">
<div class="btn-icon-container">
<div class="btn-border"></div>
<img src="nytimes.png" alt="NyTimes">
</div>
<div class="btn-text-container" style="width:78px;left:-2px;">
<span class="ban-text">NyTimes</span>
</div>
</a>
<a target="_blank" href="http://stackoverflow.com/" class="app-btn">
<div class="btn-icon-container">
<div class="btn-border"></div>
<img src="stackoverflow.png" alt="StackOverflow">
</div>
<div class="btn-text-container" style="width:80px;left:-3px;">
<span class="ban-text">StackOverflow</span>
</div></div></body>