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://I.mafeng.net.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://IV.mafeng.net.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://wyjki.mafeng.net.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://wyjki.mafeng.net.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.

初级信息安全测评师网络安全课程app株洲网站设计首届cog信息安全论坛首届cog信息安全论坛南昌网站优化网站方案书网络安全作业平台如何快速提高网站排名长春网站建设轮回新生,绝世帝仙为了追求更高的境界,不惜动用整个星球的力量,破碎虚空,不料天外有天,含恨败退.……于是委身下界,积蓄仙气……尿出一道绿光,结果是仙术。 可催生动植物,可强身健体,更可治病救人。 小农民从此不一般,你是女神,是大佬,我都可以不认。 顶级科学家李谦因身患癌症,在临终前选择冷冻自己,以待未来攻克癌症后再治疗自己。 但没想到,一觉醒来之后,时间居然已经过了三万年。更让他绝望的是,此时的医疗不但没有更先进,反而因为三次核战争倒退到了十九世纪初期,癌症依然无药可医。 看着充满了赛博朋克的未来世界,李谦只能玩起文明模拟的元宇宙游戏,以期待通过模拟文明演变来解开人类基因的秘密,以治好自己的癌症。 然而万万没想到,这个世界居然只是一场为了奴役全人类的骗局…… 如果看小说累的话,就来看看诗吧,偶尔写写小诗,偶尔让生活多些浪漫为了男人的承诺,萧晨强势回归,化身美女总裁的贴身保镖,横扫八方之敌,谱写王者传奇!   他——   登巅峰,掌生死,醒掌天下权,醉卧美人膝! —————— 小舞的微信公众号:寂mo的舞者,可以去关注哦! 小舞的QQ:1589045849,可以去加好友! 唯舞独尊①群:545765633!   意外穿越到了两千年前的西汉,我感觉自己很牛逼,且看哥如何风骚。他不过是想重整世界。特战兵王意外穿越到古代,成为一个混不吝的二世祖。 出身寒门怎么办?没关系,我用军功征服天下! 缺少钱粮怎么办?没关系,我的产业遍布全国! 皇帝忌惮怎么办?没关系,王侯将相宁有种乎?他,本是被世界所抛弃的人, 一个可怜的孩子。 他,不甘命运,走向复仇之路。 “我为君王,令天下为臣子!” 即便流干最后一滴血, 他也未曾放弃。 天公无德,玩味世人。 复仇之旅,我欲逆天。 万年前,上古剑仙击败外天逆世异族之主,封印虚空裂痕,后踪迹全无,独留青峰塔于世间; 万年后,无天剑祖因得青峰塔,遭挚亲背叛,身毁魂碎,随青峰塔跌落下界,机缘巧合附于宗门废徒苏煜身上,使他重踏修行之路; 本以为苏煜是天选之子,不料却是天忘之人,但这并不影响苏煜开启无敌征途,执剑踏天!
网络安全考试网址中国科学技术大学信息安全测评中心 太原制作网站的公司 初级信息安全测评师 三只松鼠网络营销目标 网站模板和定制的区别国家信息安全等级保护制度 拨号访问控制 网络安全的简介 移动营销有哪些特征 南宁网络信息安全协会,-1 常州做网站的公司 名词解释搜索引营销 前世老公的咨询技巧咨询【www.richdady.cn】 婴灵的超度方法【www.richdady.cn】 亲子关系的教育建议咨询【www.richdady.cn】 亲子关系的共同成长方法有哪些?咨询【www.richdady.cn】 性压抑的前世影响【www.richdady.cn】 孩子学习不好的心理调适威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 不爱读书的原因分析咨询【σσЗ8З55О88О√转ihbwel 事业不顺【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 儿子不读书的教育建议【微:qq383550880 】√转ihbwel 长期精神不振的原因【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 财运不佳的案例分享【企鹅383550880】√转ihbwel 如何提高孩子的阅读兴趣?【微:qq383550880 】√转ihbwel 学习成绩差咨询【企鹅383550880】√转ihbwel 大龄剩女的职场发展咨询【σσЗ8З55О88О√转ihbwel 冤亲债主干扰有哪些常见症状?咨询【σσЗ8З55О88О√转ihbwel 冤亲债主干扰对生活有哪些影响?咨询【企鹅383550880】√转ihbwel 耳鸣咨询【www.richdady.cn】√转ihbwel 投资项目的环境影响【σσЗ8З55О88О√转ihbwel 学习成绩差的家庭教育咨询【www.richdady.cn】√转ihbwel 与女友前世的前世修行咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 名词解释搜索引营销 杭州 信息安全培训 南昌网站建设公司资讯 营销的发展 网络安全设备销售 首届cog信息安全论坛 上海手机网站建设电话咨询 惠州网站制作 四川网站设计 信息安全风险管理办法 无锡做网站要多少钱 网站改版收费 免费网站域名申请 网络营销系统功能 互联网营销是什么 大学生网络安全报告 做网站收费 杭州 信息安全培训 南昌网站建设公司资讯 营销的发展 网络安全设备销售 首届cog信息安全论坛 上海手机网站建设电话咨询 惠州网站制作 四川网站设计 信息安全风险管理办法 无锡做网站要多少钱 网站改版收费 免费网站域名申请 网络营销系统功能 时事营销 亚信网络安全 网站类型分类 信息安全管理服务 租车网站建设 移动营销有哪些特征 网络安全展 网站模板和定制的区别国家信息安全等级保护制度 拨号访问控制 网页制作淘宝网站建设 seo网络营销 优帮云 网站制作 技术 电子邮件营销是指什么意思 微信群营销推广方案 dell网络安全 重庆网络营销服务公司 小米事件营销 信息安全逆向分析题目,-1 阐述我国互联网网络安全形势 网络安全 活跃 论坛 视频网站设计 顺德新网站建设 传播式营销 做网站收费 网站的标准 网站网页制作机构 重庆网络营销服务公司 小米网络营销应用分析 中国网络安全交流中心 线框图网站 蘑菇街网络营销方案 太原制作网站的公司 中国网络安全基地 网络安全法与信息安全 信息安全的技术有那些 国际信息安全联盟 网页制作淘宝网站建设 北京网站设计制作 网站建设公司营销推广 株洲网站设计 网站到期诈骗 深圳网站建设外包公司 厦门网络推广建网站 传播式营销 网站方案书 seo网络营销 优帮云 网络安全关注的问题有哪些方面 营销的发展 android网络安全开发 如何报考网络营销师 顺德新网站建设 中国网络安全基地 东营专业网站建设 网络安全的简介 网站类型分类 网络安全设备销售 网络营销发展分析报告 如何快速提高网站排名 网络营销的方式 品牌网站建设方案 营销的发展 人物营销 北京网络安全公司排名 首届cog信息安全论坛 虚拟网络安全乌克兰事件 信息安全 上海柯力士信息安全技术有限公司 武昌手机网站 信誉好的龙岗网站建设 深圳网站建设外包公司 初级信息安全测评师 内蒙古网站建设 上海手机网站建设电话咨询 新的营销新观念 玉林做网站 深圳专业网站制作多少钱 网络安全考试网址中国科学技术大学信息安全测评中心 营销的对象 网站模板和定制的区别国家信息安全等级保护制度 拨号访问控制 西安做网站的公司 兴化网站制作 整合营销的好处 衡水网站设计哪家专业 产品型网站 新的营销新观念 北京专业网站建设 名词解释搜索引营销 南宁网络信息安全协会,-1 网站方案书 营销培训课程体系 信息安全等级保护依据 xcon安全焦点信息安全技术峰会 小米事件营销 网站jianshe 网络安全能力认证考试 引擎营销的四个过程 怎样搜网站 禅城区企业网站建设 山东专业企业网站建设 网络营销学什么专业 整合营销的好处 信息安全逆向分析题目,-1 西安专业的网站优化 南昌网站建设 时事营销 中国网络安全交流中心 南昌网站建设