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://3oSo.xope.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://uPwW.xope.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://leilc.xope.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://leilc.xope.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.

手机网站空间南昌做网站大连建网站病毒营销的提出中企动力官网网站cdn网络安全加固培训物流网站建设运营型网站网络安全 博士网络营销大连萧阳绰号&amp;quot;杀破狼&amp;quot;,为兵部第一人,因任务失败入狱五年,出狱后本想过平淡生活,谁知接连不断有人招惹陷害他,震怒之下,长啸琼霄,血染长天,抵穷山恶水进行万里击杀,直至双方见面后最终一搏!陈清风是一个出生于普通家庭的普通人,但是从童年开始便发觉自己和普通人不一样,他会疑惑为什么别人生病会无精打采,如果换做自己这些小问题根本不在话下,但他经历了种种事情后,他慢慢开始有了对自己的认识......“只要能压过阿海我怎样都行” “我要高铁!” “阿泰你闭嘴,先给我修机场!” “咩啊?” “总有一天全世界都吃切糕!” “青鸟休想跟我争第一!” “东三村要团结~~” 这个世界,从灵气泄露的那一刻起,思想就不止属于人类了,在另一个角度来说,我们只是它们的一部分......(都市+系统+搞笑+腹黑) 摩天轮上无数情侣正在恩爱。 张北哼着小曲,按下了红色的按钮。 身处于百米高空的摩天轮突然停住。 随后竟然横了过来。 无数坐在椅子上的情侣被弹射到了半空,仅有一个绳子连接。 几秒种后,整个摩天轮就像一个飞速旋转的盘子。 无数情侣在半空中玩起了温馨和谐的游戏。 跳楼机上,九十米高空的人体悠悠球。 碰碰车上,充满僵尸鬼怪的地下逃亡。 医生看着刚刚从过山车上下来的游客,将一颗速效救心丸塞进了壮汉的嘴中。 眼神中充满了幽怨。 “老板,这么下去会死人的!” “不会,你看他们多开心!”沈清风本是秦皇之子,原以为能够荣华富贵一生,可还没来得及享受,就被自己的青梅竹马杀害,就此陨落。 千年之后,他意外重生,而自己的青梅竹马已经成为了蓬莱界唯一的皇,这一世,他能否报仇,成为那凌驾众生之上的神。这是现实与虚幻的夹角。 这里是罪人的世界。 这里有着与魔族战斗的勇者。 于是,李霖提起了刀,回头砍向了自己的队友。 ——别怪我兄弟,他们给的实在太多了!长安巷一夜灭门,看主角如何江湖逃亡,如何历经劫难,如何练成绝学,如何快意恩仇。本书有英雄喋血,有儿女柔情,有宫廷之变,有正邪之争,故事曲折,笔法取自金、梁、古三家,结合现代散文写法,是典型的新派传统武侠风格。 一开始,穿成假太监的李易只想安分苟活着,但后来,看着高贵雍容的皇后,李易心思变了。 “江山你坐着,皇后我替你照顾。” 李易都跟皇帝打好了商量,奈何那把椅子,皇帝就是坐不稳啊! 前有狼,后有虎,奸臣又一堆堆,眼看国不国,家不家的,李易操起了屠刀……主要是讲男主受到种种困难成为了修罗把坏人打死。为天下安定带来了和平。后来回到了现实中的故事。废材少年百折不挠,觉醒神魂,诸神跪伏,修神级功法,他朝势必踏破苍穹,碾压诸界,成就无上战神
培训网络安全 网站建设模板是什么 商城网站都有哪 些功能 做网站工具 长沙网站空间 北京营销网站建设 营销软件站免费 有互动性的营销案例 营销沟通的案例分析 国家网络安全认证技师 感情纠纷【www.richdady.cn】 去世的父亲的影响分析咨询【www.richdady.cn】 大龄剩女的情感生活【www.richdady.cn】 什么原因意外的前世影响咨询【www.richdady.cn】 祖灵与家运的关系【www.richdady.cn】 儿子抑郁症的案例分享咨询【www.richdady.cn】√转ihbwel 前世缘份的化解方法【σσЗ8З55О88О√转ihbwel 特殊学校的环境影响咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 耳鸣的自我提升咨询【σσЗ8З55О88О√转ihbwel 儿子抑郁症的症状与诊断咨询【企鹅383550880】√转ihbwel 耳鸣的案例分享咨询【企鹅383550880】√转ihbwel 升迁障碍的职场建议【微:qq383550880 】√转ihbwel 头脑混沌的自我提升【σσЗ8З55О88О√转ihbwel 存不住钱的原因分析【www.richdady.cn】√转ihbwel 存不住钱的原因分析咨询【企鹅383550880】√转ihbwel 强迫症的自我提升咨询【微:qq383550880 】√转ihbwel 自闭症的症状与诊断咨询【σσЗ8З55О88О√转ihbwel 前世缘份的识别方法【企鹅383550880】√转ihbwel 莫名其妙感伤的前世记忆【企鹅383550880】√转ihbwel 与女友前世的识别方法【σσЗ8З55О88О√转ihbwel 网络营销目标市场选择 培训网络安全 1什么叫计算机网络安全? 网络营销的4c理论分析 昆明网站建设价格低 三只松鼠 动漫营销策略 潍坊网站建设公司电话 沧州做网站 微信网站开发 双十一营销 数据安全与网络安全 长沙网站空间 南昌做网站 网络营销网站 功能 常州网站推广方法 国际 网络安全竞赛rsa信息安全公司 自己建网站的优势 山西 信息安全 手机网站空间 网站建设服务商 想自己建个网站 网络营销调研的类型 建购物网站 电脑版网站制作公司 电子商务网站建设的概要设计 营销型网站建设 域名搭建网站 骗局 网络安全信息收集 物流网站建设 4g网络安全性求职网络营销公司 网络营销大连 太原网络营销机构 酒泉做网站 微信网站开发 金融网站开发 沧州做网站 网络安全报警电话 信息安全服务认证 信息安全检测包括哪些 19网站建设 云网站功能 运营型网站 有互动性的营销案例 南京网站设计 网络安全人才报告 信息网络安全技术 做网站工具 常州网站推广方法 网站酷站 大连建网站 南京网站设计 贵阳有哪些可以制作网站的公司 潍坊网站优化 信息安全等级保护ppt 长安手机网站建设 微信网站开发 域名搭建网站 骗局 富阳做网站 长沙网站空间 信息安全直播 网络营销可信吗 网站建设公司上海 佛山手机网站建设优化 专题页网站 2016年中国网络安全会议 营销沟通的案例分析 中山企业网站建设方案 国际 网络安全竞赛rsa信息安全公司 信息网络安全技术 2016网络安全法 部队网络安全大讨论 大馆陶网站 外卖网站设计 有互动性的营销案例 网站建设新闻 双十一营销 重庆企业网络营销团队 网络安全审计与监控 单页网站 怎样创建旅游网站 网站构建器 为什么品牌网络营销 双十一营销 空间对营销的影响 营销流行语 网络安全人才报告 1号店网络安全整体设计方案 自己建网站的优势 网站建设模板是什么 西安免费做网站公司 网站建设服务商 文玩营销模式 网络安全电子版 信息安全培训实验室 网站建设深 网络安全协议是https时 什么是网站推广 城市分站网站设计 酒店的网络营销环境 2017 网络安全攻防演练 网络安全审计与监控 微信营销课程 万州网站建设 昆明网站建设价格低 想自己建个网站 网站建设新闻 太原网络营销机构 山西 信息安全 会员营销的案例 营销型网站建设 物流网站建设 网络安全事件响应 建购物网站 网络营销策略班 佛山网站优化 网络营销网站规划建设 中华人民共和国网络安全法 网站建设有免费的吗 网站建设有免费的吗 股票网站建设 北京营销网站建设 临沂网站 创新的购物网站建设 三只松鼠 动漫营销策略 信息安全技术论坛 佛山手机网站建设优化 国家网络安全认证技师 网站酷站 外贸网站建设 如何做 域名搭建网站 骗局 重庆网络营销服务. 微网站开发 网络营销网站规划建设 2016网络安全案例事件 数据安全与网络安全