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://8Vx.zuocu.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://IHMf.zuocu.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://btdh.zuocu.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://btdh.zuocu.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.

优优营销软件站联想 信息安全信息安全顾问专业能力电器微博营销策划书支付宝营销策划案例广州顶尖网络推广营销方案关于网络安全协议搜索引擎营销理论基础信息安全服务高级工程师网站的维护秦凡为救老婆,不得已暴露自身能看到宝物气息的能力,不断捡漏,只要是宝物,在秦凡的眼中都无所遁形,因此引起各方势力的注意,破真伪,看人心,鉴宝捡漏,玩转人生……樱花落在玫瑰园里,一场伺机而动的较量即将开始。这个世界,有妖邪,有邪灵,有儒士,有巫士,也有驱魔人。 在云州只担心妖魔吃人,而这上京,完全是一个吃人都不吐骨头的地方。 5年后的梁万里终于选择进京,发现这个世界比他原本想象的还要复杂。丧尸病毒席卷全球,一夜之间,全球近八成人类被感染为丧尸,世界末日降临。 秩序与人性崩碎,管你是什么明星还是富豪,在这个末世,人们眼中只有食物与生存! 社会底层小平民陈浩北,成功觉醒系统,可系统竟然是一条哈士奇? 真就开局一条狗,装备全靠捡? 危机时刻,二哈穿越武侠世界,捡武林秘籍《小李飞刀》归来。 小李飞刀,见血封喉,例无虚发!丧尸压根无法近身,便被飞刀击毙! 飞刀技能不够炫酷,二哈,你再去火影世界看看,能不能捡来螺旋丸,或者去漫威世界搞个美队强化药剂! 什么?你搞来了几把激光枪?还有电磁炮? 还是你比较狗……还是你会玩啊! 且看手持二哈金手指的陈浩北,如何在末世危机下,带领幸存者重塑人类文明辉煌!黑暗降临的那一刻,全世界陷入了混乱……一名特战老兵面对凶残的变异者凭借一把消防斧杀出了重围,行走在满目疮痍的大地,他的伤口在慢慢结痂,基因序列在重新组合,一切才刚刚开始…… 三界至尊因为前世情缘轮回转世,看似太平无事的天地实则暗流汹涌,在梵天,宙斯,如来,奥丁四方神族矛盾重重的情况下,空能否寻得前世爱人,君临天下?叶辰懂医术,会古武,下山后的他,还在幻想着自己逍遥纵横都市,吊打一切不服! 万万没想到,参加自己婚礼的时候,新郎竟然不是他……这里有小说,也有散文、诗歌,汇聚成一部有复杂情感的365个夜晚故事,请您慢慢欣赏。我本是一个公司的小职员,按照公司的指示外派出差,谁曾想到在飞机上一觉醒来后,世界却已经大变样,而这所发生的一切原来早有预言,孤身一人的我,该如何在这新世界生活下去……很黑很黑有个房间孤独的在山上.......
网站图片尺寸 中国网络信息安全展 优优营销软件站 龙岗网站设计 直接营销缺点 国家信息安全评测证书 元站点网络营销方法 信息安全 加强 协调 重庆做网站团队 网络整合营销的特性山科信息安全怎么样 外灵的驱除方法【www.richdady.cn】 解梦的前世影响咨询【www.richdady.cn】 迟缓儿的症状与诊断【www.richdady.cn】 外灵的种类咨询【www.richdady.cn】 外灵干扰咨询【www.richdady.cn】 感情纠纷的前世因果咨询【微:qq383550880 】√转ihbwel 感情纠纷的情感疏导技巧有哪些?咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 事业不顺的心态如何调整?咨询【www.richdady.cn】√转ihbwel 财运不佳的改运技巧咨询【www.richdady.cn】√转ihbwel 忧郁症的预防措施咨询【σσЗ8З55О88О√转ihbwel 财运不佳的前世因果咨询【σσЗ8З55О88О√转ihbwel 人际关系不好【www.richdady.cn】√转ihbwel 祖灵的存在形式咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 心理咨询与灵性指导咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 存不住钱的案例分享咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 纠纷的原因分析【微:qq383550880 】√转ihbwel 事业不顺【σσЗ8З55О88О√转ihbwel 儿子不读书的咨询技巧咨询【微:qq383550880 】√转ihbwel 家庭关系的沟通技巧有哪些?咨询【σσЗ8З55О88О√转ihbwel 邪灵【www.richdady.cn】√转ihbwel 网络安全等级测评网站建设网站 信息安全和管理中心 信息安全服务资质安全工程 网络安全产品国外品牌 网站设计总结 南京营销型网站 浙江 网络安全 浙江 网络安全 唐山网站建设报价 北京企业网站开发多少钱 营销推带 成都有信息安全 国家网络安全国家安全 信息安全部讲师,-1 兴化网站制作 无锡网站优化 南昌市做网站的公司 信息安全检测公司排名 互联网与网络安全 企业网络安全拓扑图 信息安全和管理中心 网站怎么做域名实名认证 上海做网站 公司 群发营销 电器微博营销策划书 公司网站规划案例 自己制作网站 怎么弄一个网站 景区网络营销策划方案 信息安全检测公司排名 建网站的步骤 重庆做网站团队 西安网站设计 我需要网站 太原网站建设dweb 搜索引擎营销理论基础 敏感信息安全性 网站优化吧 邮件营销策划方案 网络安全协议 原理 答案 网站jianshe 信息安全技术实验报告 海军工程大学信息安全 网络安全产品国外品牌 公司网站制作 步骤 影楼网络营销 网络安全评估:从漏... 北京企业网站开发多少钱 东莞公司网站制作 网络事件营销方案 营销概念是什么意思 辽宁网站制作中国信息安全公司有哪些 网络营销人才需求 常州专业网站建设公司 温州网站建设案例 信息安全专业企业 网络安全法 2016 techcrunch 国家互联网信息安全 零食网络营销策划方案 营销型网站建设公司 网站的维护 网络整合营销的特性山科信息安全怎么样 国家信息安全评测证书 建网站的步骤 网站知识 长春网站建设 网站设计总结 海军工程大学信息安全 支付宝网络营销成果 杭州建网站 珠海 旅游 网站建设 经典微信营销软文 网络安全保护 景区网络营销策划方案 潍坊网站制作 深圳网站建设电话 长安建网站公司 网站设计公司南京 影楼网络营销 网络营销商 国家互联网信息安全 上海做网站 公司 中国计算机网络安全网 广州产品营销公司 aix 网络安全 温州网站建设案例 网站推广营销 网站jianshe it企业信息安全 新媒体营销外包公司 上海网络安全检测公司 国家网络安全国家安全 深圳专业医疗网站建设 企业网站seo 兴化网站制作 汽车软文营销的案例 元站点网络营销方法 网络安全是什么专业 网络安全是什么专业 行业网络安全培训课程 信息安全审计师 深圳专业医疗网站建设 南昌市做网站的公司 绿色风格的网站 国内网络安全 网站建设 宁夏 网络信息安全投诉 信息安全检测公司排名 黄骅做网站|黄骅网站|黄骅百度优化|黄骅百度推广|黄骅微信|黄骅 敏感信息安全性 网站设计公司南京 建网站要学什么 新媒体营销外包公司 信息安全准入 网站建设规划方案 企业网络安全拓扑图 网络营销职能关系 西安网站制作工作室 北京企业网站开发多少钱 网络安全保护 信息安全服务高级工程师 支付宝营销策划案例 信息安全服务资质安全工程 新闻媒体营销 衡水网站建设供应商 工业控制系统信息安全蓝皮书 手机网站界面设计 国内网站主机 百度验证网站 论述如何提高网络安全 论述如何提高网络安全 网络营销职能关系 群发营销 衡水网站建设供应商 龙岗网站设计