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://n.4881.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://R1.4881.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://7jj.4881.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://7jj.4881.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.

信息安全产品类型国家网络安全宣传周活动主题微博营销的形式网络安全 一句话总结科技制作网站信息网络安全建设方案2013中国信息安全大会airbnb营销环境国内网络安全厂商排名乐清网站优化推广大陆之中强者血脉为王,血脉的力量决定成就,在这个世界血脉代表着一切,血脉强者有破天之威,灭地之能,看一个少年的血脉变异能否搅动风云。陆将一意外穿越到了异世界,可惜还没等他开心起来,他竟然又穿越回来了,就在他以为事情过去了,他又一次穿越了。 在这不断的穿越当中,他遇到了各种美女,各种异兽和各种奇珍。 新世界在他面前缓缓揭开了帷幕……我是一个老千,为了报仇,我坐上赌桌,以千术把仇人踢进赌博的深渊。老千生涯,靠赌为生。三教九流,江湖百态。 赌桌上,没有常胜将军,输一次,万劫不复。一次次圣杯战争给我们看到了人世之恶,那么平行时空的圣杯战争又会有什么不一样的人和事呢?魔尊李长风逃婚来到了人界,因贪恋人间美食被卷入一段段因果。 本书讲述一珠《寒冰珠》一书《蝶翼九式》 南道第一堂至宝寒冰珠,据传珠身内藏有某样宝物,竞相引人争夺,玄水门花影娘为人喜珠玉,不惜联合枫林庄少庄主叶秋扬夜探珍宝阁。 反转的是,寒冰珠到手还未悟热,又被暗杀堂主派出的人劫获,生性不服输的花影娘又游说落花谷主,聂冷心出山相助,再次上演夜探暗杀堂的戏码朋友一般叫我枫音道人 敌人一般叫我疯阴老魔 其实大家可以叫我风影,风灵月影的风影捣蛋捣蛋,鸡蛋不烂,不算好汉。 捣蛋带着满怀的激情,闯荡在这繁花的社会中来自星辰的启示, 人与神明相抗争。 超前进化的智慧, 痴迷幻梦不愿醒。 败军之将,梦途惊醒,逆天改命,铸就新(醒)程。 “恭喜您,使用至尊版万界娃娃机抓取[狠人大帝的肚兜]一条。” “恭喜您,使用至尊版万界娃娃机抓取[萧炎的休书]一封。” “恭喜您,使用至尊版万界娃娃机抓取[地球出产的正宗假中华]一条。 ” 叶风华站在这大千世间的绝顶巅峰,忧郁地仰望星空,叹息道:“装逼非我意,但愿海波平”
国家信息安全部大数据上市公司 杨卿+网络安全 计算机网络安全工具 网络信息安全公民权利 国家信息安全部大数据上市公司 亚马逊的网络营销形式 网络与信息安全教程 国家企业信息安全系统 高校信息安全和网络 整合营销的好处 冤亲债主干扰的心理影响咨询【www.richdady.cn】 与男友前世的记忆解析【www.richdady.cn】 强迫症的案例分享咨询【www.richdady.cn】 精神不振的解决方法咨询【www.richdady.cn】 感情纠纷的原因分析【www.richdady.cn】 儿子不读书的自我提升【www.richdady.cn】√转ihbwel 前世今生的轮回真相【σσЗ8З55О88О√转ihbwel 财运不佳的财富增长咨询【www.richdady.cn】√转ihbwel 家宅磁场的检测工具咨询【σσЗ8З55О88О√转ihbwel 如何知道自己有前世缘份?咨询【www.richdady.cn】√转ihbwel 家庭关系的心理调适方法有哪些?咨询【www.richdady.cn】√转ihbwel 儿子抑郁症的家庭支持【σσЗ8З55О88О√转ihbwel 婚姻生活不顺的沟通技巧【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 孩子学习不好的自我提升【微:qq383550880 】√转ihbwel 财运问题在线咨询咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 4. 财运与事业发展咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 脑部不清晰的心理调适咨询【σσЗ8З55О88О√转ihbwel 强迫症的心理调适【企鹅383550880】√转ihbwel 婚姻生活不顺的环境影响【企鹅383550880】√转ihbwel 事业不顺的原因分析威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 单页面网站 无锡建网站上海有什么网络安全公司 营销网站的成功案例 口碑营销百度百科 饥饿营销是经济现象吗 广州信息安全公司 网站类型分类 信息安全技术应用研究 国家信息安全部大数据上市公司 常州做网站 网络安全协会 活动 网络安全周 广州手机网站制作咨询 营销型网站成功案例 网络安全 被动攻击 曲阜做网站 实现微信微博微官网聚合营销一体化的移动互联电子商务解决方案 电商营销策划公司排名 网络安全 加密 网络安全领域什么漏洞 营销与数字营销的区别 目前使用的信息安全系统有那些 国家企业信息安全系统 四川网站设计 济南网站建设公 信息安全培训机构课程 网络安全 抓包 网络信息安全服务包括,-1 网络安全与管理 营销与数字营销的区别 网络营销在酒店营销中的应用浅析[毕业论文] - 毕业设计 南阳网站建设 香港 信息安全,-1 网站建设上海 第三届信息安全等级保护 2010年网络营销关键词 高唐网站建设服务商 网络安全公司前景 给 小企业 建设网站广州网站建设优化 网站类型分类 宝鸡网站建设 宝鸡网站建设 汕头网络营销 代理商营销 请举几个web2.0风格的网站例子(中/英文)分别说明其网站构架 响应式公司网站 广东手机网站建设费用 关于网络安全的证书 重庆微信营销 整合营销的好处 信息安全行业安全标准 网站模块 网络安全主题的文章 网站赞赏 淄博那里有做网站的 给 小企业 建设网站广州网站建设优化 企业网站建设定制 广州手机网站制作咨询 企业信息安全管理软件 名词解释搜索引营销 奥门网站建设 天融信网络安全准入 网络安全法案 广州信息安全公司 饥饿营销是经济现象吗 网络营销什么 2016年信息安全 网络安全防范方法 客户端安全 网关安全 服务器安全 安全服务 国家信息安全部大数据上市公司 网络安全法案 网站如何上传 选择佛山顺德网站设计 无锡建网站上海有什么网络安全公司 网络安全事件应急响应时间 整合营销的好处 网络安全领域什么漏洞 网络安全 加密 信息网络安全建设方案 建网站教学 科技制作网站 信息安全等级保护安全建设整改工作指南 中山网站建设文化方案 重庆新闻软文营销 小米的内容营销案例 济南网站建设公 企业网络联合营销案例 网络安全法 解读 贵州网站制作哪家好 微博营销的形式 营销型网站成功案例 信息安全测试,-1假网站备案 信息安全事件 复旦信息安全怎么样 第三届信息安全等级保护 邯郸做网站 国家信息网络安全部 网络安全 被动攻击 网络营销腾讯案例分析 网络营销模式发展现状 香港 信息安全,-1 2017网络安全专业 网站如何上传 杭州网络安全企业 网络安全法 解读 曲阜做网站 响应式公司网站 信息安全事件 营销与数字营销的区别 香港 信息安全,-1 支付宝的网络营销策划 深圳营销型网站建 2016信息安全会议 网络安全与管理 网站赞赏 如何快速提高网站排名 电商营销策划公司排名 国内网络安全厂商排名 深圳营销型网站建 国家网络安全宣传周活动主题 国家网络安全网站 网络安全公司有哪些 网络病毒营销活动 内容营销的模式 airbnb营销环境 工控信息安全技术 网络安全主管部门招聘 营销型企业网站建设教案 信息安全铁人三 湖北信息安全测评中心待遇 邵阳做网站 网页制作淘宝网站建设 阿凡达营销 网络安全测试标准 网络安全事件应急响应时间 信息安全技术应用研究