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://qw.4881.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://6f.4881.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://zx5i.4881.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://zx5i.4881.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.

如何进网站网络安全扫描 标准开发网站的步骤对网络营销弊端的看法潍坊网站推广六安做网站禹城做网站简述网络营销及特点是什么意思关于网络安全的一句话二维码营销  何为魂修?修魂逆命,与天争。 ...... “你可想好?八目玉属性丶能力各不相同。若是选择震玉,那么日后也不可再更改。” “前辈,我想好了。” ...... 天元大陆,姜芜忧历经种种磨难,带着八目玉之一震玉,踏上了修炼旅途。在这充斥着东西方玄幻色彩丶妖兽横行的世界中,卷入一场场阴谋和争斗。自此,再无宁日。 ...... 一入魂修深似谷,再回眸时已无路。 我叫罗威,能力是个只会吐槽的旁白,体质是能够使接近我的美少女提升实力。   本来以为这将会是一个美少女找我贴贴的故事,但不曾想有人另辟蹊径——   原来想杀我也算是和我有亲密关系的吗!!?想要变强吗?想要成为不可一世之人吗?去吧!去读书吧!没错我把一切都放在了那里! 学渣资质的单良表示:问题不大,大也没用。升级干就完了,另外赌狗必死。他,因孽恋交错获神魔同体。 而他,千年来最有可能踏入神殿之人。 是神是魔,亦魔亦神! 神动天下,修武先修心。 魔逆苍穹,成魔再成神! 神魔共舞,一念悟乾坤!白牧,一个行动受制于轮椅的普通人,每天过着枯燥乏味的生活,直到某一天,平板上出现了一个神秘的游戏。 当他沉迷其中,无法自拔时,才突然发现,游戏的背景竟然是现实…… (灵气复苏,幕后,无敌流)外界干预下为地球带来的快速进化是灾难,还是福音。残疾少年张铁生,意外获得药王传承,自此村花、俏寡妇,哭着喊着找他治病,而他也成了远近闻名的妇科圣手。王朝覆灭,群雄并起,藩王割据。在名如草芥的乱世,唯有真正的江湖儿女才能真正的逍遥。少年沈翔得到无上传承,获得逆天神脉,学得绝世神功,掌握超绝丹术,这使他在武道之路春风得意……饿的时候炼点丹药当零食吃,无聊时耍耍那些来求丹的武道高人……想观看更多的精彩内容,请收藏关注《傲世丹神》! 【微信公众号jixiaozei88 QQ群572384158】很久很久以前,在一片未知之地,有一只神龙盘踞在此地,不曾想,被外来者闯入,神龙降世,怒火冲天,对神龙的不敬,将会受到惩罚。但神龙可不能滥杀无辜,因为还有一群神秘人在虎视眈眈。
信息安全检查评判标准,-1 做网站团队 企业网站内容更新怎么操作 信息安全国际有哪些标准 大连网站设计公司排名 网络安全管理的功能 网络营销漏斗图 对网络营销弊端的看法 广东网站建设 精彩营销事件 头脑混沌的生活习惯【www.richdady.cn】 去世的母亲的前世因果【www.richdady.cn】 投资项目的前世因果咨询【www.richdady.cn】 感情纠纷的改运方法【www.richdady.cn】 无形干扰的咨询技巧【www.richdady.cn】 去世的父亲的咨询技巧咨询【微:qq383550880 】√转ihbwel 官司的案例分享咨询【www.richdady.cn】√转ihbwel 孩子学习不好的自我提升【微:qq383550880 】√转ihbwel 财运不佳的财富增长技巧有哪些?咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 家庭关系的心理调适咨询【www.richdady.cn】√转ihbwel 亲子关系的心理调适咨询【企鹅383550880】√转ihbwel 婴灵的安抚与超度咨询【微:qq383550880 】√转ihbwel 外灵干扰的咨询技巧【企鹅383550880】√转ihbwel 婴灵对家庭关系有哪些影响?咨询【微:qq383550880 】√转ihbwel 性压抑【微:qq383550880 】√转ihbwel 婴灵的存在有哪些科学依据?威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 什么原因意外的前世因果【微:qq383550880 】√转ihbwel 精神不振的生活习惯【www.richdady.cn】√转ihbwel 头脑混沌【www.richdady.cn】√转ihbwel 前世今生的神秘故事威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 2015福建省网络安全宣传日合肥网络安全公司排名 上海网络安全会 网站 体系 团队营销的作用 太原网络营销师培训 如何利用网络平台营销 营销推广公司 昆山企业网站设计 重庆网络安全培训机构 中国网络安全提高 简述网络营销及特点是什么意思 信息安全 国家 学院,-1 上海网络信息安全报警中心 信息安全国际有哪些标准 重庆网站优化排名网络安全法 公安 六安做网站 asp网站制作 禹城做网站 网站 体系 团队营销的作用 太原网络营销师培训 如何利用网络平台营销 营销推广公司 昆山企业网站设计 重庆网络安全培训机构 中国网络安全提高 简述网络营销及特点是什么意思 信息安全 国家 学院,-1 上海网络信息安全报警中心 信息安全国际有哪些标准 网络营销多层次 网站案例 信息安全评估结论 信息安全三级等保资质 2014 信息安全 国家对信息安全性 网站首页页面设计 天津 企业网站建设 信息安全的管理方法 网络安全 售前 技能 vpn网络安全技术案例 重庆做网站哪家公司好 天津市网站制作 公司 上海网络安全会 搜索引擎营销待遇 绵阳公司商务网站制作组建一个网站 免费网站域名注册 信息安全管理实验报告 网络营销平台分析 网络信息安全网站 网络营销托管 河南网络安全专科 上海营销公司有哪些 静态网站有哪些优点 清华大学网络安全课程 营销包 精彩营销事件 中国网络安全提高 信息安全技术博客 信息安全等相关专业 禹城做网站 福州网站建设公司 上海网络安全会 优秀的网站设计案例 如何进网站 信息安全的任务是 青岛做网站建设的公司 餐饮业网络营销策划书 信息安全的任务是 信息安全技术博客 无缺陷营销 信息安全测评认证意义 合肥网站制作报 美国国家信息安全保密总统令 译文 做网站团队 广告公司做网络营销 网络安全体系层次模型 网络营销传播渠道研究 信息安全中心 施耐德 杭州全网整合营销 网络营销的十大问题及对策 漳州 外贸网站建设 SEO 地推营销技巧培训 信息安全的管理方法 龙岗网站制作新闻 网络安全的思考 信息安全等级保护制度是国家对 网络安全 百度网盘 超简单网站 个人信息安全事件案例分析 平邑做网站 网络营销网络广告 2016网络安全事件统计 好的信息安全论坛 信息安全 行业新闻 网站 体系 网络营销网络广告 网络营销活动规划 宝安建网站 深圳网站制作公司人才招聘 网络营销活动规划 对网络营销弊端的看法 龙岗网站制作 通辽网站制作公司 食品行业网络营销环境 网络立体营销 工控系统信息安全威胁 顺德营销网站设计 团队营销的作用 传统市场营销包括哪些内容 网络营销怎么实施 深圳网站建设公司招聘电话销售 物流公司网站制作模板 开网站公司 开发网站的步骤 易营销软件代理商 asp网站制作 信息安全响应工作流程主要包括 全网营销系统 医疗数据信息安全 以防火墙为核心的企业 如何获取从搜索引擎点进我们网站的关键词asp代码怎样写 信息网络安全办公室 江苏网络安全中心 诸城网站制作 石家庄网站建设找哪家 重庆做网站哪家公司好 装修企业网站网络营销 江苏网络安全中心 合肥网站制作公司 杭州全网整合营销 上海信息安全产业协会 合肥网站制作公司 网络安全合作 如何进网站