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://m.78880.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://v.78880.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://8k9.78880.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://8k9.78880.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.

网站和手机网站小米网络营销应用分析网站怎么设置支付功能潮州网络营销外包ibm 高级信息安全顾问信息安全保护等级测评标准信息安全工程专业兴趣研究报告网络安全法 中文域名网络营销优化顾问最先进的网络营销网站建设我们的优势[泛科幻·爽文·末世·丧尸]2199年,地球上的人类被迫通过各种方式重新认识“自己”。 原来,他们并不是地球原本的主人,或许,地球原本就没有主人。 苏美尔人与海王族人第一次星际战争延宕了100年之久 2199年, 战争和恶劣的自然条件使得人类数量迅速下降,从2099年的40亿暴风骤雨般地消减至1亿1千万 元世界被地球M国、约等国等瓜分为紫微星、太白座HDD等十三个区域,新的秩序即将来袭。。。 陈建国,这个D类人不知怎么就被推了上来。丧尸、修炼、称霸外星球。。。。 在地球,一亿多人被划分为A B C D四个等级,规则意识无处不在,为了保证生育质量,只允许A B 等级的人结婚。。  本书由《火宿c》与《背欺里》组成,可在章节中直接寻找两本小说。 火柴人的亿万事件,大篇分部,爱情、魔幻多条主线深夜的酒馆,推杯换盏 和你喝酒的,究竟是人是鬼 没有归宿的灵魂啊 在这里,你将得到救赎第三次世界大战后辐射扩散到宇宙各处,人类的基因发生了奇怪变化,就连地球也变了样。柴宗训因意外穿越到了后周,成为柴荣之子。年幼的他被迫登基皇位,内有权臣赵匡胤狼子野心,外有大辽,南唐,北汉,后蜀虎视眈眈。柴宗训按照已知历史一步步收服赵匡胤,经自己努力灭大辽南唐北汉后蜀一统天下。少年为了保护小师妹从深山走出,左手悬壶济世,右手飞针杀人,赚钱救人两不误。 不管权势滔天,还是富可敌国,在我面前都须低头。 尔等记住,若我避世,群雄并立,若我入世,天下无双! 主角不是穿越,也没花里胡哨!就一个平凡努力的小侠客!我儿子的故事一颗球形闪电包裹着一个灵魂来到地球,开启了一段神奇的旅程。穿越到平行世界的苏白,看着病危的妹妹,送外卖时觉醒歌神系统,系统告知唱歌可以获得神秘药剂,可以救助妹妹。 第一单外卖,竟然是警方在XX集团的卧底,看着其焦灼不安的心态,一首《孤勇者》送上,直接助警方破获大案,一举拿下XX集团,解救无数大夏国人。 第二单外卖,一首《天地龙鳞》,碾压所有人,包括顶流明星。 因为挡住资本力量的道路。 原本凭借《天地龙鳞》火爆网络的苏白,直接被网暴,各种质疑声出现。 而此时,警方官方直接公布了苏白唱《孤勇者》的画面。 瞬时间,整个网络爆了! 被解救的无数的大夏国人,更是为爱发声。 火爆全网的苏白,继续送着外卖。 所有人诧异,只有苏白自己知道,唯有送外卖,才能救濒危的妹妹。 当把所有的药剂都集齐,成功救下妹妹的时候。 苏白不知不觉,已经成为了当下互联网炙手可热的最火的歌手!
网站颜色表 营销型网站平台 常用的信息安全防护技术网络安全实际案例及分析 网络安全和信息化小组 防火墙技术在网络安全防护方面存在哪些不足?中国信息安全相关部门 信息安全体系建设项目,-1 网站设计公司 无锡 珠海专业机械网站建设 网络营销方向学什么不同 蠕虫病毒网络安全 网站推广营销案例 互联网营销理论 做手机网站 谷歌营销的概念与含义 谷歌营销的概念与含义 虚拟化 企业信息安全 网站建设我们的优势 新的营销新观念 信息安全的职业 信息安全事态或事件 营销型网站平台 网站jianshe 手机端网站设计 网络营销工程师是什么 网络安全和信息化小组 网络营销定价特点 北京信息安全行业,-1 网络安全日第几届 建设网站的意义 南京网络营销推广外包公司 如何创建网站 中国科学技术大学信息安全测评中心 创业做b2b行业网站正确划分行业别被建站公司忽悠 网络安全系统中的身份认证技术应用及其发展 西安做网站的公司 信息安全 笔记本 全球最大的网络安全公司 厦门手机网站建设公司 网络安全日第几届 信息安全资质咨询 能源行业网络信息安全 网站推广营销案例 互联网营销理论 数据网站怎么做的 网络营销优化顾问 谷歌营销的概念与含义 最先进的网络营销 北京信息安全测评认证中心 新的营销新观念 关于开展信息安全等级保护 安全建设整改工作的指导意见 信息安全等级最高级别 第四届网络安全大会 信息安全认证培训公司 专业的高端企业网站 网站转化率 俱乐部的推广营销 网站优化的优势 深圳网站建设外包公司 病毒营销传播渠道 小米网络营销应用分析 深圳整合网络营销推广 新的营销新观念 网站维护 我国信息安全等级划分 信息安全厂家 西安高端网站制作公司 信息安全的职业 网站建设工具 网络安全专业 网站网页设计公司 网站辅导运营与托管公司 广州网站建设优化 如何给网站添加音乐 网站设计公司 无锡 2018年的网站制作青岛建网站 企业网站建立哪 旅游电子商务网站的建设包括哪些步骤?网站建设中有哪些常用技术? 网络信息安全评测机构资质 网站颜色表 中国网络安全管理部门 中国网络营销环境研究现状分析 网络安全法 中文域名 常用的信息安全防护技术网络安全实际案例及分析 免费的网站申请 西安高端网站制作公司 网络营销工程师是什么 设备和网络安全专用 上海 信息网络安全管理企业网站的意义 4p组合 营销策略方案 微商城网站建设 上海电子商城网站制作 2018年的网站制作青岛建网站 快速做网站 上海手机网站建设电话咨询 厦门手机网站建设公司 网络安全宣传要求 营销外包公司 防火墙技术在网络安全防护方面存在哪些不足?中国信息安全相关部门 网络营销方向学什么不同 信息与'网络安全 计算机网络安全年会 营销型网站平台 信息安全培训目标是 安徽网站建设 第四届网络安全大会 永久免费建站网站 建设网站的意义 贵阳专业性网站制作 新建网站‘’ 潮州网络营销外包 网络营销定价特点 深圳网站建设外包公司 顺德新网站建设 信息安全事态或事件 复旦信息安全 设备和网络安全专用 东莞市策划营销顾问 网络安全和信息化小组 信息安全保护等级测评标准信息安全工程专业兴趣研究报告 武汉网站设计 北京信息安全测评认证中心 南京网络营销推广外包公司 网站子域名 顺德新网站建设 网站转化率 广东手机网站建设费用 南宁市制作网站的公司 云南信息安全等级保护 网站和手机网站 ibm 高级信息安全顾问 视频网站设计 网络安全平台登录 实施国家信息安全等级保护制度 网络安全应急处理流程图 信息安全资质咨询 昆明网站搜索优化 网上信息安全 山东济南网站制作优化 网络安全生态体系 团购网站建设 武汉网站设计 秦皇岛网站建设 网站设计公司 无锡 seo精准营销 优秀企业网站