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://wyJ.luoa.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://OoGj.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://dvl.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://dvl.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.

青岛微信营销外包网络安全宣传周官网上海的外贸网站建设公司排名2017网络安全挑战赛网站静态南通旅游网站建设网络营销女性包装格式东莞南城网站建设沈阳谷歌网站建设数据可视化网站一场末世浩劫突然来临,蓝星炸了。 死亡,亦是新生。 然而,噩梦才刚刚开始。 一轮轮的末世危机,不断来袭。 想要活下去,运气、智慧、实力、勇气缺一不可。前世残疾,死后进入地府因前世无功无过被判入人道。 连孟婆汤都没喝到,就遇到了旷世大战? 三千大世界,亿万小世界。从此王浩带着记忆修仙! 破天门,闯地府。纵有神兵千千万也难与我争锋。 我王浩只争此世,不看来生。 神鬼皆惧我,极意手中藏。我于当世立绝姿!我因为贪婪,把自己卷进了一个未知的领域。   随之拼命挣扎,但无济于事。   遇到了很多,也挣扎过很多。   明白了许多,也失去了很多。   我不知道当天再亮起来的时候,我还能再次睁开眼睛。   或者是永远的沉睡。   五十年前人魔两族为了寻求和平选择谈判,但在谈判中人类失去了史上最强魔法师,魔族魔王陨落,战争再一次爆发。五十年后传说中能够创造和毁灭世界的魔法书出现在魔族大陆,恶魔族的少年和他的伙伴踏上了寻找魔法书,踏上了属于他们的旅程他曾为了修行背叛师门,却还是陨落在心魔之下。复生在海贼世界的他,决定放下执念,潇洒的活一次。重生先天人族,本以为是人生巅峰,哪知道却要面临重重危机,在妖族的虎视眈眈下,陆丰凭借自己的努力,和系统给予的机会, 定人族三祖,册三皇封五帝,立人道圣人,对抗天庭和鸿钧,以及强大的天道—— 陆丰:“巫妖量劫来临之前,我要让整个洪荒,都在人族的铁拳下颤抖……”1天道不公,我便逆天千年不变的规律,让繁华安宁的帝都化作废墟,本是一个皇室纨绔,却带着延续帝国的命运开始逃亡,身死魂散之际,一个神奇国度的信仰挽救了自己,家国危难,战争四起,依仗着意外得到的神器,开启了穿梭诸天万界的时空之门,让他见到了万千精彩的世界,也让蒙蔽生灵万年的神灵骗局浮出水面,从此、修仙还是信神,要生灵自己决定一颗天外陨石突然降落地球,地球迎来了最终篇章。 地球盖上了一层抓不透的红色纱布,这颗陨石到底是什么? 饥饿,伤痛,恐惧,死亡,恐惧萦绕在人们头顶。 审判,是末日最终的工具。
交互式网站 如何修改网站关键词 福建省网络安全 互联网时代背景下的网络信息安全 网站建设创始人 网站建设创始人 网络安全 企业管理 贵阳网站优化公司 成都个人网站 创新的商城网站建设 孩子不爱读书的心理分析有哪些?咨询【www.richdady.cn】 亲子关系的教育建议咨询【www.richdady.cn】 事业不顺的解决方法【www.richdady.cn】 孩子不爱读书的心理分析【www.richdady.cn】 官司的解决方法咨询【www.richdady.cn】 莫名其妙感伤的前世记忆咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 意外事故对家庭的影响威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 灵魂化解的具体步骤咨询【微:qq383550880 】√转ihbwel 财运问题在线咨询咨询【企鹅383550880】√转ihbwel 孩子不爱读书的阅读环境【企鹅383550880】√转ihbwel 4. 财运与事业发展咨询【微:qq383550880 】√转ihbwel 外灵干扰的前世故事咨询【企鹅383550880】√转ihbwel 忧郁症的咨询技巧【www.richdady.cn】√转ihbwel 如何预防过早离世威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 耳鸣的心理调适威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 耳鸣的解决方法【www.richdady.cn】√转ihbwel 去世的母亲的前世因果【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世老公的前世故事咨询【www.richdady.cn】√转ihbwel 内心恐惧胆怯咨询【www.richdady.cn】√转ihbwel 前世缘份的前世记忆【微:qq383550880 】√转ihbwel 上海的外贸网站建设公司排名 成都个人网站 网络标题大全 网络安全 分栏式的网站有哪些 终端信息安全解决方案 国家安全下的网络安全 网站建设创始人 南通旅游网站建设 网络信息安全的案例 2017网络安全发展趋势 福建省网络安全 制作外贸网站的公司 网站托管费用 网络营销最新资讯 2015 信息安全学术会议,-1 淘宝网络营销工作内容 深圳做企业网站的公司 青岛微信营销外包 信息安全创新创业报告 嘉兴网站制作 十三五规划 网络安全 珠海企业集团网站建设 济南做网站 深圳网站建设流程 娱乐网站 建站软件 小米营销策略 智能qq邮件营销系统 小米营销策略 通辽网站建设 网站首页被k 交互式网站 网站静态 信息安全管理体系中要素通常包括 国家网络安全局系统 c 网络安全 西安营销 公司建网站 电子商务网站建设资讯上海网站建设app 福建省网络与信息安全测评中心 网络安全管理局报警 建个营销型网站多少钱 合山市网站 厦门响应式网站制作 免费网站域名申请 网络营销 效果跟踪 福建省网络与信息安全测评中心 如何修改网站关键词 对网络营销的感悟 手机版企页网站案例 网站模板和定制的区别 进行公司网站建设方案 信息安全创新创业报告 网站超链接 设计网站怎么收费 模版建网站 学信息安全考研 沈阳谷歌网站建设 发改委信息安全专项 网络安全 术语表 佛山企业网站建设咨询 网络安全升级的功能 微信营销的特点是什么 娱乐网站 建站软件 如何修改网站关键词 国外的网络安全如何落地 网络安全工程师吧 北京信息安全中心地址 网贷网络营销 电子商务网站建设资讯上海网站建设app 网络标题大全 网络安全 中国网络安全的发展 曲阜信息网络安全协会 网站后台显示文章前台也显示 但是到第二天前台就不显示是怎么回事 蘑菇街微博营销 病毒事件营销成功案例 顺的网站建设信息 双色调网站 武汉大学网络信息安全企业网站案列 网络营销产品是指 小米营销策略 网站超链接 小程序建站网站 关于网络安全的一段 青岛微信营销外包 顺的网站建设信息 展示网站和营销网站的区别 广州企业网站建设 2017网络安全发展趋势 网络安全升级的功能 中国信息安全协会会长 广东做网站 成都个人网站 南京网站制作哪家专业 广州企业网站建设 win8+网络安全密钥 上海小企业网站建设 做网站找谁 湛江网站建设 中国移动网络安全产品 南京移动网站建设 网络营销3.0 电子书 信息安全定级备案 交互式网站 网络安全运维潍坊网络营销 公安局网络安全 网站建设创始人 珠海企业集团网站建设 重庆 手机网站制作 网站分几类 想建网站 网络营销与物流 win8+网络安全密钥 hefei 网站制作 设计网站怎么收费 南京移动网站建设 asp.net网站采用编译后执行首次执行需要进行编译 重庆 手机网站制作 网站信息安全员,-1 贵阳响应式网站开发 企业如何维护网络安全 柯力士信息安全怎么样 上海制作网站的公司 微信营销处于什么阶段 海丰网站建设 网站建站系统程序 贵阳响应式网站开发 营销活动公司 重庆 网络营销理念包含哪些内容 2017网络安全发展趋势 个人网站制作 网站免费 双色调网站 富阳网站 包年营销 网络安全攻防考试试题