About modals

A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.

Download file

Static example

Below is a statically rendered modal.

Live demo

Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.

Launch demo modal

Using bootstrap-modal

Call the modal via javascript:

$('#myModal').modal(options)

Options

Name type default description
backdrop boolean true Includes a modal-backdrop element. Alternatively, specify static for a backdrop which doesn't close the modal on click.
keyboard boolean true Closes the modal when escape key is pressed
show boolean true Shows the modal when initialized.

Markup

You can activate modals on your page easily without having to write a single line of javascript. Just set data-toggle="modal" on a controller element with a data-target="#foo" or href="#foo" which corresponds to a modal element id, and when clicked, it will launch your modal.

Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.

<a class="btn" data-toggle="modal" href="#myModal" >Launch Modal</a>
<div class="modal hide" id="myModal">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>Modal header</h3>
  </div>
  <div class="modal-body">
    <p>One fine body…</p>
  </div>
  <div class="modal-footer">
    <a href="https://h.yaonang.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://q.yaonang.cn/" class="btn btn-primary">Save changes</a>
  </div>
</div>
Heads up! If you want your modal to animate in and out, just add a .fade class to the .modal element (refer to the demo to see this in action) and include bootstrap-transition.js.

Methods

.modal(options)

Activates your content as a modal. Accepts an optional options object.

$('#myModal').modal({
  keyboard: false
})

.modal('toggle')

Manually toggles a modal.

$('#myModal').modal('toggle')

.modal('show')

Manually opens a modal.

$('#myModal').modal('show')

.modal('hide')

Manually hides a modal.

$('#myModal').modal('hide')

Events

Bootstrap's modal class exposes a few events for hooking into modal functionality.

Event Description
show This event fires immediately when the show instance method is called.
shown This event is fired when the modal has been made visible to the user (will wait for css transitions to complete).
hide This event is fired immediately when the hide instance method has been called.
hidden This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).
$('#myModal').on('hidden', function () {
  // do something…
})


This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.

Download file

Example tabs

Click the tabs below to toggle between hidden panes, even via dropdown menus.

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.


Using bootstrap-tab.js

Enable tabbable tabs via javascript (each tab needs to be activated individually):

$('#myTab a').click(function (e) {
  e.preventDefault();
  $(this).tab('show');
})

You can activate individual tabs in several ways:

