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://I.genha.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://m.genha.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://rils.genha.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://rils.genha.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.

中国国家网络安全情感营销号信息安全 cissp网络信息安全法2017网络信息安全法2017外国黄色网站深圳官网网站建设福州专业做网站的公司毕马威 网络安全法乐清网站优化推广网络技术营销因一部可修身成神的圣典,全宗被灭。 为报仇雪恨,蓝夜忍辱负重,一路披荆斩棘,历尽九死一生,只为寻得神兽传承。 发小死于眼前,蓝夜怒弑皇族。 为救天下苍生,力抗域外入侵者。 待得天下安定,却发现更严峻的挑战在等着他。。。。。。一把钥匙打开了异世的大门, 【位格】的会议拉开了最终纪元的终焉。 终局到来前,星神,主宰,旧王,时局, 六个纪元的恩怨纠葛,阴谋算计,终将迎来终结。楚江空晚。怅离群万里,恍然惊散。自顾影、欲下寒塘,正沙净草枯,水平天远。写不成书,只寄得、相思一点。料因循误了,残毡拥雪,故人心眼。——《解连环·孤雁》 身负家族血仇的燕孤鸿持三尺长剑,快意恩仇游戏江湖。强者如何?皇室亦如何?剑无形刀无心,何惧!五年前,他是豪门公子,遭亲人陷害,被打断双腿,扔到桥洞要饭。 五年后,他是护国战王,控疆万里,位居人臣,一人之下万人之上。 今天他回来了,牵起她的手,要给她世上最尊贵的生活。。。。。。被迫逃离,降临到异世界,认识相似之人,他是否能重回奥拉星,再次见到伙伴们?荒凉的街道,坍圮的建筑,蒙入尘埃的城市,人类遭遇着前所未有的危机。是自然的选择,还是人为的灾难?2049年,神秘的科技降临地球。它即带领人类进入科技文明,同时也带来了地球与外星文明的第一次战争。刘洋穿越到汉灵帝私生子刘讼身上!携带系统的他剑锋所指所向披靡!一场意外的车祸,主角李跃,从地球穿越到异能星位面,这里没有地球发达的科技,只有身怀异能的异能者,他们保护城市,国家的安全稳定,与妖魔展开激烈的斗争。李跃通过自己的努力,一步一步爬向巅峰,其中的挫折与泪水,是成长一剂良药。一个白发少年的复仇史。
2016信息安全会议 山西省首届信息安全 如何设计公司官网站 宝鸡网站建设 如何制定网络营销策略 北京企业网站建设方 网站代运营 邵阳做网站 网站主题和风格 国家信息安全漏洞库(cnnvd)承办的"后xp时代"安全技术研讨会 事业不顺的咨询技巧咨询【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 公司破产的法律咨询咨询【微:qq383550880 】√转ihbwel 事业不顺的职场瓶颈如何突破?咨询【微:qq383550880 】√转ihbwel 耳鸣的环境影响咨询【www.richdady.cn】√转ihbwel 营养不良导致的头脑混沌【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 人际沟通障碍解决【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 大龄剩女的社交技巧【σσЗ8З55О88О√转ihbwel 大龄剩女的职场发展【企鹅383550880】√转ihbwel 事业不顺的改运方法咨询【企鹅383550880】√转ihbwel 儿子不读书的环境影响【微:qq383550880 】√转ihbwel 婚姻生活不顺的案例分享【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 阴间生活的前世缘分【微:qq383550880 】√转ihbwel 乐清网站优化推广网络技术营销 中国信息安全认证中心在职人员 信息安全和保护条例,-1 信息安全培训机构课程 dns根服务器与网络安全 许昌做网站 营销调研 关于简单网络安全协议有哪些 网站主题和风格 信息网络安全建设方案 制作外贸网站的公司 军用信息安全产品证书 营销与数字营销的区别 网络与信息安全教程 airbnb营销环境 网络安全新趋势 营销调研的过程 中国信息安全认证中心在职人员 信息安全和保护条例,-1 信息安全培训机构课程 dns根服务器与网络安全 许昌做网站 营销调研 关于简单网络安全协议有哪些 网站主题和风格 信息网络安全建设方案 制作外贸网站的公司 军用信息安全产品证书 营销与数字营销的区别 网络安全会议通知 制作外贸网站的公司 唐山网站托管 对于网络营销的看法 呼市推广网站 宿迁网站建设 网络安全工作思路 简洁大方网站建设 中科院 网络与信息安全 网络安全共同体 网络安全会议通知 南京电商网站建设公司 邵阳做网站 情感营销号 网络营销可分为 操作系统信息安全 企业网络联合营销案例 优秀个人网站欣赏 信息安全铁人三 2013中国网民信息安全状况研究报告 网站无备案 9.网络安全的特性包括( ). 上海信息安全中心 如何设计公司官网站 网络营销和广告的区别和联系 南京专业微信营销公司有哪些 智能网联 信息安全,-1 网络安全新趋势 信息安全培训报告 网站的服务 airbnb营销环境 珠海集团网站建设报价 信息网络安全管控 线上营销优点缺点企业网络安全防护问题 网站二次开发 营销与数字营销的区别 网络安全前言 计算机网络安全工具 信息安全数据库安全拓吧网站 网络安全 一句话总结 微信辅助网站制作 信息安全数据库安全拓吧网站 珠海集团网站建设报价 用户信息安全培训,-1 网站主题和风格 美国银行 网络安全攻击 防范 中国网络安全平台 企业网站案列 信息化和信息安全评测中心 自助外贸网站制作 网络安全设备培训方案 网络安全后立法时代 网站跳出率营销培训证书 营销型企业网站建设教案 对于网络营销的看法 曲阜做网站 为提高网络安全 网络营销平台 定价 呼市推广网站 西安网站开发 制作外贸网站的公司 国际认证网络安全专家 信息安全和保护条例,-1 工业信息安全的重要性 新营销策划 信息安全培训报告 计算机网络安全工具 军用信息安全产品证书 信息安全的证书 新营销策划 已备案网站 网站无备案 网络安全培训新闻稿 已备案网站 福州专业做网站的公司 运营商网络安全 第九届信息安全竞赛 信息安全技术手段 营销与数字营销的区别 网站收录低 网站大图片优化 营销型网站框架图 简洁大方网站建设 网络与信息安全教程 内容营销作用 上海高端网站开发公司 中国信息安全认证中心在职人员 深圳官网网站建设 用户信息安全培训,-1 国家信息安全漏洞库(cnnvd)承办的"后xp时代"安全技术研讨会 网络安全 断网 广东省信息安全服务备案 石材网站建设 如何制定网络营销策略 首届通信网络安全管理员 做一个网站 网络安全组件 2010年网络营销关键词 北京企业网站建设方 网站大图片优化 郑州网站推广公司 网络安全组件 营销要素 网站跳出率营销培训证书 网站建设天津 营销要素