Jquery选项卡 - 使用外部URL链接 [英] Jquery Tabs - Using External URL link

查看:132
本文介绍了Jquery选项卡 - 使用外部URL链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jquery UI标签,并有一个问题。

I'm using the Jquery UI Tabs, and have a question.

<div id="ui-tabs">
    <ul>
        <li><a href="#tab-1"><span>My First Tab</span></a></li>
        <li><a href="#tab-2"><span>My Second Tab</span></a></li>
        <li><a href="http://www.someothersite.com/"><span>My Third Tab</span></a></li>
    </ul>
</div>

是否可以让第三个标签实际上关闭单击时的网站URL?我尝试了这个,但链接被忽略了,所以我不确定我是否做错了,或者说是不可能写的。

Is it possible to get that third tab to actually go to the off-site URL when clicked? I tried this, but the link was ignored, so I'm not sure if I've done something wrong, or if it's just not possible as written.

谢谢你提前。

推荐答案

它不漂亮但是这个有效

    <li><a href="#tabs-3"><a href="http://espn.com">ESPN</a></a></li>

示例在这里 http://codepen.io/martypowell/pen/leGaz

这篇关于Jquery选项卡 - 使用外部URL链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