项目中用到了Bootstrap的(Tab)标签页插件,记录如下:
代码如下:
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#第一个id" data-toggle="tab">选项一</a></li> //第一个选项,
//href 对应第7行的id
<li><a href="#第二个id" data-toggle="tab">选项二</a></li> //第二个选项
//href 对应第10行的id
</ul>
<div class="tab-content">
<div class="tab-pane active" id="第一个id"> //第一页
文字一
</div>
<div class="tab-pane" id="第二个id"> //第二页
文字二
</div>
</div>
</div>
效果如下:
初始化时为下图:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABHUAAAB4CAIAAADzIVm3AAAH1UlEQVR4nO3dT2tb2RnA4fla+Q7dx/vsuqgXAeMvEO9MVzZkEQoppnipgjElmBYSMYwXiWIy0KlNoZjWRUHgGwVZErrSLGRd65+tq/G5ts718/AuElma2Idk0I9zde4Pg0X6/X6apr1er9vtdjqddrt9FZt2u93pdLrdbq/XS9O03+8v/KkBAACW9cPCZ/T7/V6v1+l0Wq1Ws9lMkuQyNkmSNJvNVqvV6XR6vZ6+AgAAirC4r9I07Xa7rVYrSZJGo1Gv1/8fm3q93mg0kiRptVrdbjdN0wdYWQAA4KlZ0FfZ5lWz2Ww0GhcXF+fn5/+Jzfn5+cXFRaPRaDabtrAAAICC5OqrdrudJMkf/vzj7/54FO/8/k/VJEna7ba+AgAAipCrr66uri4vL//yjy+P3kj3mb/++M+/ffj0959+fv/xlw+fTqu1s+jmYf5OAAAAv80SfRX7+/tq7axerw8/hTU8UTAusa8/AACUnr6KRuzrDwAApaevohH7+gMAQOnpq2jEvv4AAFB6+ioasa8/AACUnr6KRuzrDwAApaevohH7+gMAQOnpq2jEvv4AAFB6+ioasa8/AACUnr6KRuzrDwAApVdEX73berF7MPrNwfbLrcPB4GR/fXP/810vefl8Ztbffsn3J+aSu6+OK68rx1O/OT3a2zs6veslc9z1Cn0FAAClU8z+1eHu8+uaGrXWTF8dbI+l1Pa7mReGt8T+1XFl1Eaj1prpq4miynLs5oXh6SsAAFh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USCmoouFXn2q1tTlqSkoBAEwhpaBSLm4GNXZVX/GRCVNTao67T7kMEAAoNSkFFTG8oO/aYrpoo7H6uawlSQQAUCClAAAAgkkpAACAYFIKAAAgmJQCAAAIJqUAAACCSSkAAIBgUgoAACCYlAIAAAgmpQAAAIJJKQAAgGBSCgAAIJiUAgAACCalAAAAgkkpAACAYFIKAAAgmJQCAAAIJqUAAACCSSkAAIBgUgoAACDYbVLKGGOMMcYYY0xYSgEP7GegSpb9Tw4AtyelIC7+awXV4e87wEqTUhAX/7WC6vD3HWCl/R+j4X/ugpSs5AAAAABJRU5ErkJggg==" alt="" />
Bootstrap文字教程地址:http://www.uedsc.com/bootstrap-page-header.html
重要的事情说三遍:
欢迎指出错误和不对的地方,以及提出建议,我会及时更新在博客里!
欢迎指出错误和不对的地方,以及提出建议,我会及时更新在博客里!
欢迎指出错误和不对的地方,以及提出建议,我会及时更新在博客里!