关闭按钮为Twitter Bootstrap3标签 [英] Close Button for Twitter Bootstrap3 Tabs
本文介绍了关闭按钮为Twitter Bootstrap3标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试从这个小提琴追加关闭按钮到Twitter Bootstrap Tabs,但我可以' t正确创建关闭按钮。这是我的 jsbin 代码。我怎么能结束。我尝试创建一个
标签,但标签使我的链接块级别,当我有一个li中的2链接。
I try to follow from this fiddle to adding close button to Twitter Bootstrap Tabs but i can't create a close button correctly.this is my jsbin codes. how can i make a close. i try to create with a
tag but tabs make my link block level when i have 2 link in one li.
<ul class="nav nav-tabs">
<li class="active"><a href="#">Tab 1 <button><i class="fa fa-times"></i></button></a> </li>
<li><a href="#">Tab 2</a></li>
<li><a href="#">Tab 3</a></li>
</ul>
解决方案
我忘了为按钮插入 class =close
,所以正确的是:
I forget to insert class="close"
for button so the correct is :
<button class="close"><i class="fa fa-times"></i></button>
推荐答案
关闭到按钮。
You need to add class close
to the button.
这篇关于关闭按钮为Twitter Bootstrap3标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文