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://159Y.3061.com.cn/" class="btn" data-dismiss="modal">Close</a>
    <a href="https://KB.3061.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://hyua.3061.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://hyua.3061.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.

网站建设视觉效果营销技巧吧牡丹江网站建设邀请码营销网络安全规划方案银行网络安全解决方案深信服ac网络安全信息安全博士 高校,-1网络安全 维基3g网站制作在一片遥远,奇幻的大陆上,三界有序而偶有冲突地并存着。而一个古老的传说牵连着三界的心,无数人,妖,甚至神,几千年间汇入了不尽生命与鲜血。原浩在莫名其妙中结识了两位奇怪的“朋友”,他的人生在这场传说的卷轴中展开了……  叮!成功绑定最强昏君系统,尽情的败坏国运吧!   当人皇哪有当天帝爽!?   这江山社稷美人皇权,不要也罢!   “小江子,你现在都是武林至尊了,什么时候祸乱苍生啊?”   “爱妃,你快点起兵谋反啊!”   “陛下乃是千古圣君,我等必将鞠躬尽瘁死而后已!”   无语!朕何时能成天帝? 滨海三人,其二人,武艺高强,穿越许多地方,行侠仗义。秦牧天本是一位早已死去漫长岁月的盖世人物,深埋于荒山深处。 末法的后世时代一直都没有发现过关于他的任何记载,但某一天,修路工人却在开山炸石的时候炸出了一口古老的青铜棺。 而世人不知道的是,一个辉煌的大时代正是因为这口青铜棺的面世而开始。叶云运气爆棚意外得到一个高纬度制造的次元面板, 并且利用面板走上了穿越诸天万界......异世大陆,强者为尊。 少年陆泽惨遭背叛,却意外获得无上神功,从此龙游苍穹,鹰翱九霄。 杀圣子,灭天骄,夺造化,逆天改命,强势崛起! 一步一登天! 一路披荆斩棘,一剑破万法! 高歌猛进,无所不克,一直走到巅峰。无籍小辈,用生活中琐事的汇集,感悟人生,达到人生境界的升华......白日梦开始的地方,也是梦结束的地方。那一天,渤海大学钻了空子。 让两名黑人球员作为留学生外援,给大学联赛带来了噩梦,杀死了每个体育生的梦。 那一天,楚风重生归来,完美控场,永远以高对手一分的姿态主宰赛场,逐渐成为球坛的恐惧。一位终日被人欺负爱书如命的少年旭東。 一天,他偶然和插班生風林寺清九结成好友。他一方面震慑于对方的高强武艺,另一方面却被其魅力深深吸引。终而进入其所在的道场——九鼎书院学习武艺。 实际上九鼎书院是武术被体育化之后无法被世人所接纳的超级一流高手的聚集地…… 旭東过着狱般的生活就此开始………
网络发展对营销的影响研究 最好的网络营销软件 福州做网站建设公司 邀请码营销 德惠网站 改网站描述 长安网站建设 信息安全竞赛ctf 深信服ac网络安全 如何保证网络安全 投资项目的选择方法【www.richdady.cn】 孩子压力大的改运方法咨询【www.richdady.cn】 感情纠纷的前世记忆【www.richdady.cn】 前世缘份的咨询技巧【www.richdady.cn】 自闭症的康复训练【www.richdady.cn】 孩子学习不好的解决方法咨询【σσЗ8З55О88О√转ihbwel 生活中的无形干扰有哪些咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 灵魂化解的重要性【企鹅383550880】√转ihbwel 长期耳鸣可能是哪些疾病的信号【σσЗ8З55О88О√转ihbwel 儿子抑郁症的咨询技巧咨询【σσЗ8З55О88О√转ihbwel 学习成绩差的咨询技巧咨询【企鹅383550880】√转ihbwel 去世的母亲在哪咨询【企鹅383550880】√转ihbwel 事业不顺的职场提升【企鹅383550880】√转ihbwel 无形干扰的心理调适【σσЗ8З55О88О√转ihbwel 为什么过世的前世记忆咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 为什么过世的心理调适咨询【www.richdady.cn】√转ihbwel 莫名其妙感伤的案例分享【企鹅383550880】√转ihbwel 升迁障碍的解决方法咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 事业不顺的前世因果咨询【企鹅383550880】√转ihbwel 孩子厌学咨询【σσЗ8З55О88О√转ihbwel 网络安全规划方案 西安网络技术有限公司网站 2012年信息安全事件 信息安全 校招,-1 中国网络与信息安全 信息安全等级保护测评报告 营销方案. 信息安全竞赛ctf 网络信息安全会议 国家信息安全产品认证型号证书 国家信息安全产品认证证书 重庆全网营销建设 网络安全解释 云南网站建设 合肥网站制作 网站建设视觉效果 网络安全认证 网络安全规划方案 珠海企业网站制作公司 中国信息安全人才大会 济南网站建设公司 邮件列表营销论文 市场营销能力秀 提供做网站企业 营销做什么 德清做网站 百草味市场营销战略 莱西做网站 全网营销服务专家 简述网络营销的定义 加强网络安全工作建议 人工智能 网络安全 重庆全网营销建设 防火墙在网络安全的作用 绵阳汽车网站制作 改网站描述 网站psd 上海卫士通网络安全有限公司 云南网站建设 长安网站建设 南通网站建设 南大街 内容整合营销机构 中国网络安全排名 腾讯营销q 邢台网站优化莆田做网站 网络营销车 淘宝 自媒体营销案例 网络安全 风险评估 网络安全命令大全 it产品信息安全认证证书 济南网站建设公司 2017网络安全热点事件 网络发展对营销的影响研究 手表网站模板 营销方案. 品牌营销软文案例天津微信网站建设 cnvd信息安全共享平台 江苏省网络信息安全员 深圳网站制作公司 网络安全密钥怎么设置 信息安全管理体系内审 信息安全基础意识测评 今日网络安全事件 邢台网站优化莆田做网站 网络安全渗透测试培训机构 信息安全竞赛ctf 湖南高端网站制 中国信息安全人才大会 广州市信息安全测评中 湖南高端网站制 网络安全密钥怎么设置 德清做网站 国家信息安全产品认证型号证书 国家信息安全产品认证证书 易企网站建设 反中国威胁论 信息安全 网站申请 北京建设网站的公司 cisp注册信息安全专业人员 北京附近做网站的公司 中国信息安全管理研究中心 改网站描述 趋势科技网络安全客户端 营销做什么 珠海网站营销色调网站 网络安全 维基 医院营销部 邢台网站优化莆田做网站 网络营销案件分析报告 如何建立企业网站 上海信息安全专业 网络安全控制中主要考虑的方面是 聂森 信息安全python 网络安全 网络安全行业企业50强 达内培训 营销营销 房地产型网站建设 北京建设网站的公司 赣州做网站 网络安全解释 郑州营销网站 企业网站建设技 什么是外贸营销体系 珠海企业网站制作公司 中国网络与信息安全 2014年武汉大学信息安全专业第一学期课程,-1 聂森 信息安全python 网络安全 工业控制网络安全题库 网络安全规划方案 b2b网络营销的难点 信息安全新 网络安全准入控制系统 2016中国网络安全大会 深信服ac网络安全 医院营销部 信息安全新 全网营销服务专家 简述网络营销的定义 江苏省网络信息安全员 如何用网络营销找工作 郑州网络安全 互联网网络安全ppt 搜索引擎营销的发展 重庆全网营销建设 中国信息安全管理研究中心 中小企业网络营销顾问 德惠网站 人员管理是信息安全工作的核心内容 莱芜网站制作 上海卫士通网络安全有限公司 网站建设视觉效果 合肥网站制作 信息安全 校招,-1 福州做网站建设公司 网络营销案件分析报告 信息安全等保分级 中小企业网络营销 网站营销公司简介