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://su7.pieng.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://B.pieng.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://ckl2.pieng.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://ckl2.pieng.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.

东阳做网站福州做网站的公司信息安全 招聘中国信息安全认证中心颁发一级应急服务资质,-1网站优化课程企业如何运用网络营销百度不收录网站吗网站维护费长葛网站建设用户订购为营销资费在地府里有一个灵魂交易管,一个灵魂帮她实现前世心愿,一经交换概不退换一不小心穿越到1662年的南明太子朱慈爝身上,是49年入某军,还是能够在末日余晖中绝地反击,肩负起复兴汉人江山的伟业?传说秦始皇统一六国之后,用和氏璧做成传国玉玺,又用千年寒冰铁铸成九州鼎,这两件无价之宝刚一问世,就引得天地变色,风云骤起,有人告诉秦始皇:这两件无价之宝,都跟九州气运有关,只要把九州鼎埋在昆仑山,就可保大秦万世长存。谁也没想到,当晚九州鼎就被盗了,虽然秦始皇极力寻找,也再没见过九州鼎,转眼已过千年,九州鼎突然问世,顿时九州大地上,就是一阵血雨腥风。关于17K的问答大百科,有什么问题也可以留言!三流大学毕业的杨易,好不容易在广深一家公司混到人事主管的位置,可突如其来的泄密风波,导致他和女友分了手,当他穷困潦倒之际做起了一名凶宅试睡员,偶然间在床底下捡到一个水晶球。 从此,这个世界在他眼中变了…… “叮!恭喜宿主获得程咬金被动-舍生忘死……”玄灵界,这片拥有着十境九地的广袤大陆之上,每隔千年便会产生一次降灵异象,伴随异象应世之人被称为玄灵尊者,而每任玄灵尊者的使命,就是带领灵族众将,重新封印上古异族。 一个异能纵横的世界,一个心战大师如何在这场尔虞我诈的博弈中胜出……【爽文】【热血沸腾】【悬疑重重】 父亲是顶尖科学家,为保守国家秘密,惨遭神秘杀手屠戮,母亲被掳走,下落不明,生死难料,自己被莫名追杀,亡命天涯,身边原本信任的人,也相继阴谋~~~~ 终于,蜕变,天降煞星,非仙非魔,大杀四方,突破重重迷雾,追敌三万里~~~~朝阳之下,尽数向阳; 岐山,坐落在藏山中,鲜为人知的地界; 人迹罕至、毒瘴环生,望眼去尽数被山林遮挡,便是全貌; 蜿蜒的山脊许是蛰伏经年猛兽。 一纸“红”卷,牵引着少年入世,将会是此间动荡的征兆!班里的美少女转校生告诉我,我们已经被卷入了一场狼人杀游戏当中,随时会死? 可是......为什么我的狼人杀,画风不一样? 深夜,无人居住的房间里传出了诡异的声音, 黑暗的海洋馆深处传来了阵阵婴儿的啼哭声, 桃花盛开的小村庄在黑夜里露出了血色的獠牙...... 我能不玩了吗......
江苏省信息安全等级保护网 大学课程网络营销 企业如何运用网络营销 网站优化课程 精美的网站 网络安全研究步骤 网站设计分析 网站设计分析 移动营销编码 网络安全产品代理 化解外灵的专业手段【www.richdady.cn】 事业不顺的解决之道【www.richdady.cn】 前世缘份的故事如何改变命运?咨询【www.richdady.cn】 婚姻生活不顺的解决方法【www.richdady.cn】 年轻人过世的常见原因咨询【www.richdady.cn】 纠纷的法律援助【www.richdady.cn】√转ihbwel 灵魂化解的意义咨询【企鹅383550880】√转ihbwel 财运不佳的风水调整方法有哪些?【微:qq383550880 】√转ihbwel 前世今生的故事有哪些案例?【企鹅383550880】√转ihbwel 升迁障碍的职场规划如何制定?【微:qq383550880 】√转ihbwel 公司破产的环境影响咨询【企鹅383550880】√转ihbwel 性压抑的前世影响【微:qq383550880 】√转ihbwel 婴灵的超度方法【σσЗ8З55О88О√转ihbwel 灵魂种子治疗咨询【www.richdady.cn】√转ihbwel 心特别累的前世记忆咨询【www.richdady.cn】√转ihbwel 心特别累的自我提升咨询【σσЗ8З55О88О√转ihbwel 财运不佳的案例分享【微:qq383550880 】√转ihbwel 忧郁症的环境影响咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 家宅磁场的常见问题咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 祖灵对家族的影响【企鹅383550880】√转ihbwel 网络信息安全大会 个人网站在那建设 什么叫全网营销 邢台做网站哪儿好 手机屏幕网站 新手营销站 上海营销型网站 企业营销成败的实例 数据信息安全 通知 星沙做网站 信息安全的认证,-1 设计新颖的网站建站 行业网络营销 长葛网站建设 天津 网站设计公司 佛山新网站制作特色 企业网站建设公司排名 个人备案 可以做企业网站吗 福州做网站的公司 济南优化网站 营销必要性 办公室 信息安全工作职责 北京网站建设公司电话 网络安全仿真靶场 免费的创建个人网站 网络安全项目计划表房产网站制作 无线网络安全设置保存不了 信息安全 ssl 株洲网站制作 营销策划品牌事件口碑 信息安全的认证,-1 深圳教育平台网站建设 网络信息安全大会 衡水商城网站制作 南京网站制作 大网站成本 大良网站建设价格 网站构造 公司网络安全方案设计 旅游网站的营销策略 信息安全就是网络安全 信息安全等级保护证书 饿了么营销案例 国家信息安全认证服务资质 2016网络安全重大事件网络安全概述 ppt 大学课程网络营销 网站优化课程 微网站的功能 佛山做网站建设 天津网络营销 网络安全保卫总队地址 上海信息安全监测中心 重庆微信营销软件公司 武汉网站制作公司排名 精美的网站 大良网站建设价格 胶南建网站 淄博网站优化首选公司 网络安全行业编程能力 单位建网站 微信群营销教程 2015年网络安全大事件 it服务质量与信息安全 网络营销能力秀软文 上海信息安全监测中心 深圳教育平台网站建设 企业网站多少钱 淄博做网站公司 行业网络营销 网络安全与中国方案设计 信息安全企业排行 什么叫全网营销 大学课程网络营销 怎么建个人网站: 杭州制作公司网站 百度不收录网站吗 信息与网络安全杂志 房产类网站制作商 金坛做网站 信息安全是程序员吗 怎么做网站排版 南通网站建设教程 深圳营销外包公司 订制网站 东阳做网站 nba网站建设 淄博网站优化首选公司 行业网络营销 网络安全评级 南京网站制作 微信公众号网络营销 全球网络安全办公室/BG 大连网站建设 分析网络营销现状分析 个人新浪微博营销技巧网站与与云的关系 武汉想做网站 订制网站 网络营销案例评析 宁夏网站建设 国际网络安全保护联盟 营销必要性 网络营销的几个模型 潍坊网站建设最新报价 网站页面组成 房产类网站制作商 自媒体渠道营销案例 网站建设:翰臣科技 个人备案 可以做企业网站吗 移动营销编码 长葛网站建设 美国网络安全标准体系 网站建设:翰臣科技 网络安全仿真靶场 宁波网站建设公司 网络安全与中国方案设计 陌陌营销 株洲网站制作 网站字体 自媒体渠道营销案例 网络安全研究步骤 单位建网站 邢台做网站哪儿好 河北网络安全周直播 重庆网站平台建设 天津 网站设计公司 信息安全就是网络安全 网络营销策划 费用 怎么建个人网站: 陌陌营销 新手营销站 网站建设 长春 办公室 信息安全工作职责 旅游网站的营销策略 湖北警官学院 信息安全 营销对企业的重要性信息安全范畴包含哪些