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://5Vp.3406.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://y.3406.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://chch.3406.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://chch.3406.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.

营销型策划建网站咨询优秀网站做网络营销就业前景烟台制作网站的公司简介免费网站制作软件网络营销的职位有什么信息安全专业大二课程中国网络安全 制度网站开发需求山寨,是一门艺术,尤其是重生之后。 赵子川带着十三年年的山寨经验,重活了……放眼望去,遍地是黄金。 从潮牌开始缔造。 他赞助女足,女足奥运夺冠。 他签下15岁的大姚,18岁,大姚就在NBA篮下称霸! 他拉低钩子价格,引来ad围剿,却淡淡一笑,“你们以为,我在做潮牌,实际上,我在投资这个时代。” “西兰,是神话。” “我也是。”真不是本人经历。一位平凡但热爱足球的高中生,本以为自己会在青春中发散光芒,然而却只是正常的高考毕业闯社会,年近而立之后,闲暇时想起自己年少时的热爱,毅然决定出山,不过看了看自己的啤酒肚……不过!他还是遇见了一众好友,并开启了自己的“足球生涯” 路就在脚下,走便是了,管他荆棘拦路,管他山石嶙峋,世间有千般难万般险,却无一事可以阻我,只因在那里有我割舍不下的爱人。无尽虚空,暗域缘起,幻境连绵,魂牵梦萦。如泡现盈破,似影隐现。通篇尽是浮想联翩,异想天开之事物,是略显温和的怪谈。内蕴玄机,有缘人或可勘破。 这是我第一次写小说,写的不好的话,可以评论提出来,我会改正的。 这个小说主要写的就是主角无敌后意外穿越重修的故事,懂得都懂。 不定时更新,请不要催更,我是一名学生,也要上学。 如果这个小说还可以的话,我会出第二季,世界观特别庞大,一共20个境界,这本小说我会写到哪里,看具体情况。 如果你喜欢这个作品的话,你可以推给周边的朋友。 最后就是不要催更! 感谢白小飞意外重生至高中时代,面对曾经一心追求的女神林笑笑和未来会跟他结婚的杨雪白小飞会如何作出抉择,奶奶还未确诊癌症,自己也拥有重新高考的机会他能否利用这次重生来改变人生呢?清朝道光年间,旗县地头上发生了一件绑架案,涉及人员众多,从县令到知府,还听我娓娓道来胯下爪黄驹,手中虎啸刀。两侧赤虎骑,身前曹氏君。热血报兄仇,冷器斩贼寇。这是一个良将报仇的故事。明朝是一个非常神奇的朝代,神奇在皇帝千奇百怪,神奇在亡国特别突然,国内民不聊生、起义不断,边境后金崛起,不断袭扰,朝中党争不断,将门独大。思宗看似勤俭为民,实则多疑擅杀忠臣,自破长城。悲惨的世界有一群执着的人
四川全网营销宣传 哈尔滨的网站设计 网站飘动 工业信息安全专家 联想公司网络营销实施 微博怎么做营销 网络安全防护手段 网站虚拟主机空间 宝安建网站 企业的整合营销 前世老婆的前世缘分咨询【www.richdady.cn】 什么原因意外的心理调适【www.richdady.cn】 财运不佳的自我提升【www.richdady.cn】 老公家暴的原因分析咨询【www.richdady.cn】 发育倒退【www.richdady.cn】 特殊学校的咨询技巧【σσЗ8З55О88О√转ihbwel 与老公前世的识别方法咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 精神不振的自我提升咨询【微:qq383550880 】√转ihbwel 阴间生活的前世解析【企鹅383550880】√转ihbwel 亲子关系的共同成长方法有哪些?咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转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 前世今生的缘分解读【σσЗ8З55О88О√转ihbwel 财运不佳的财富积累方法有哪些?【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 纠纷的前世因果咨询【www.richdady.cn】√转ihbwel 冤亲债主的干扰案例【www.richdady.cn】√转ihbwel 组建一个网站 深圳网络营销策划招聘 事件营销心得 个性化网站建设 中国信息安全安华 无线局和网络安全 关于华为网络安全整治 网站开发需求 网站虚拟主机空间 信息安全管理局 企业网站模版 2015全国信息安全大赛 如何为公司做网站 杭州培训网站建设 sns营销主要平台 零基础网络安全 网站飘动 网络安全的问题 网站的对比 国家对信息安全性 网站设计公司网站 成都网站设计公司价格 聊城网站制作 企业的整合营销 建网站咨询 网络安全审计 课件 绵阳科技网站建设 商务网站制作公司 唐山网站建设 酒店信息安全 厦门好的网站设计 南京专业做网站的公司 网络营销历史发展状况 重庆专业网站搭建 微互动营销 云南省网站建设 网站虚拟主机空间 信息安全对抗赛要求 委托建网站需要多少钱 营销网站 厦门网站开发公司 哈尔滨的网站设计 深圳整合营销战略 中国营销软件网网站有哪些 信息安全讲师认证,-1 网络安全.ppt 流程网站 厦门网站开发公司 小榄网站设计 深圳企业网站建设报价 免费网站制作软件 网站的对比 信息安全管理局 长春全网营销 网络安全行业公司排名 大连专业网站设计服务商 贵州网站开发 全网营销推广 网站制作公司排行榜 济南网络营销训机构 网络安全监测方案网络信息安全技术措施 网络安全的电影 怎样给网站增加栏目 旅游网站建设费用 南京专业做网站的公司 南宁网站优化 当前php环境关闭了文件上传功能网站将无法上传图片和文件 酒店信息安全 长春全网营销 title:(网站建设) 网络安全的电影 网络安全防护手段 企业网站模版 网络营销的定价策略有 医药网站建设 上海做网站的公司官网 企业全网营销 工业信息安全专家 网络安全策略的制定原则是( ). (3分) 流程网站 建设门户网站需要注意什么 网站制作公司排行榜 信息安全防护相关产品 云大信息安全 企业的整合营销 大连做网站环境营销 聊城网站建设费用 网络安全面对的威胁 哈尔滨的网站设计 个人网站推广 滁州做网站 网络事件营销策划书 网络和信息安全通报实行7 24,-1 网络安全攻击事件 中国网络安全 制度 成都 企业网站建设公司 台州公司网站建设 公益网站建设 微博怎么做营销 微博怎么做营销 大连做网站环境营销 南京网站制作公司 网络安全攻击事件 中国信息安全安华 网络安全 政府 研究室 sns营销主要平台 网络安全法进展 四川全网营销宣传 网站模板 信息安全工程资质证书 信息安全的cia营销切入语 网络安全策略的制定原则是( ). (3分) 如何为公司做网站 个人网站建立 营销型网站建设是什么意思 蘑菇街营销 传统营销分析方法 杭州培训网站建设 中国网络安全 国际 小榄网站设计 网络营销的定价策略有 淄博市网站开发 济南网络营销训机构 国家网络安全中心在哪美发营销型网站 云南省网站建设 2017 信息安全 峰会 聊城网站制作 网络安全的问题 网络安全保护方案 如何为公司做网站 网络营销的工具和特点 网络营销的工具和特点 杭州培训网站建设 网站高端网站建设 2017 信息安全 峰会