2 Star 0 Fork 0

hanwei59 / bootstrap-tabx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
demo.html 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
hanwei 提交于 2013-10-31 16:50 . init
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="http://pic.ofcard.com/bootstrap/css/bootstrap.min.css" media="all" />
<script type="text/javascript" src="http://pic.ofcard.com/jslib/jquery/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="http://pic.ofcard.com/jslib/jquery/frame/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap-tabx.css"/>
<script type="text/javascript" src="js/bootstrap-tabx.js"></script>
<script type="text/javascript">
$(function(){
$(".nav-tabs").tabx();
$('.nav-list a').click(function (e) {
e.preventDefault();
$(".nav-tabs").tabx("add",{
id : $(this).attr("href").substr(1),
title: $(this).text(),
href: $(this).attr("link")
});
});
});
</script>
</head>
<body>
&nbsp;
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
<ul class="nav nav-list">
<li><a href="#tab3" link="http://www.ofpay.com">欧飞网</a></li>
<li><a href="#tab4" link="http://www.qianmi.com">千米网</a></li>
<li><a href="#tab5" link="http://www.gonghuo.com">供货网</a></li>
</ul>
</div>
<div class="span10">
<ul class="nav nav-tabs">
<li class="active"><a href="#home">首页</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="home">这是一个静态标签页。</div>
</div>
</div>
</div>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hanwei59/bootstrap-tabx.git
git@gitee.com:hanwei59/bootstrap-tabx.git
hanwei59
bootstrap-tabx
bootstrap-tabx
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891