$('#myTab a[href="#profile"]').tab('show'); // Select tab by name
$('#myTab a:first').tab('show'); // Select first tab
$('#myTab a:last').tab('show'); // Select last tab
$('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)

Markup

You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element. Adding the nav and nav-tabs classes to the tab ul will apply the bootstrap tab styling.

<ul class="nav nav-tabs">
  <li><a href="#home" data-toggle="tab">Home</a></li>
  <li><a href="#profile" data-toggle="tab">Profile</a></li>
  <li><a href="#messages" data-toggle="tab">Messages</a></li>
  <li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>

Methods

$().tab

Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM.

<ul class="nav nav-tabs" id="myTab">
  <li class="active"><a href="#home">Home</a></li>
  <li><a href="#profile">Profile</a></li>
  <li><a href="#messages">Messages</a></li>
  <li><a href="#settings">Settings</a></li>
</ul>
<div class="tab-content">
  <div class="tab-pane active" id="home">...</div>
  <div class="tab-pane" id="profile">...</div>
  <div class="tab-pane" id="messages">...</div>
  <div class="tab-pane" id="settings">...</div>
</div>
<script>
  $(function () {
    $('#myTab a:last').tab('show');
  })
</script>

Events

Event Description
show This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
shown This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
$('a[data-toggle="tab"]').on('shown', function (e) {
  e.target // activated tab
  e.relatedTarget // previous tab
})

About Tooltips

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use css3 for animations, and data-attributes for local title storage.

Download file

Example use of Tooltips

Hover over the links below to see tooltips:

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.


Using bootstrap-tooltip.js

Trigger the tooltip via javascript:

$('#example').tooltip(options)

Options

Name type default description
animation boolean true apply a css fade transition to the tooltip
placement string|function 'top' how to position the tooltip - top | bottom | left | right
selector string false If a selector is provided, tooltip objects will be delegated to the specified targets.
title string | function '' default title value if `title` tag isn't present
trigger string 'hover' how tooltip is triggered - hover | focus | manual
delay number | object 0

delay showing and hiding the tooltip (ms) - does not apply to manual trigger type

If a number is supplied, delay is applied to both hide/show

Object structure is: delay: { show: 500, hide: 100 }

Heads up! Options for individual tooltips can alternatively be specified through the use of data attributes.

Markup

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

<a href="https://26nno.yaonang.cn/" rel="tooltip" title="first tooltip">hover over me</a>

Methods

$().tooltip(options)

Attaches a tooltip handler to an element collection.

.tooltip('show')

Reveals an element's tooltip.

$('#element').tooltip('show')

.tooltip('hide')

Hides an element's tooltip.

$('#element').tooltip('hide')

.tooltip('toggle')

Toggles an element's tooltip.

$('#element').tooltip('toggle')

About popovers

Add small overlays of content, like those on the iPad, to any element for housing secondary information.

* Requires Tooltip to be included

Download file

Example hover popover

Hover over the button to trigger the popover.


Using bootstrap-popover.js

Enable popovers via javascript:

$('#example').popover(options)

Options

Name type default description
animation boolean true apply a css fade transition to the tooltip
placement string|function 'right' how to position the popover - top | bottom | left | right
selector string false if a selector is provided, tooltip objects will be delegated to the specified targets
trigger string 'hover' how tooltip is triggered - hover | focus | manual
title string | function '' default title value if `title` attribute isn't present
content string | function '' default content value if `data-content` attribute isn't present
delay number | object 0

delay showing and hiding the popover (ms) - does not apply to manual trigger type

If a number is supplied, delay is applied to both hide/show

Object structure is: delay: { show: 500, hide: 100 }

Heads up! Options for individual popovers can alternatively be specified through the use of data attributes.

Markup

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

Methods

$().popover(options)

Initializes popovers for an element collection.

.popover('show')

Reveals an elements popover.

$('#element').popover('show')

.popover('hide')

Hides an elements popover.

$('#element').popover('hide')

.popover('toggle')

Toggles an elements popover.

$('#element').popover('toggle')

About alerts

The alert plugin is a tiny class for adding close functionality to alerts.

Download

Example alerts

The alerts plugin works on regular alert messages, and block messages.

Holy guacamole! Best check yo self, you're not looking too good.

Oh snap! You got an error!

Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

Take this action Or do this


Using bootstrap-alert.js

Enable dismissal of an alert via javascript:

$(".alert").alert()

Markup

Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.

<a class="close" data-dismiss="alert" href="https://26nno.yaonang.cn/">&times;</a>

Methods

$().alert()

Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.

.alert('close')

Closes an alert.

$(".alert").alert('close')

Events

Bootstrap's alert class exposes a few events for hooking into alert functionality.

Event Description
close This event fires immediately when the close instance method is called.
closed This event is fired when the alert has been closed (will wait for css transitions to complete).
$('#my-alert').bind('closed', function () {
  // do something…
})

About

Do more with buttons. Control button states or create groups of buttons for more components like toolbars.

Download file

Example uses

Use the buttons plugin for states and toggles.

Stateful
Single toggle
Checkbox
Radio

Using bootstrap-button.js

Enable buttons via javascript:

$('.nav-tabs').button()

Markup

Data attributes are integral to the button plugin. Check out the example code below for the various markup types.

<!-- Add data-toggle="button" to activate toggling on a single button -->
<button class="btn" data-toggle="button">Single Toggle</button>
<!-- Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group -->
<div class="btn-group" data-toggle="buttons-checkbox">
  <button class="btn">Left</button>
  <button class="btn">Middle</button>
  <button class="btn">Right</button>
</div>
<!-- Add data-toggle="buttons-radio" for radio style toggling on btn-group -->
<div class="btn-group" data-toggle="buttons-radio">
  <button class="btn">Left</button>
  <button class="btn">Middle</button>
  <button class="btn">Right</button>
</div>

Methods

$().button('toggle')

Toggles push state. Gives the button the appearance that it has been activated.

Heads up! You can enable auto toggling of a button by using the data-toggle attribute.
<button class="btn" data-toggle="button" >…</button>

$().button('loading')

Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.

<button class="btn" data-loading-text="loading stuff..." >...</button>
Heads up! Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".

$().button('reset')

Resets button state - swaps text to original text.

$().button(string)

Resets button state - swaps text to any data defined text state.

<button class="btn" data-complete-text="finished!" >...</button>
<script>
  $('.btn').button('complete')
</script>

About

Get base styles and flexible support for collapsible components like accordions and navigation.

Download file

* Requires the Transitions plugin to be included.

Example accordion

Using the collapse plugin, we built a simple accordion style widget:

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.

Using bootstrap-collapse.js

Enable via javascript:

$(".collapse").collapse()

Options

Name type default description
parent selector false If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior)
toggle boolean true Toggles the collapsible element on invocation

