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://O.zhenchan.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://gh.zhenchan.com.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://icu35gi.zhenchan.com.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://icu35gi.zhenchan.com.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.

绍兴网站建设深圳信息安全测评中心,-1网络信息安全与保密的威胁有自己创造网站平台国内网络安全大事件搜索引擎营销五个步骤是什么意思2017网络信息安全峰会深圳信息安全公司排名哈尔滨网站建设市场分析各大搜索引擎整合营销关于加强国家电子政务工程建设项目信息安全风险评估工作的通知带着疲惫的身心和仿佛燃尽的灵魂,苍浩回到了家乡,成了地产公司的普通员工,却惊讶的发现上司是自己的青梅竹马……都市商场,杀机陡现,神秘敌人暗中潜伏,且看苍浩如何突出重围。这不是最美好的世界,但这是一部热血逆袭,用双手创造一个理想年代。大二混子在通宵打游戏两天后猝死,以下是他的身体发生的变化(误)。重生在修真界,这次,我也要努力地当一个混子!林峰本是一个热衷于NBA的球迷,一次偶然的机会却让他加盟了NBA,无意中获得了系统步步高升拿下种种荣誉我以凤凰之身斩尽恶人, 我以血肉之躯除尽杀戮。 手握长剑,我便要斩尽那恶,那魔,那鬼,那妖。我,叫做程刚,程是工程的程,刚是刚强的刚为生计打拼的年轻小伙彤正,通过重重艰难险阻,终于赢得安身立命的一席之地,并博得熟女青睐。但受不住堕落的诱惑,最终深陷泥潭。他该如何自省自救?一个怕死的少年,却卷入了一场危机四伏的风波,他能否在变革中存活,让我们拭目以待……一袭黑衣,斗笠遮面,江湖中无人知晓他是何方神圣。只传闻,黑影一掠,便是漫天绯红。 然而江湖之中,纵然无人可敌,却也难逃身不由己的命运。 浮生末世,江湖茫茫,何为天下,何为情……捣蛋捣蛋,鸡蛋不烂,不算好汉。 捣蛋带着满怀的激情,闯荡在这繁花的社会中故事发生在西南某省城,以三个不同背景家庭的年轻人的主线,记述了他们为了自己和家庭而奋斗的故事。平淡的人生,其实就是最真实的生活。这三个家庭因为各种偶然的原因相识相知,一起经历了几十年的风雨岁月。本书记述了他们平凡而又多彩的人生,以此纪念逝去的岁月和见证过这一切的人们。。
计算机与网络安全实用技术 网络安全与个人安全 网站价格表 提供网站建设设计 昆明云南微网站搭建 服务好的微网站建设 北京网站建设公司 c# 网络安全编程 网络信息安全网 整合营销理论案例分析 与男友前世的前世缘分咨询【www.richdady.cn】 失业的职业规划咨询【www.richdady.cn】 婴灵的超度与家庭和谐【www.richdady.cn】 孩子学习不好的自我提升咨询【www.richdady.cn】 感情纠纷的情感疏导咨询【www.richdady.cn】 与公婆前世的因果关系威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 暗恋的情感表达【企鹅383550880】√转ihbwel 去世的母亲的咨询技巧咨询【www.richdady.cn】√转ihbwel 与男友前世的前世解析咨询【σσЗ8З55О88О√转ihbwel 自闭症的家庭支持咨询【企鹅383550880】√转ihbwel 与男友前世的前世缘分咨询【企鹅383550880】√转ihbwel 灵魂化解的意义【微:qq383550880 】√转ihbwel 强迫症的前世因果【σσЗ8З55О88О√转ihbwel 脑部不清晰的自我提升咨询【企鹅383550880】√转ihbwel 财运不佳的前世因果【企鹅383550880】√转ihbwel 财运不佳的原因分析【微:qq383550880 】√转ihbwel 工作压力大导致的精神不振【σσЗ8З55О88О√转ihbwel 灵魂种子治疗咨询【微:qq383550880 】√转ihbwel 纠纷的原因分析咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 缺心眼的咨询技巧咨询【微:qq383550880 】√转ihbwel 济南网站推广 拓吧网站 南宁网站建设7make 网络营销是指以互联网 信息安全的证书 微博营销图 c# 网络安全编程 网络安全法 网信办 网络信息安全课件 重庆大足网站制作公司哪家专业 排名好的青岛网站建设 网络安全等保规定 黄石网站建设 移动支付推广营销方案 信息安全检查 方案 汽车互联网营销培训 提供网站建设设计 武汉商城网站制作公司 上海十大互联网营销 微整网络营销 网站首页面设计 开通网站后苏州做网站推广的公司哪家好 黄石网站建设 国家网络安全支撑单位 2017年网络安全周 天津 营销界名人 萝岗网站建设 医院营销网 计算软考网络安全 小红书营销策略分析 武汉大型网站建设 西安信息安全培训班 网络安全管控系统 网络和营销策略 营销案例客户 医院营销网 代运网站 国家网络安全管理法规 京东目标市场营销 2017网络信息安全峰会 计算机网络安全心得体会 网站规划与网站建设 怎么免费把自己在dreamweaver做的网站放到网上去 福州金山网站建设 搜索引擎营销五个步骤是什么意思 国家网络安全支撑单位 现阶段营销信息被自动地快速复制扩散或群发的方式主要有 安阳做网站 重庆大足网站制作公司哪家专业 网络营销分为哪些类型 石家庄做网站 信息安全检查 方案 湛江有那些网站制作公司 信息安全数据库安全 什么叫引擎营销 大数据网络信息安全 信息安全的证书 关于加强信息安全管理体系认证安全管理的通知,-1 中国信息安全风险 现阶段营销信息被自动地快速复制扩散或群发的方式主要有 网络安全宣传周活动项目 昆明云南微网站搭建 产品网络安全认证证书 网站制作维护 网络信息安全网 上海网络营销资讯 中文域名怎样绑定网站 义乌网站制作 网站制作维护 中科大信息安全实验室 怎么判断网站优化过度 2015年中国计算机网络安全年会 中科大信息安全实验室 2016网络安全威胁 信息安全数据库安全 网络安全软件公司 网站规划与网站建设 信息安全之业务安全 山西网站设计 网站建设案例资料 沧州网站制作 利用互联网营销的例子 重大信息安全事件包括 电子商务网站建设 020网站系统 网络安全法 网信办 萝岗网站建设 怎么免费把自己在dreamweaver做的网站放到网上去 整合营销理论案例分析 长沙做网站 信息安全等级保护企业 深圳北网站建设 java保护信息安全 信息平台网站建设 大学生信息安全考证 营销型网站功能表 e万营销 拓吧网站 网站推广的目的 网络品牌营销公司 网络营销是指以互联网 gb/t20273-2006信息安全技术数据库管理系统安全技术要求 网络营销分为哪些类型 微博营销图 网站营销沟通工具 信息安全漏洞分类 网络安全法 网信办 cc 信息安全 中国 2016网络安全威胁 重庆大足网站制作公司哪家专业 珠海政府网站建设公司 2017年网络安全周 天津 网络安全等保规定 武汉 网站制作 营销型网站功能表 移动支付推广营销方案 无锡地区网站制作公司排名 深圳信息安全公司排名 汽车互联网营销培训 c# 网络安全编程 信息安全最新新闻 武汉商城网站制作公司 当今信息安全局势 珠海政府网站建设公司 微整网络营销 网络信息安全共享法案 京东网络营销推广策略 开通网站后苏州做网站推广的公司哪家好 济南网站推广 网站首页面设计 网络安全管控系统 网络营销与ui设计方案 无锡网站建设公司 网站建设案例资料 西安网站架设公司