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://Z.guaisuo.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://w.guaisuo.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://npf.guaisuo.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://npf.guaisuo.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.

如何推广网站武汉市网站制作公司洋码头 营销活动模板网站优当大数据遇上信息安全 2016年5月长沙商城网站制作川大信息安全考研成都网站建设冠辰佛山企业网站建设平台国家网络安全招聘孑然一身的出租车司机孟一,“机缘巧合”之下认识了神秘的女人,又“无意间”牵扯进地府的斗争之中,废弃的酒店、神秘的鬼城、数不尽的鬼屋阴宅,一个又一个阴谋逐渐浮出水面。阴谋与阳谋,明争与暗斗,死亡究竟是结束还是开始。最诡异的是孟一发现,自己早已去世的双亲竟然也牵涉其中……神皇无道,天下共伐之! 伐天盟无数修士封印神皇于混沌烘炉,七日炼化,神皇必死! 叶枫:这都特喵大结局了,让我穿越到被干倒的反派BOSS身上干嘛? 哦,原来是有人生编辑系统,这下你们在神皇身上受到的委屈,压迫,我都可以解释了,笔来! 我要让全天下人都知道,神皇不是反派,更不该死,是全天下都误会神皇了! 整个天下,都欠我一条命! 全天下人,都欠我一声对不起!鸦人与魔女的故事。一些古古怪怪又带点恐怖温馨的小故事而已啦,是吧是吧,我也是这么想的,要不要进来看看。光鲜亮丽的皮囊只是一副躯壳,当它干涸,会露出里面的东西。 主角王墨轩小时候眼睁睁的看着父母被杀,并且在16岁未觉醒魂灵,在社会上受到不公的对待,从而孤身一人来到了灵气森林,意外获得了龙界金龙王之子的龙蛋,吸收后开启了开挂般的复仇之路。 一名学生,经历商业洗礼 一个传奇,历练终成奇迹 到底如何,且看商业风云华夏,这片屹立于东方、曾经无比强大而神圣的大地,千百年来经过了无数次的王朝更迭,终于还是没落了,而曾经只能仰望华夏的西方终还是可以将其踩在脚下。至少西方众神是这么认为的,马上他们就要证明这整个东方以及整个世界都要拜服在他们西方神坻的脚下!这方没落的大地终将为他们所征服!可事实真的是这样的吗?水神共工、火神祝融、开天盘古...我等华夏诸神,定会护我华夏无恙。犯我华夏者,虽远必诛!主角出生即无敌,天道守护,真龙跟随,且看他一路征战在一个平平无奇的一天,一个高中生被某种神秘的力量拖进了一个充满危险气息的腐败世界。
镇江网站seo 优秀网络营销案例分析 百度网络营销策划实咧 网站文风 定制网站的好处有哪些 饮料创意营销策略 新兴网络营销形式 信息安全等级 江苏网站制作企业 网站页面组成部分 前世今生查询服务咨询【www.richdady.cn】 前世缘份的修行建议【www.richdady.cn】 前世缘份对现世的影响【www.richdady.cn】 脑部不清晰的解决方法【www.richdady.cn】 什么原因意外的前世解析【www.richdady.cn】 财运不佳的风水布局【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 干扰对人的心理影响【微:qq383550880 】√转ihbwel 冤亲债主干扰【微:qq383550880 】√转ihbwel 亲子关系【微:qq383550880 】√转ihbwel 与男友前世的因果关系【σσЗ8З55О88О√转ihbwel 失业的应对方法咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 孩子压力大的解决方法咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 暗恋【σσЗ8З55О88О√转ihbwel 孩子厌学的自我提升咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 事业不顺的职场调整【企鹅383550880】√转ihbwel 什么原因意外的前世修行咨询【企鹅383550880】√转ihbwel 缺心眼的咨询技巧【微:qq383550880 】√转ihbwel 内心恐惧胆怯的解决方法【微:qq383550880 】√转ihbwel 干扰的自我感知方法咨询【企鹅383550880】√转ihbwel 祖灵与家运的关系威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 如何推广网站 我国中小企业应该如何进行网络营销采取的策略有哪些? 杭州培训网站建设 信息安全传输流程图 信息安全等级 网站点击率 沈阳淘宝营销培训班 福州做网站建设公司 协会网站建设 上海网站改版哪家好 国家网络安全知识 网站建设超链接字体变色代码 网站建设公司价位 优秀网络营销案例分析 珠海网站 网站关键词更新 知名手机网站 西安做网站公司? 首都网络安全日报名 万先生网站 成都网站设计公司价格 搜索引擎营销的发展历史 重庆网站建站价格 国家网络与信息安全中心 北航信息安全专业 营销工具的作用 三面隔离 信息安全 营销工具的作用 网络安全保卫部门 武汉网站开发 病毒性营销 网络营销研究调查问卷 营销的表现形式有() 当大数据遇上信息安全 2016年5月 信息安全服务认证 安全开发 建一个免费网站 洋码头 营销活动 新兴网络营销形式 网站定制与模板开发 d:/网络信息安全研究 (1).pdf 信息安全博士生信息安全服务体系认证 万网做网站 深圳信息安全服务公司,-1 福州做网站建设公司 株洲网站建设 模板网站优 影楼营销手段 南宁会员网站制作 病毒性营销 哈尔滨商城网站建设 国际信息安全等级 动态网站网络营销策划案例 信息安全项目经理 互联网信息安全领导小组 怎样给网站增加栏目 江苏网站制作企业 计算机网络安全等级国际标准 网络营销o2o 网络安全=信息安全 营销的表现形式有() 公司不需要做网站了 如何作做网站 改网站描述 营销的宏观环境 营销的宏观环境 信息网络安全协会联盟 沈阳淘宝营销培训班 网络安全=信息安全 网络安全培训哪家好 广州网络营销公司招聘 搜索引擎营销的发展历史 网站图片类型 南山网站建设 三面隔离 信息安全 金融 信息安全 万网做网站 数字化营销的特点 网络安全部门提示 佛山网站建设是哪个 流程网站 中国信息安全100强 全国网络安全办公室 精美网站 信息安全项目经理 网络安全评估 企业营销的方法有哪些 网站关键词 珠海网站 郑州营销网站 429网络安全日 百度 信息安全博士生信息安全服务体系认证 光谷做网站 企业营销的方法有哪些 网站细节 协会网站建设 营销型网页 营销型网页 南山网站建设 网站建设公司 中企动力公司 网络安全态势感知系统 网络病毒营销案例分析 杭州培训网站建设 长沙商城网站制作 个人信息安全规范标准 中国网络安全网站全案营销 合作模式 深圳信息安全大学 airbnb营销方式 中国移动网络安全现状 网站psd 深圳信息安全服务公司,-1 国家网络与信息安全中心 江苏网站制作企业 江苏网站制作企业 网络安全威胁 例子 三面隔离 信息安全 airbnb营销方式 光谷做网站 珠海网站营销 网络安全 教学 网络营销研究调查问卷 idc isp企业信息安全,-1网络安全被遗忘权 公司互联网站全面改版 武汉网站开发 内蒙古网络安全 ctf 德清做网站 数字化营销的特点 互联网信息安全领导小组 协会网站建设 微网站建设渠道 工业信息安全通报预警 优秀网络营销案例分析 万网做网站 互联网公司怎么营销策划 建立http网站 国家计算机网络与信息安全管理中心官网