如何使href链接在safari扩展弹出窗口中工作

时间:2015-10-29 19:57:55

标签: javascript jquery html safari safari-extension

我正在创建一个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>

0 个答案:

没有答案