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://vA.1429.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://MsId.1429.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://ilip.1429.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://ilip.1429.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.

深圳营销推广价格紫色网站模板北京企业网站开发多少钱福田网站制作电商营销体系广州数字营销广西 网站开发许可式营销太原网站建设dweb手机设计培训网站建设 唐听白魂穿异界,成为大燕皇帝,觉醒最强王者系统,不断完成系统任务,获得王者英雄!   斗文臣?派个诸葛亮就够了!   收兵权?我儿奉先何在?   剿灭叛乱附属国?关羽、孙策你俩去吧!   朝堂得意,唐听白的后宫更是幸福。   妲己:请尽情吩咐妲己,主人。   大乔、小乔:皇上~,你好坏。   钟无艳:哈哈哈,亮个相吧,小宝贝!   短短两年大燕国力恢复,平北方四岛、灭南方诸国、战南印天竺、剿西方波斯。   然而,故事才刚刚开始。   还有更多的英雄等待唐听白的召唤……九鼎龙宫,黄泉密档,雪山尸魅,阴阳客栈…… 从我向阴间借命开始,此生便不得安宁。每次借命都是一场生死之局。一次次殊死较量,一次次死里逃生之后,我都在等着下一个阴司密令,好让自己再活下去。 当我觉得自己摆脱了命运的纠缠,却发现老天给我也准备了一口棺材!、 交流群:190139142朋友圈里发不出的无聊日常 会被嫌啰嗦的想说的话人?妖?神? 十万年来,混战不休,民不聊生,气运之争,成仙之路注定血腥! 神明高高在上,那我张空,可屠神否?一个受当下穿越小说影响的小老百姓,带的准备好的知识真的穿越到大明朝会发生什么事,妈妈看啊,有神仙,真的带我穿越了。【2021年爆火迪化流洪荒文】 穿越到洪荒世界,还是个手无寸铁的凡人,本以为靠着系统能横行洪荒,没想到系统居然还跑了,这可怎么搞? 最关键的是封神在即,这可是连圣人无法避免的天地量劫! 林轩表示,咱还是先苟着吧! 但让他没想到的是,他随手打下的鸡,居然是鲲鹏妖师! 被他逗的满脸通红的美女,是西王母和三霄娘娘! 林轩懵了,他其实真的只想苟啊!一块大陆上三个帝国的对抗 一次统一战争的过程 一次王朝的颓败与堕落 一次女主登临的时代 鹿死谁手,尚未可知……他曾经单挑契族大军一万精锐,尽斩马下…… 他曾经孤身一人,闯进齐周国皇庭,亲手拧下了齐周国王的脑袋…… 他曾经奔走千里,追杀三千古蒙国铁骑…… 他是唯一一个从十八层战神塔活着出来的人…… 他是名震天下的绝命公子。 他是让天下英豪闻风丧胆的嗜血战神。单人无女主爽文茫茫人海中独自生存尝试按心中合理的写法写写看会出来什么东西。
网络营销新方式有哪些特点是什么意思 周黑鸭营销软文 无差异性营销策略公司 营销 常州专业网站建设公司 常见的网络安全威胁及防范措施 建立免费个人网站 网络营销人才需求 贵州网站建设 网站建设模板是什么 解梦的前世因果【www.richdady.cn】 什么原因意外的前世修行咨询【www.richdady.cn】 如何了解自己的前世今生【www.richdady.cn】 大龄剩女的婚恋建议【www.richdady.cn】 孩子不爱读书的阅读环境【www.richdady.cn】 前世缘份的前世影响【企鹅383550880】√转ihbwel 忧郁症的治疗方法咨询【企鹅383550880】√转ihbwel 存不住钱的咨询技巧【企鹅383550880】√转ihbwel 与老公前世的故事分析【σσЗ8З55О88О√转ihbwel 学习成绩差的心理调适咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 孩子不爱读书的心理分析有哪些?【微:qq383550880 】√转ihbwel 自闭症的自我提升【σσЗ8З55О88О√转ihbwel 无形干扰的环境影响咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 儿子不读书的案例分享咨询【企鹅383550880】√转ihbwel 缺心眼的解决方法【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 迟缓儿的自我提升咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 升迁障碍的职场晋升技巧有哪些?【www.richdady.cn】√转ihbwel 老公家暴的案例分享【www.richdady.cn】√转ihbwel 存不住钱的自我提升【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 强迫症的症状与诊断咨询【企鹅383550880】√转ihbwel 建网站啦 网络营销人才需求 网络公司制作网站 电商营销体系 网站名重复 seo营销培训 公司做网站 运营商 网络安全 网站建设 腾 网络安全周启动一 做网站网站 网络安全周报告姚威信息安全 网站知识 信阳做网站 巢湖网站建设 网站建设新趋势 病毒性营销案例图片 怎么注册网站 3g网站设计 网站制作优化济南 网站套模版 青岛网站建设价格 惠州做网站 做网站网站 武汉网站设计公司 网络营销要点 网络安全的信息 跨境电商是如何营销 山东临沂网站建设 网站制作公司 顺的 零食网络营销策划方案 共建网络安全的建议 沈阳科技网站首页 中山企业网站建设方案 网络安全和信息安全的区别 静安区品牌网站建设 网站建设维护 营销博文 网络安全那所大学有做网站公司 武汉 网络信息安全室 上海网络安全公司招聘 网站建设 腾 建的网站打开很慢 龙岗网站设计 优优营销软件站 营销型网站建设公司 酒店信息安全事故 杭州网络安全公司 网络安全项目方案 网站建设新趋势 巴彦淖尔市 网站建设 怎么做网站 手机版免费申请微网站 微信小程序与网络营销 化妆品 网站建设案例 移动信息安全总结报告,-1 手机网站建设的趋势 东莞建网站 合肥网站设计 有pc网站 网站格局 博客营销案列 移动信息安全总结报告,-1 零食网络营销策划方案 网络安全 项目工程海军工程大学信息安全 什么是网络安全技术 郑州好的网站设计公司 建的网站打开很慢 哪里的sem整合营销 南京营销型网站 手机设计培训网站建设 网络安全资料 网络安全等级测评 江苏网站建设机构 长春给企业做网站的公司 常见的网络安全威胁及防范措施 北京企业网站开发多少钱 seo营销培训 网络营销师百度百科 网站承建 怎么制作网站 常见的网络安全威胁及防范措施 共建网络安全的建议 网站建设及优化 赣icp 营销 病毒营销的定义与特点是什么 网络营销人才需求 网络安全教育大会 网络安全=信息安全 网站的定义 做网站网站 微信小程序与网络营销 互联网网络营销前景分析 微信广告和微信营销方案 信息网络安全包括 网络安全人才奖营销策略方案 给会所做网站 合肥网络安全大赛 合肥网络安全大赛 博客营销案列 病毒性营销案例图片 互联网网络营销前景分析 广州产品营销公司 营销是企业 巴彦淖尔市 网站建设 临沂网站维护公司 巢湖网站建设 东莞公司网站制作 广西 网站开发 网络营销行为有哪些特点 高校信息安全实验室 建网站啦 网站的定义 酒店信息安全事故 张店网站制作 山东临沂网站建设 微信营销案例分析总结 网络安全 项目工程海军工程大学信息安全 江苏网站建设机构 网站建设:中企动力 太原网站建设dweb 营销型网站建设公司 网络安全教育大会 化妆品 网站建设案例 公司做网站 武汉网站设计公司 运营商 网络安全 flash网站设计 长沙市营销工作室 优优营销软件站 微信小程序与网络营销 败笔网络安全技术 瑞士 网络安全信息安全 27号文件,-1 公司做网站 蓬莱建网站