Markup

Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.

<button class="btn btn-danger" data-toggle="collapse" data-target="#demo">
  simple collapsible
</button>
<div id="demo" class="collapse in"> … </div>
Heads up! To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.

Methods

.collapse(options)

Activates your content as a collapsible element. Accepts an optional options object.

$('#myCollapsible').collapse({
  toggle: false
})

.collapse('toggle')

Toggles a collapsible element to shown or hidden.

.collapse('show')

Shows a collapsible element.

.collapse('hide')

Hides a collapsible element.

Events

Bootstrap's collapse class exposes a few events for hooking into collapse functionality.

Event Description
show This event fires immediately when the show instance method is called.
shown This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).
hide This event is fired immediately when the hide method has been called.
hidden This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).
$('#myCollapsible').on('hidden', function () {
  // do something…
})


About

A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.

Download file

Example

Start typing in the field below to show the typeahead results.


Using bootstrap-typeahead.js

Call the typeahead via javascript:

$('.typeahead').typeahead()

Options

Name type default description
source array [ ] The data source to query against.
items number 8 The max number of items to display in the dropdown.
matcher function case insensitive The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.
sorter function exact match,
case sensitive,
case insensitive
Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.
highlighter function highlights all default matches Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.

Markup

Add data attributes to register an element with typeahead functionality.

<input type="text" data-provide="typeahead">

Methods

.typeahead(options)

Initializes an input with a typeahead.

