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://zM.locha.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://p.locha.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://weizhangtongcom.locha.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://weizhangtongcom.locha.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,获得地摊大力丸*5。” “叮..检测到你当日当周阅读时长达标,符合看免费小说就变强系统激活条件,恭喜你获得现金奖励10000,特殊技能过目不忘*1..” “书中自有颜如玉,书中自有黄金屋,看免费小说就变强,拒绝一切套路!” “你寻到黄金宝箱*1,获得可控核聚变技术*1..寻到暗金宝箱*1,获得完整修仙功法*1...” 那一日,一个自称女反派的绝美女人从书中跳出,痛哭流涕告诉石源,战神XX率十万虎贲回归血洗她全家,寻求石源帮助。 石源:“战神是吧?十万虎贲是吧?统统镇压丢进X院照顾战神他全家的生意...” 穿越到各大武侠融合的世界,成为了宋朝的皇子,赵月轩很是无奈。 咦,剧情还没展开?那我就不客气了。 九阳神功,九阴真经,神照经,六脉神剑……都是我的。 无忌别慌,本皇子这里有一本九阳神功,以后你好好修炼,千万别相信女人的话,让大哥帮你对付他们。 郭夫人,你也不想郭大侠在外受到伤害吧……“恭喜您,使用至尊版万界娃娃机抓取[狠人大帝的肚兜]一条。” “恭喜您,使用至尊版万界娃娃机抓取[萧炎的休书]一封。” “恭喜您,使用至尊版万界娃娃机抓取[地球出产的正宗假中华]一条。 ” 叶风华站在这大千世间的绝顶巅峰,忧郁地仰望星空,叹息道:“装逼非我意,但愿海波平” 天元历1214年,天元王朝在经历了数百年的繁荣后,终于是盛极必衰走向了衰亡,其时天下大乱群雄崛起,所谓秦失其鹿,天下共逐之!且看谢长安是如何从一个山野小子一步步的走向武学巅峰并一统天下,建立百花王朝,成为后世敬仰的百花大帝! 建立了粉丝群1012144039,小伙伴儿们可以进群一起畅聊。唯一微信公众号是老三的books。林洛在上班回家途中被异界召唤系统砸中所穿越的故事。记录走入大学之后的心路散情以民间传说及史实为资料,详细介绍了三国鼎立之前的故事,不一样的的三国,尽在《史书三国传》中穿越到1925年,成为从西点军校、D国军事学院毕业的张大帅第二子张宗卿。 偶获超级军工设计系统,各式超时代武器纷纷涌现。 彼时,时局维艰,华国尚未一统。 世界格局风云涌变,华国在二公子的带领下自此复兴,傲立于世。搬家工人杨林因被挂钟砸头而穿越玄幻世界,并成为一个微末小村长。 可这世界众强争霸,山贼横行,凶兽成灾,危机四伏,常人根本难以生存。 还好杨林获得了超能力,不仅能加速事物成长,还能让事物发生变异。 从此,他种珍草,养灵兽,炼仙丹,修神通! 多年后,村子里灵气滔天,龙盘凤栖,万灵来朝,俨然一派圣地景象! 众国主:杨大人所指的方向,就是我们的战场! 众势力:这辈子最幸运的事就是成为杨大人的附庸! 隐居大能:在下前来向杨大人求药!扑通… 不知不觉,杨林已经天下无敌。 杨林:我发四,我的初衷只是为了活下去,根本没想要称霸啊… 万物终结之地已重新诞生出再次终结万物之人。 在虚空之树的见证下,新一轮的进化游戏已经开始。 无数魔神间的博弈将再次拉开序幕! 生化危机,合金弹头,异形,星际争霸,拳皇,西游释厄传... 被选召的契约者们将进入一个又一个危机四伏的世界完成虚空之树所给予的各类挑战! Q群:311763467
网络安全法立法 金融信息安全体现在哪些方面 宁德网站建设 微网站定制 im 营销 win7网络安全模式上qq 网站页头 武汉网站设计 2012网络安全问题 目前国家信息安全形式 微信营销的传播优势 信息安全备案申请模版,-1 豆腐的营销方案怎么做 信息安全工程研究中心,-1 问答营销推广的作用 网站制作帐户设置 江苏营销型网站 怎么提高网络安全意识 网络安全技术视频教程 合肥做网站域名的公司 seo网站诊断 如何自己建网站 idcisp信息安全管理系统 网络营销精准定位 国家网络安全日是哪天 信息安全和保密的区别 昆明网站优化 东莞做网站的公司有哪些 为了提高网络安全 网站建设业务前景 建网站怎么上线 瑞星网络安全 信息安全技术概述,-1 网络安全应急响应机制 企业在b2b网络营销过程 重庆的网站建设公司 商贸公司营销网站建设 2013年 张建军 信息安全 信息安全等级保护工作会议 信息安全 开源 国家推进网络安全什么服务体系 2012网络安全问题 教育式营销 网络安全与病毒防范第三版 网络安全管理的意见 烟草行业信息系统安全等级保护与信息安全事件的定级准则 微网站定制 网络安全推广好做吗 科研信息安全 嘉兴的网站设计公司有哪些搜索引擎营销包括 瑞星网络安全预警系统 关于网络安全的作文 西安模板网站建设 网站制作帐户设置 信息安全运营中心产品 关于身份的信息安全 广州旅游网站建设设计 信息安全技术概述,-1 东莞做网站的公司有哪些 网络安全产品分类 公共信息网络安全监管 深圳电子商城网站设计 长沙 做网站 2011年网络安全事件 网络信息安全通报机制高逼格网站 一个完整的信息安全保障体系包括 近几年的网络安全事件 信息安全企业合作 网络安全信息公司 免费个人网站 厦门酒店网站建设 信息安全有哪些应用 网络营销在我国的发展现状 豆腐的营销方案怎么做 信息安全企业合作 目前国家信息安全形式 对信息安全管理威胁最大的是 网站优化怎么做 seo网站诊断 信息安全备份 厦门网站建设企业 整合营销运营 信息安全和保密的区别 营销qq效果怎样 im 营销 上海高端建站网站 雅虎网络安全 泉州网站设计 linux网络安全实践 pdf 江苏营销型网站 国家信息安全测评信息技术 创新的手机网站建设 网站设计样式 电子科技公司网站网页设计 关于身份的信息安全 廊坊设计网站公司 网站页头 近几年的网络安全事件 营销媒体 企业手机网站建设策划书 婚庆网络营销方案 网络安全威胁分析报告 网站注销太原网站改版 公安网络安全检查方案 机关信息安全服务主要有 解放军网络安全 豆腐的营销方案怎么做 网络安全应急响应机制 网站建设业务前景 信息安全竞赛flag 信息安全工程研究中心,-1 组建网站 建网站怎么上线 信息安全等级保护技术 如何开展网络社群营销 网络安全信息公司 瑞星网络安全 信息安全运营中心产品 网站制作帐户设置 设计网站酷 上海信息安全服务资质咨询,-1 上海市 信息安全大赛 申请网络安全证书 浙江网络安全论坛 网络安全应急响应机制 企业网络营销存在问题 泉州网站设计 建网站怎么上线 企业在b2b网络营销过程 上海信息安全服务资质咨询,-1 武汉网站设计 公安局网络安全部 烟草行业信息系统安全等级保护与信息安全事件的定级准则 信息安全备案申请模版,-1 昆明网站优化 淄博做网站 商贸公司营销网站建设 营销模式包含哪些内容 解放军网络安全 公司信息安全管理建议和意见 2013年 张建军 信息安全 重庆专业的网站建设公司 武汉企业制作网站 做网站推广 网络营销4p概念