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://f.luoa.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://tqQ.luoa.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://hc5.luoa.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://hc5.luoa.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电信网络安全密匙忘记网络安全审计系统产品网络营销策划书案例嵌入式与网络信息安全哪个好营销型网站怎么收费标准大良网站设计价格票务网站建设长沙网站设计开发吴聊穿越宗门林立的武道世界 本为圣宗附属,前途无量 却得罪权贵,师门被灭 侥幸逃得一命的吴聊加入六扇门 从此镇压天下 “圣宗犯法,与庶民同罪。” “凡违背人道,犯我大乾律法者,虽远必诛!”所有的开始与结局总是异乎寻常。神奇,惊险及离奇的挑战铺天盖地涌入平常的生活。 天元历1214年,天元王朝在经历了数百年的繁荣后,终于是盛极必衰走向了衰亡,其时天下大乱群雄崛起,所谓秦失其鹿,天下共逐之!且看谢长安是如何从一个山野小子一步步的走向武学巅峰并一统天下,建立百花王朝,成为后世敬仰的百花大帝! 建立了粉丝群1012144039,小伙伴儿们可以进群一起畅聊。唯一微信公众号是老三的books。35岁的上市公司老总徐登峰意外重生,回到他18岁的年代,一个新的世纪正在冉冉开启,前世没结婚的他看着身边的几个完美女孩陷入万分纠结,该选哪个好呢?离奇荒诞的穿越重生,阴差阳错的传承,让林樊,一个30多岁的青中年油腻老男人,开启了一段精彩另类的人生。 小说中波诡云谲的故事,电影中奇思妙想的场景,传说中的龙,凤,麒麟,古老神秘的神仙妖魔,当这一切都出现在他的面前,他茫然了,但他更欣喜了,看他如何在这圣帝,仙王的算计中一步步登临神界之巅。自从遇到了闷骚这个道士后,我的世界似乎发生了一些变化…“只要能压过阿海我怎样都行” “我要高铁!” “阿泰你闭嘴,先给我修机场!” “咩啊?” “总有一天全世界都吃切糕!” “青鸟休想跟我争第一!” “东三村要团结~~” 这个世界,从灵气泄露的那一刻起,思想就不止属于人类了,在另一个角度来说,我们只是它们的一部分......我经历传说中的龙泉乡事件和某某年的僵尸事件后申请了休假。某一年夏季的一天,曾经的一个好友来到我家里告诉了我……。 (PS:全都是假的没事儿别瞎想。) 简介跟剧情无关。我叫牧冬,我的世界存在着一种名叫天劫的怪物,幸好,与此同时,有一群正义的超级英雄们挺身而出,与之对抗...... 直到那天,这个游戏出了BUG,不再自动刷新和删除记忆。“师傅,快来呀” “别跑,看着点脚下” 师徒两个走在山间,欣赏着秀丽山河,眺望远处的日落。
网络安全审计系统产品 2016信息安全联盟大会 高端网站建站公司 网络营销推广渠道包括哪些方面 金融系统网络安全 网站代运营公司 信息安全策略实施方案 网络安全知识教育平台 信息安全培训ppt下载 美团网营销内容 感情纠纷的真实案例有哪些?咨询【www.richdady.cn】 亲子关系的改善方法咨询【www.richdady.cn】 精神不振的环境影响咨询【www.richdady.cn】 纠纷的原因分析【www.richdady.cn】 前世今生的轮回有哪些真实经历?【www.richdady.cn】 儿子不读书的教育建议【企鹅383550880】√转ihbwel 去世的母亲的影响分析【企鹅383550880】√转ihbwel 内心恐惧胆怯的咨询技巧【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 自闭症的案例分享咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 解梦的前世影响咨询【www.richdady.cn】√转ihbwel 自闭症的心理调适咨询【www.richdady.cn】√转ihbwel 迟缓儿的康复训练【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世缘份的缘分解读【企鹅383550880】√转ihbwel 冤亲债主的干扰案例【σσЗ8З55О88О√转ihbwel 性压抑的心理调适咨询【企鹅383550880】√转ihbwel 前世缘份的前世解析咨询【微:qq383550880 】√转ihbwel 与老公前世咨询【σσЗ8З55О88О√转ihbwel 暗恋【企鹅383550880】√转ihbwel 亲子关系的沟通技巧咨询【σσЗ8З55О88О√转ihbwel 感情纠纷的原因有哪些?【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 山西武汉网站建设 同步营销软件官网 网站竞价 创建网站 厦门信息安全教授 网络营销推广渠道包括哪些方面 通信网络安全防护和维修的特点 日本信息安全研究生 武昌手机网站 如何让百度收录网站 nsc 网络安全 信息安全测评中心 绿盟,-1 成都网站设计公司哪家好深圳微信营销推广 网络新闻营销的特点 网站没域名 网站注册 搜索引擎营销的产生 网银网络安全方案 网络安全渗透测试工程师 房地产网站建设专业制作网站 郑 重庆建设网站 国际网络安全问题 网站的步骤 android 网络安全 近期网络安全论坛 网络营销有什么证 宁夏网站设计 598营销软件站 外贸网站建设公司流程 营销调研方法 网络安全 软件设计 怎样自己创造网站 网络安全身份验证的方法 通信网络安全防护和维修的特点 微营销有什么特点是什么 网络安全硬件平台提供商 网站的营销方法 兼职网站制作 个人网站建设 开心网的营销手段 信息安全 知识课堂 pc网站增加手机站 网络安全原因分析 网络安全公司招聘 展示类营销 2017网络安全案例分析 电子工厂网站建设 深圳品牌建网站 新媒体网络安全 国内信息安全领域 横向纵向网络安全防护嘉兴网站制作 免费建网站 太原网络营销公司排名 网络安全知识教育平台 杭州网络营销 王老吉地震营销 2017信息安全会议 太原 工业基础设施信息安全 网络安全信息周安全 网络安全关键词2017 深圳品牌建网站 广州网络微信营销公司有哪些 车辆网络安全 网上营销方法 长沙网站设计开发 重庆建设网站 外贸做网站 企业网络安全解决步骤 pc网站增加手机站 长沙网站设计开发 大学信息安全委员 票务网站建设 武昌手机网站 厦门信息安全教授 营销4p的优缺点 杭州网络营销 谁做过医院网络营销 计算机网络安全包括 二级域名网站权重 防网络安全 微营销有什么特点是什么 第十届全国信息安全 网站注册 网站竞价 河南网站制作 同步营销软件官网 网站建设和平面设计 b2b网络营销的过程 网络安全公司招聘 唐山做网站公司 防网络安全 信息安全认证机构,-1 信息安全连续性 网络安全技巧 信息安全管理体系认证 查询 炫酷业务网站 政府网络安全方案 网络安全协议简介 网络安全渗透测试工程师 嵌入式与网络信息安全哪个好 网络安全符合性评测 政府网络安全方案 如何加强信息安全 横向纵向网络安全防护嘉兴网站制作 2017网络安全案例分析 网络新闻营销的特点 房地产网站建设专业制作网站 郑 网站建设和平面设计 深圳市网站设计公司 营销4p的优缺点 国内信息安全领域 淘宝自营销 合肥市做网站的公司有哪些 电子工厂网站建设 开心网的营销手段 徐州html5响应式网站建设 网站建设的域名注册 高端网站定制 移动数据网络安全吗 网站没域名 广州微信营销手机 信息安全研究所 国家信息安全周时间 网络营销入门 营销型网络公司 哈工程信息安全实验室 胶州做网站 网络安全 经典书籍 成都网站设计公司哪家好深圳微信营销推广 信息安全认证机构,-1 移动数据网络安全吗 广州网络微信营销公司有哪些 国内信息安全领域 找一个网络营销的案例并分析其采用了哪些营销策略和网络营销方法 国家信息安全周时间