长葛网站建设太原优化营销网页设计中网站上面的元素一个个跳出来像放幻灯片一样js加强个人网络安全意识用于演示的信息安全产品,-1信息安全保证人员认证(简称cisaw)无锡网站制作哪家强全球著名网络安全事件中山 网站制作国家网络安全报告网络安全基本技术青岛高端网站设计他一人一剑,可诛天、杀神、斩妖、灭魔、镇佛!可他宁愿要一把木剑,也不肯拿这把剑成为至尊……诸神黄昏,人神魔三间大战, 一剑斩星辰,一眼灭神帝,乱世之中,谁是英雄。 少年正缓缓苏醒……异世大陆,强者为尊。 少年陆泽惨遭背叛,却意外获得无上神功,从此龙游苍穹,鹰翱九霄。 杀圣子,灭天骄,夺造化,逆天改命,强势崛起! 一步一登天! 一路披荆斩棘,一剑破万法! 高歌猛进,无所不克,一直走到巅峰。好几亿年前,不知哪一个年代,哪一个世纪。据说,奇妙的老虎是非常的有灵性,会说也能听得懂人类的语言。这部短篇小说讲述了,老虎和小姑娘的故事。我,陈益,带着系统穿越电影世界,。。。。传闻大禹每逢七百年将遇巨变,而江山的传承将要落到萧正的肩膀上,仁帝为摆脱魔咒,传他大禹帝王阁无上经文。而后上青云峰入玲珑观,得‘机缘道人’点拨,心智也变得成熟。待到一切安排就绪,美人在怀,情丝渐深。朝堂和江湖的纷乱也逐渐露出了端倪......杨凌两耳不闻窗外事,喜欢活在自己的世界,不想招惹外面的是是非非。 自从准岳父被人一句‘刀下留人’所伤后,开启了无奈的征战之旅。 (本书没有金手指,没有系统,非无敌,一切都靠自己。) 独孤家族以无相功法称誉武林,但是遭到奸人所害,家破人亡,只留下独孤颖,后来独孤颖一步一步找出当年暗算父亲的真凶,终为家族报仇雪恨。【灵异、悬疑、惊悚、探险、宠物、系统、游戏、搞笑】 废弃的别墅,消失的山村,黑暗的血楼…… 人头蜘蛛,红衣厉鬼,浑身是手的怪物…… 在这个深夜的恐怖世界里,王尊稳如老狗,遇人先问娘,杀鬼必扬灰,万事只求一个安稳! 别人还恐惧在诡异怪谈中时,王尊在惊悚游戏世界里杀疯了。赴京赶考,少年被劫匪拦路掉落悬崖,获得仙尊宝藏,一步一步走向的顶端。谱写世界的新规则。
网络安全管理实践 上海市信息安全测评中心,-1 网络信息安全调查报告 网络信息安全政策 分类营销 网站速成 信息安全资质认证申请,-1 清华网络安全培训班 成都建设网站 青岛高端网站设计 亲子关系的前世记忆咨询【www.richdady.cn】 自闭症的治疗方法【www.richdady.cn】 为什么过世【www.richdady.cn】 失业【www.richdady.cn】 精神不振的心理调适咨询【www.richdady.cn】 财运不佳咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 儿子不读书的案例分享咨询【企鹅383550880】√转ihbwel 感情纠纷的前世因果威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 感情问题咨询专家威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 孩子不爱读书的家长引导咨询【www.richdady.cn】√转ihbwel 大龄剩女咨询【企鹅383550880】√转ihbwel 升职加薪的障碍分析咨询【微:qq383550880 】√转ihbwel 前世今生对现世的影响【σσЗ8З55О88О√转ihbwel 前世老婆的前世缘分咨询【企鹅383550880】√转ihbwel 祖灵的超度仪式咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 祖灵的存在形式咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 人际关系不好【微:qq383550880 】√转ihbwel 存不住钱的自我提升咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 失业的前世因果【www.richdady.cn】√转ihbwel 家庭关系的情感维护方法有哪些?威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 国家信息安全一级资质 网站建设入门 如何利用网络平台营销 微信营销顾名思义 营销教程 2016国内网络安全事件 营销策划部 梁山做网站 蒙牛网络营销 信息安全保护条例 智能营销系统正规么 青岛高端网站设计 比较好的网络营销平台 成都建设网站 汉中网站建设 潼南网站建设 营销科技 南宁信息安全测评中心 网络营销是什么行业 信息安全网址 seosem病毒营销长尾理论详解 关于加强国家电子政务工程建设项目信息安全风险评估工作的通知 2016网络安全湖南峰会 网络招生和营销方案 绿盟信息安全科技公司 营销策划部 电商营销存在的问题及对策 上海市信息安全测评中心,-1 网络整合营销公司方案 游戏营销环境分析报告 网站教程 信息安全条款 搜索引擎营销待遇 中国信息安全平台 网络营销怎么实施 网络营销定价的基础 网络营销功能建议 国家信息安全一级资质 正定网站建设网络安全相关技术 机械行业营销型网站 六安做网站 网站建设入门 太原全网营销服务商 第三届全国信息安全等级保护技术大会 广州网站推广 信息安全管理协同体系 网络安全管理需要什么 网站 云建站 设计优秀的企业网站 专业柳州网站建设 专业营销执行公司 网络营销是什么行业 信息安全等保认证 营销教程 杭州信息安全公司 信息安全核心 优秀企业网站设计 南昌网站定制 上海营销app产品公司 微信营销与推广公司有哪些 网络营销难不 营销策划部 全球大学信息安全排名 优秀企业网站设计 信息安全条款 梁山做网站 厦门企业官方网站建设 网络营销学习资讯 第三届全国信息安全等级保护技术大会 网络安全机构分支机构 实用网络营销教程 北京网站建设公司电话 免费个人网站申请 广西网站建设公司 企业营销方案 国家网络安全报告 网站怎么吸引人 网站制作内联框 网络信息安全调查报告 蒙牛网络营销 信息安全相关单位,-1 信息安全条款 武汉营销型网站 网站类型网站名称表现主题内容设计色彩搭配服务对象综合网站个人网站 福建网站建设 电商网站seo 互联网推广与营销的区别 如何利用网络平台营销 信息安全保护条例 用于演示的信息安全产品,-1 汕头建设网站国际网络安全 手机版商城网站都有哪 些功能 做网站团队 广州网站推广 品牌营销特征 信息安全保护条例 网络营销学习资讯 网络信息安全政策 四川网络安全案例 网络安全与技术 网络营销成本包括哪些 口碑营销公司 汉中网站建设 网络立体营销 企业营销方案 网络安全专项治理评估 好的信息安全论坛 沧州网站备案 天津 企业网站建设 网站 设计 深圳 大连网站建设 营销科技 信息安全测评机构 资质 金融营销的网站设计案例 信息安全等保认证 网站怎么吸引人 邢台网站建设服务 网络营销的交互性 如何利用网络平台营销 网络信息安全产品 南宁信息安全测评中心 信息安全 一级 中山 网站制作 比较好的网络营销平台 网站教程 百度知识营销广告 分类营销 品牌营销特征 二维码营销 信息安全的课程 成都建设网站 怎样建立自己的个人网站网络安全管理人员 网络营销的职能关系 汽车网络营销标题 搜索引擎营销待遇