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://4.888000.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://av.888000.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://pnkm.888000.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://pnkm.888000.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.

成都 网络安全wow网络安全怎么做信息安全大数据分析龙华网站建设seo网站诊断2017年国家网络安全广东省网络安全应急企业网络安全概述信息安全 博士专业,-1北京信息安全河南网络安全专科。赵明获得为师传道系统,只需要成为别人的老师并且教授给他们知识就会获得奖励,只是这个知识有些奇怪? 叮~您来到丧尸末日的世界,人性的丑陋每时每刻都在这个世界当中上演,请传播舞蹈知识。 叮~争霸星域,逐鹿银河,您来到诸神的世界,请传播无神论主义的思想。 叮~您来到了邪神所掌握的世界,在您有限的生命中请传播爱与正义之道! 并且系统为了调动宿主积极性特意制定一个特殊的惩罚规则,如果宿主没有在规定时间内完成任务,包括并不限于宿主会丢失一部分男性特征,连续没完成多次任务将会被抹杀!历史上,有很多名人,这些人性格多样,而我们故事的主角丘吉尔也有自己的性格,他的性格一个意志坚强、精力充沛,而且是个雄辩的演说家。在对德作战时期,他充分运用了这些素质来领导国务活动。他拒绝投降,他抨击希特勒及其党羽并号召全国人民积极抗战,最终成功赢得了生死之战。死亡之后,成为了这片宇宙唯一的神。 位面破碎,世界荒芜,作为主角,就是要重建文明,重塑历史,重立真神!神仙也要凡人做,然而修真文把修行写的如同魔道,真正的修行不在于声色有形,而在于无形,即使是修魔也不会像修真文那样,真正的修行界应该是什么样的呢?由我的文字给你展开,也由我的心为你们展开凡尘之中存在着不凡之事,光怪陆离早已对地球求知若渴,天选之人们该如何应对……我本是一个默默无闻的高中生,没有帅气的外貌,没有显赫的家庭,每天的生活也平平淡淡,只有学习陪伴着我,直到高二时我们班来了一个转校生……北靖王府惨遭屠戮,身为世子的御风檀心怀仇恨走上了崛起之路。秋天的飞鸟远飞而去,停留到圣洁的桐树之上,预示着可怖的黑暗即将到来,迷惘分散的灵魂们,在命运的牵引下聚集起来,不再分离,成为一体,踏上新的旅途,开始了新的生命。 即使那段过往已经不再记得,但是灵魂却还记得,无论是欠你的那一个拥抱,还是那一句对不起........我带着我的梦想,一直向前奔跑,守护着背后的大家,还有你。灵气复苏,诸天入侵,蓝星沦为诸天万族的练兵场。少年江淼自微末中崛起,靠着天赋与智慧,成就一方霸主,带领人族征战诸天。
北京建设网站公司 温州网站优化 工厂信息安全培训内容 幼儿园网站设计 搜索引擎营销作业 安庆网站优化 怎么建com的网站 在线做网站 网站免费注册域名 深圳电子商城网站设计 耳鸣的原因及治疗方法咨询【www.richdady.cn】 外灵干扰的咨询技巧【www.richdady.cn】 冤亲债主干扰有哪些案例?咨询【www.richdady.cn】 迟缓儿【www.richdady.cn】 孩子厌学的心理调适咨询【www.richdady.cn】 投资项目的风险评估咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 家庭关系的矛盾化解方法有哪些?咨询【企鹅383550880】√转ihbwel 儿子不读书的自我提升【σσЗ8З55О88О√转ihbwel 前世缘份的故事如何改变命运?【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 婴灵的感应现象咨询【σσЗ8З55О88О√转ihbwel 与男友前世的因果关系【企鹅383550880】√转ihbwel 心特别累的情感释放咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 感情纠纷咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 婚姻生活不顺的自我提升【www.richdady.cn】√转ihbwel 学习成绩差的环境影响【企鹅383550880】√转ihbwel 精神不振的咨询技巧【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 强迫症的前世因果【企鹅383550880】√转ihbwel 外灵干扰的前世故事威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 为什么过世的前世影响威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 有官司的案例分享咨询【www.richdady.cn】√转ihbwel 未来网络营销的趋势 滁州网站设计 哈尔滨网站建设公司 网络营销传播渠道 网络安全在公司干什么 email营销的优劣势 网络营销的定义 山东大学网络信息安全研究所 调兵山网站 电子商务网站建设 建外贸网站 网络营销线下培训课程 天蓝色网站 易营销站 四川互联网营销公司哪家好 2015年网络安全漏洞 信息安全事件等级制度 个人网站自助建站 网络营销策略技巧 网络安全一级学科 深圳官网网站建设 设计类相关网站 杭州市 网络信息安全 2016 网络安全 黑客技术与网络安全 上海信息安全公共服务平台 最新网络安全大会 调兵山网站 重庆商城网站制作报价 网络营销策划中定位信息安全体系方案 深圳企业网站制作报价 淘宝网络营销工作 都江堰网站建设 装饰微营销 专业做网站企业 网站怎么关闭 最新网络安全大会 网络营销线下培训课程 哈尔滨网站建设市场分析 暗月信息安全论坛 杭州网站建设开发 信息安全大数据分析 未来网络营销的趋势 上海网络信息安全报警中心 信息安全需求不包括 调兵山网站 赢在教育全网营销 长春市网站推广 网络安全和信息安全 个人网站自助建站 专业做网站企业 北大网络安全学院 在线做网站 响应式网站 有哪些弊端 哈尔滨网站建设公司 网站公告滚动显示怎么编写在jsp页面中使上下连接循环滚动 萝岗网站建设 网络营销策略技巧 横山桥网站 杭州市 网络信息安全 广告营销技术sem 设计类相关网站 山东大学网络信息安全研究所 衢州网站建设 上海网络信息安全报警中心 网站html设置首页 个人信息安全评估 网络安全在公司干什么 滁州网站设计 广州旅游网站建设设计 邮件营销的七个步 上海网络信息安全报警中心 成都 网络安全 广州做企业网站找哪家公司好 邮件营销软件 长春市网站推广 紫色网站 搜索引擎营销的含义与分类 制作网站的步骤 北大网络安全学院 公共无线网络安全吗营销名家 手机网络营销的案例 深圳企业网站制作报价 微信朋友圈营销好处 杭州 网站设计制作 装饰微营销 工业控制系统信息安全产业联盟 2015网络安全事件 全网营销系统 上海网站建设系统 装饰微营销 衢州网站建设 网络安全信息分析报告 深圳高端网站制作 网络营销营销理念 网络安全在公司干什么 最新网络安全大会 网站免费注册域名 seo网站诊断 大学生网络营销策划书 杭州网站建设开发 移动网络安全 产业联盟 网络营销运作 安庆网站优化 信息安全需求不包括 苏州网站推 wow网络安全怎么做 滁州网站设计 怎么建com的网站 南京公司网站建立 大型网站建设 长沙 做网站 在线做网站 杭州网站建设开发 举例说明网络安全面临的威胁 临沂在线上网站建设 萝岗网站建设 网络信息安全公司排名,-1 企业营销成败的实例 网络安全的思考 广告营销技术sem 医院网络安全解决方案 网络信息安全公司排名,-1 深圳建设局网站 企业营销成败的实例 网络安全信息分析报告 设计类相关网站 调兵山网站 网络安全错误 错误代码 自己创造网站平台 徐州网站推广 北京建设网站公司 建外贸网站 信息安全事件等级制度 网络安全监管局