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://iQ.ecuo.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://c8.ecuo.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://8juo.ecuo.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://8juo.ecuo.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.

信息安全资质的机构网络营销事件营销网站设计的简称东莞阿里网站设计营销的意义简述城市信息安全管理的意义hd网络信息安全论坛网站建设三合一手机模板网站济南网站制作厂家怎么创立网站 这是一个光怪陆离的世界,深色的天空中有血泪如雨,暗黄的地面上如龟背皲裂,在那座远古的大殿中,身边是魑魅魍魉张牙舞爪,身边是漫天仙皇,威逼九天,掂起了一枚棋子,放在那张棋盘上,“胜利者,你相信神明存在吗?”老者笑而不语,同样落下一子,我不得不专注于棋盘,额头沁下几滴汗珠,终于“将死!” 败北之后,我的眼神空洞了许多。 老者笑着伸出手,盖在我的头顶上,“我,不就是神明吗?” 三年前,我带着无限遗憾离开了上海这座城市……修行是一条茫茫无尽的道路,路上没有长生的喜悦,有的只是无尽的枯寂与落寞,三年前问心路上,学院问我,为何要修行,实际上我撒谎了,我只是想好好活下去,能像从前一样回到自己师父师娘身边,跟明月一起坐在清风山顶的大石头上看日出一个被遗弃的少年,是如何一步步走上巅峰他目睹过始皇帝的威震天下;他见识过楚霸王以一挡百;他经历过李世民的贞观之治;也曾和千古女帝坐而论道;也曾倾听过柴荣的遗憾;也曾见识过朱元璋的残暴不仁…… 他只是一个活了两千多年普普通通的方士,他只会亿点点方术,他还有两只普通的宠物,也有个“可靠”的师兄这本书是基于设定的新的修炼体系,与主流修炼体系有所差异的一个新的尝试,想要寻找突破。破穴,单穴破,双穴破,奇穴现,人族崛起一个经历核战争后的高中生营救家乡龙港的故事。 随即而来的就是一阵冲击波和疯狂的气流。我看不见东西,但我现在身体感觉就像被卡车撞在墙上一样。全身似乎都受到了棒球棍的打击...... 老金老王本是天才却被误认为是废物,偶遇若子轩,从此踏上修仙之路。年代+宠妻+渣男悔过+暴富+奶爸+单女主 “周泽,你有遗憾吗?” “有” 美丽妻子死在他面前的场景,无数次出现在周泽梦中。 每次,他都仿佛被千刀万剐一样,纵是如此,也无法偿还他曾经犯下的罪。 带着巨大的痛苦和内疚,重生93年悲剧还未发生的那天。看着妻子的倩影,周泽笑的泪流满面。以汉朝历史为背景,讲述一个平民小子,如何一步步成长为皇帝。 新人,新书,希望大家支持!
网络营销理解和认识 网站建设时间 网络有哪些营销方式 济南网站制作厂家 广东网络安全 网站建设公司 深圳 网络信息安全教材,-1 微信营销培训讲师 给会所做网站 信息流营销是什么 存不住钱的解决方法咨询【www.richdady.cn】 亲子关系的案例分享【www.richdady.cn】 婴灵的超度流程咨询【www.richdady.cn】 心慌胸闷头晕的案例分享咨询【www.richdady.cn】 人际关系不好对工作的影响咨询【www.richdady.cn】 儿子不读书咨询【σσЗ8З55О88О√转ihbwel 事业不顺的原因有哪些?【σσЗ8З55О88О√转ihbwel 孩子不爱读书的家长引导方法有哪些?咨询【微:qq383550880 】√转ihbwel 无形干扰咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 与公婆前世的因果关系咨询【企鹅383550880】√转ihbwel 自闭症的症状与诊断咨询【企鹅383550880】√转ihbwel 财运不佳的财富增长技巧有哪些?【www.richdady.cn】√转ihbwel 性压抑【σσЗ8З55О88О√转ihbwel 意外的前世案例【σσЗ8З55О88О√转ihbwel 头脑混沌时如何提高注意力【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 化解【www.richdady.cn】√转ihbwel 亲子关系的互动模式【www.richdady.cn】√转ihbwel 前世缘份的缘分再续咨询【微:qq383550880 】√转ihbwel 失业的职业规划【企鹅383550880】√转ihbwel 家庭关系的和谐之道【σσЗ8З55О88О√转ihbwel 网站建设 银川 企业网站建设公司 微信营销的效果数据分析 网络营销提升 网络安全大会广州 青岛网站建设小公司 网站建设计划书 手机的网络营销方案 广东网络安全 张店做网站 清华信息安全 委托建网站需要多少钱 网络安全公告 汉口网站制作 三零盛安 信息安全培训 个人主页网站制作 我们网络安全等级保护级别 惠州做网站 萧山网站优化 营销软件站 微信营销培训讲师 东莞阿里网站设计 网络安全的具体形式 网站对比 网站对比 国家信息安全通报中心 西电2015 信息安全就业 信息安全管理内容 东莞企业营销型网站建设 传统文化与营销 腾讯公司网络营销分析 2016中国网络安全50强 企业网站建设公司 计算机信息安全四级 建网站咨询 网络安全教育与培训 集团公司网站方案 网站学习流程 营销效果 委托建网站需要多少钱 中国网络安全年会2017 百万网络营销 网络安全.ppt 武汉网站建设企业 微信营销培训讲师 深圳网站推广公司 邢台网站设计厂家 上海运营营销号大公司怎么样 惠州做网站 萧山网站优化 饥饿营销正面影响 网络安全审计 课件 营销的意义简述城市信息安全管理的意义 委托建网站需要多少钱 网站建设三合一 新营销策划 双11店铺营销亮点 网站建设计划书 美团外卖的网络营销 网络营销意识薄弱 网站改关键词 安徽大学 信息安全 中国网络安全年会2017 信息安全资质的机构 网络安全设计指标 自助免费网站制作 柳市做公司网站 企业网站建设公司 广东网络安全 惠州做网站 哈尔滨网站推广 信息安全管理内容 杭州网站建设公司 清华信息安全 快速营销 信息安全培训的机构 2016中国信息安全大会 网络安全论文1500 网络安全通报机制 柳市做公司网站 信息流营销是什么 巴中网站制作公司 网站建设 银川 深圳网站推广公司 给会所做网站 计算机信息安全四级 腾讯公司网络营销分析 南京专业做网站的公司 快速营销 网络营销意识薄弱 维护网络安全语句 怎样弄网站 网络营销意识薄弱 网络安全权威认证 上海做网站的公司官网 定制网站 医疗器械网站制作 卫龙整合营销 做网站需要学什么 手机微信的网站案例企业实战网络营销 手机模板网站 集团公司网站方案 营销六要素 网站组成费用 微信营销的效果数据分析 网站设计模块 女生适合做网络安全 樟木头的建网站公司 营销软件站 网络安全调查策划 网站组成费用 深圳网站推广公司 网络安全大会广州 宜宾网站优化 公司网络安全制度 网站建设计划书 网络营销事件营销 周口网站建设 网站承建 台州卫浴网站建设 网站建设计划书 怎样弄网站 阿里网站建设 网站设计的简称 怎样弄网站 网络安全的具体形式 微信营销培训讲师 公司网站制作商 金融企业 网络安全法 浦东新区苏州网站建设 qq网络安全中心 2016中国信息安全大会 河西做网站 网络营销Ar是什么 2017年网络安全重要性