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://XxP.rangche.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://A.rangche.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://6921cncom.rangche.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://6921cncom.rangche.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.

深圳网站推广公司网站的不同类网络安全与管理ppt无线网络安全事件东莞阿里网站设计信息安全事业单位网络安全监测软件三只松鼠 动漫营销策略德宏网站制作双11店铺营销亮点长沙 网站建设网络营销的价值是什么意思为了男人的承诺,萧晨强势回归,化身美女总裁的贴身保镖,横扫八方之敌,谱写王者传奇!   他——   登巅峰,掌生死,醒掌天下权,醉卧美人膝! —————— 小舞的微信公众号:寂mo的舞者,可以去关注哦! 小舞的QQ:1589045849,可以去加好友! 唯舞独尊①群:545765633!   某一天,一个神秘人的到来打破了徐世乔的平静生活。命运的齿轮开始旋转,在知道了自己父母双亲的死亡后,毅然前往中东,去消灭那已经变成食尸鬼的曾祖父。他的奇妙的冒险,开始了。被人们视为诅咒的少年洛原,将迎来怎样的人生命运?被迫逃离,降临到异世界,认识相似之人,他是否能重回奥拉星,再次见到伙伴们?作者:秋七幸 作品:立校高中 简介:许白和秦严在同一所高中而且心俩还是同桌(兼邻居)。后来他俩考上了同-所学校(清华),许白选择了土木工程系,而秦严则选了济经系。毕业后许白和秦严俩人过上了没差没涩的生活……他 出生即被认定不祥,资质愚笨,修炼极缓,被认为是六界最大的废物,天族的耻辱,但天有不测风云,一场变故的到来和她的出现,改变了他的走向,六界隐秘将浮出水面,原来他背负的如此之多 农村小伙秦天继承太乙神针,身怀失传古医术,被誉为一代天医, 从此他时来运转,纵横天下。  “神医,首富已经在门外等了你几个小时了,什么时候给他看病?”   秦天躺靠美人怀,摆摆手说道:“让他等着……”努力了十年,终于经济独立了,本以为可以彻底甩手享受生活,迟来的系统却逼着他去当个门主。 既然都当门主了,那更加不用那么拘束了,谁让这个宗门这么强呢,你说对吧? 咯做尼同学18岁的高三学生宫谷屾崎因在课上打瞌睡被异世界的女神洛认作废人,传送到了异世界,并与异世界的各派人物相识结交,最后参与争神之战中
兰州网站建设报价 低层次营销 信誉好的龙岗网站建设 北京市重大网络安全事件 关于开展通信网络安全检查工作的通知 北京朝阳网站设计 手机网站设计 信息安全 设计理念 网络营销和普通销售 信息安全 设计理念 什么原因意外【www.richdady.cn】 前世缘份的识别方法咨询【www.richdady.cn】 耳鸣对睡眠的影响【www.richdady.cn】 无形干扰的前世记忆【www.richdady.cn】 人际关系不好的解决方法【www.richdady.cn】 升迁障碍的职业发展威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 孩子不爱读书的原因咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 财运不佳【σσЗ8З55О88О√转ihbwel 大龄剩女的社交技巧【σσЗ8З55О88О√转ihbwel 莫名其妙感伤咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 小企业破产的主要原因咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 纠纷的自我保护咨询【σσЗ8З55О88О√转ihbwel 升迁障碍的咨询技巧【企鹅383550880】√转ihbwel 心慌胸闷头晕的自我提升咨询【企鹅383550880】√转ihbwel 冤亲债主对生活的影响咨询【σσЗ8З55О88О√转ihbwel 头脑混沌的咨询技巧【www.richdady.cn】√转ihbwel 婴灵的超度与心灵净化咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世缘份的缘分揭秘【企鹅383550880】√转ihbwel 为什么过世的心理调适咨询【σσЗ8З55О88О√转ihbwel 公司破产的心理调适【企鹅383550880】√转ihbwel 国家网络安全通报中心 专业网站设计建站 张健 中国信息安全认证中心 网络安全应急处理 中国国家信息安全政策 重庆网络营销服务. 佛山网站seo 手机模板网站 国际网络安全论坛2017 网络信息安全经信委公安,-1 网络安全测评机构资质 北京网络安全公司排名 网站建设公司 网络营销的价值是什么意思 网络安全日志 蛋糕店如何做饥饿营销策略 衡水做网站公司 免费网站设计 2015亚太信息安全峰会 在线营销型网站 信息安全企业数量 请举几个web2.0风格的网站例子(中/英文)分别说明其网站构架 网站建设公司 网络营销的适用范围 综合营销软件 国家信息安全保护等级 美国 网络安全机构 如何建立网站 yunos 信息安全 兰州网站建设报价 信息安全周 国家网络安全通报中心 请举几个web2.0风格的网站例子(中/英文)分别说明其网站构架 请举几个web2.0风格的网站例子(中/英文)分别说明其网站构架 网络营销事件营销 网络安全检测系统 电脑信息安全 东莞阿里网站设计 手机网站设计 信息安全等级保护依据 网络安全作业平台 网站不收录 自已建网站 上海的广告公司网站建设 全网营销包含哪些 信息安全企业数量 深圳网站推广公司 广东网络安全 中国国家信息安全政策 信息安全测评招聘,-1 网络安全测评机构资质 浦东新区苏州网站建设 饥饿营销案例有哪些 中国国家信息安全政策 公安网络安全部门 青岛专业餐饮网站制作 培训营销 公安网络安全部门 广东网络安全 网络安全应急处理 信息安全周 虎门做网站 佛山网站seo 东莞阿里网站设计 在线营销型网站 上海计算机信息网络安全协会 闵行做网站 公司网站重新建站通知 公安网络信息安全 南京 网站开发 请举几个web2.0风格的网站例子(中/英文)分别说明其网站构架 信息安全企业数量 专业网站设计建站 信息安全四大会议网站建设 武汉 蛋糕店如何做饥饿营销策略 综合营销软件 网站制作资讯 泉州石狮网络营销推广 关于网络安全的误解 全网营销软件 网络信息安全中的数据恢复方案 德宏网站制作双11店铺营销亮点 北京网络安全公司排名 国际网络安全论坛2017 网络安全 活跃 论坛 网络安全法与信息安全 网站的不同类网络安全与管理ppt 电脑信息安全 化妆品网络营销好做吗 创手机网站 中山营销型网站设计 营销广告的意义 张店做网站 服务营销网 关于开展通信网络安全检查工作的通知 2015亚太信息安全峰会 电脑信息安全 成都国家信息安全中心 android网络安全开发 重庆企业网络营销团队南阳开网站制作 网络安全作业平台 电脑信息安全 专业网站设计建站 公安网络安全部门 云创通营销手机多少钱 南宁做网站 信息安全测评招聘,-1 信息安全专项风险评估 国家信息安全等级保护工作协调小组办公室推荐测评机构名单 武汉网站建设企业 网络有哪些营销方式 武汉网站开发公司 美国 网络安全机构 网络安全日志 设计网站需要什么条件 品牌网站开发 低层次营销 饥饿营销案例有哪些 优秀网站设计 请举几个web2.0风格的网站例子(中/英文)分别说明其网站构架 网络安全日志 化妆品网络营销好做吗 上海计算机信息网络安全协会 珠海移动网站建设费用 在线营销型网站 重庆网站设计 免费网站设计 德宏网站制作双11店铺营销亮点 自己怎么做网站 首届cog信息安全论坛 营销公司竞争分析报告 网络营销十大问题及对策 个人注册网站.com 公安网络信息安全 网络安全监测软件