Component hrang hrangte
Iconography, dropdown, input group, navigation, alerts leh thil dang tam tak pe turin reusable component dozen chuang siam a ni.
Iconography, dropdown, input group, navigation, alerts leh thil dang tam tak pe turin reusable component dozen chuang siam a ni.
Glyphicon Halflings set atanga font format-a glyph 250 chuang a awm bawk. Glyphicons Halflings hi a tlangpuiin a thlawna lei theih a ni lo a, mahse a siamtu hian Bootstrap atan a thlawnin a siamsak a ni. Lawmthu sawina atan a theih phawt chuan Glyphicons -a link back dah vek turin kan ngen a ni.
Performance avang hian icon zawng zawng hian base class leh individual icon class a mamawh vek a ni. Hman tur chuan a hnuaia code hi khawi hmunah pawh dah mai rawh. Padding dik tak neih theih nan icon leh text inkarah space dah ngei ang che.
Icon class te hi component dang nen direct in an inzawm thei lo. Element khata class dang nen hman dun loh tur a ni. Chu ai chuan nested add la, <span>
icon class te chu <span>
.
Icon class hi text content nei lo leh child element nei lo element-ah chauh hman tur a ni.
Bootstrap hian icon font file te chu ../fonts/
directory ah a awm dawn niin a ngai a, CSS file compile tawh te nen khaikhin chuan. Chu font file-te chu sawn emaw, hming thlak emaw tih awmzia chu kawng pathum zinga pakhat hmanga CSS update tihna a ni:
@icon-font-path
Source Less files a leh/ emaw @icon-font-name
variable te chu thlak rawh .url()
Compiled CSS ah chuan paths te chu thlak rawh .I development setup bik nena inmil tur option eng pawh hmang rawh.
Assistive technology thar ber berte chuan CSS siam chhuah content an puang dawn a, Unicode character bikte pawh an puang bawk ang. aria-hidden="true"
Screen reader-a output tum loh leh buaithlak tak awm lo turin (a bik takin icon te chu decoration atan chauh hman a nih chuan) attribute hmangin kan thup thin .
Icon awmzia sawina atana i hman chuan (decorative element ang chauh ni lovin), he awmzia hi assistive technology-ah pawh a thlen ngei ngei tur a ni – entirnan, thu belhchian dawl zawk, .sr-only
class nena hmuh theiha thup, dah tel bawk ang che.
Text dang nei lo control i siam a nih chuan ( <button>
icon chauh awmna ang chi) control tum hriat theihna tur content dang i pe fo tur a ni a, chutiang chuan assistive technology hmangtute tan awmzia a nei ang. Chutiang a nih chuan aria-label
control-ah ngei pawh attribute i dah thei ang.
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
Button-ah te, toolbar atan button group-ah te, navigation-ah te, prepended form input-ah te hmang ang che.
<button type="button" class="btn btn-default" aria-label="Left Align">
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>
Alert -a error message a nih thu hriattirna atana hman icon , .sr-only
assistive technology hmangtute hnena he hint thlenna tur text additional a awm bawk.
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
Enter a valid email address
</div>
Link list tarlanna tur toggleable, contextual menu a awm bawk. Dropdown JavaScript plugin hmangin interactive taka siam a ni .
Dropdown-a trigger leh dropdown menu chu .dropdown
, emaw , declare element dang emaw chhungah wrap rawh position: relative;
. Tichuan menu a HTML chu add leh ang che.
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
Dropdown menu te chu parent-ah dahin chunglam (hnuai lam ai chuan) expand turin a thlak theih .dropup
.
<div class="dropup">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropup
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
Default-ah chuan dropdown menu chu a chung atanga 100% in a parent veilam sir lamah a awm nghal vek a ni. Dropdown menu chu .dropdown-menu-right
a atanga dinglam hawiin add rawh ..dropdown-menu
Dropdown te chu CSS hmangin document flow pangngai chhungah automatic in a awm a. Hei hian dropdown te chu property thenkhat nei nu leh pate’n an crop thei a overflow
, viewport atanga ramri pawnah a lang thei tihna a ni. Heng thilte hi a lo chhuah ang zelin nangmah ngeiin hma la rawh.
.pull-right
loh.pull-right
v3.1.0 atang khan dropdown menu ah kan deprecated tawh a. Menu pakhat right-align tur chuan .dropdown-menu-right
. Navbar-a right-aligned nav components te hian he class mixin version hmangin menu chu automatic in align turin an hmang thin. Override tur chuan .dropdown-menu-left
.
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
...
</ul>
Dropdown menu eng pawha action section hrang hrangte label turin header dah la.
<ul class="dropdown-menu" aria-labelledby="dropdownMenu3">
...
<li class="dropdown-header">Dropdown header</li>
...
</ul>
Dropdown menu-a link series hrang hrang awmte chu divider dah la.
<ul class="dropdown-menu" aria-labelledby="dropdownMenuDivider">
...
<li role="separator" class="divider"></li>
...
</ul>
Link kha disable turin dropdown ah .disabled
a ah dah la .<li>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu4">
<li><a href="#">Regular link</a></li>
<li class="disabled"><a href="#">Disabled link</a></li>
<li><a href="#">Another link</a></li>
</ul>
Button hrang hrangte chu button group nen line khatah group khawm rawh. Kan buttons plugin hmangin JavaScript radio leh checkbox style behavior optional te chu add rawh .
a chhunga element-te chunga tooltips emaw popovers emaw i hman hian , duh loh side effects (element chu a zau zawk leh/ emaw tooltip emaw popover emaw a trigger hunah a rounded corners hloh ang chi) pumpelh .btn-group
theihna tur option i tarlang tur a ni.container: 'body'
role
, label pe rawhAssistive technology – screen reader ang chi – te’n button hrang hrang group a role
nih thu an hriattir theih nan attribute dik tak pek a ngai a ni. Button group tan chuan hei hi , a ni ang a role="group"
, toolbar-ah erawh chuan role="toolbar"
.
Exception pakhat chu control pakhat chauh awmna group (entir nan elements nei justified button groups<button>
) emaw dropdown emaw a ni.
role
Chu bakah, group leh toolbar-te chu chiang taka label pek tur a ni a, a chhan chu assistive technology tam zawk chuan chutiang a nih loh chuan attribute dik tak awm chung pawhin an puang dawn lo . Heta entîrna kan pêkteah hian , kan hmang aria-label
a, mahse a dangte aria-labelledby
pawh hman theih a ni.
Button series pakhat chu in hmangin wrap .btn
rawh .btn-group
.
<div class="btn-group" role="group" aria-label="...">
<button type="button" class="btn btn-default">Left</button>
<button type="button" class="btn btn-default">Middle</button>
<button type="button" class="btn btn-default">Right</button>
</div>
Complex components tam zawk atan sets of <div class="btn-group">
into a combine rawh.<div class="btn-toolbar">
<div class="btn-toolbar" role="toolbar" aria-label="...">
<div class="btn-group" role="group" aria-label="...">...</div>
<div class="btn-group" role="group" aria-label="...">...</div>
<div class="btn-group" role="group" aria-label="...">...</div>
</div>
Group pakhata button tinteah button sizing class apply ai chuan, group tam tak nest hunah pawh add .btn-group-*
to each , ah hian dah mai rawh..btn-group
<div class="btn-group btn-group-lg" role="group" aria-label="...">...</div>
<div class="btn-group" role="group" aria-label="...">...</div>
<div class="btn-group btn-group-sm" role="group" aria-label="...">...</div>
<div class="btn-group btn-group-xs" role="group" aria-label="...">...</div>
Dropdown menus button series nena mix i duh hunah a .btn-group
dang chhungah dah rawh ..btn-group
<div class="btn-group" role="group" aria-label="...">
<button type="button" class="btn btn-default">1</button>
<button type="button" class="btn btn-default">2</button>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Dropdown link</a></li>
<li><a href="#">Dropdown link</a></li>
</ul>
</div>
</div>
Button set pakhat chu horizontal-a awm lovin vertical-a stack-a lang turin siam rawh. Hetah hian split button dropdown hi a support lo.
<div class="btn-group-vertical" role="group" aria-label="...">
...
</div>
Button group pakhat chu a nu leh pa zau zawng zawng zawnga zau turin size inang tlanga inzawm tir rawh. Tin, button group chhunga button dropdown te nen pawh a thawk thei bawk.
Buttons justify nana hman HTML leh CSS bik (chu chu display: table-cell
) avang hian an inkar border chu a let hnih a pung a ni. Regular button group-ah chuan, margin-left: -1px
border te chu paih chhuah ai chuan stack nan hman a ni. Mahse, margin
a thawk lo display: table-cell
. Chuvang chuan Bootstrap-a i customizations a zirin border te chu i paih emaw, i rawng leh emaw duh mai thei.
Internet Explorer 8 hian justified button group-a button awmte border a render lo va, on <a>
emaw <button>
elements emaw pawh nise. Chu chu paltlang theih nân, button tin chu a dangin wrap la .btn-group
.
Hrechiang duh tan #12476 en rawh .
<a>
Elements te nen.btn
s series pakhat chu wrap mai rawh .btn-group.btn-group-justified
.
<div class="btn-group btn-group-justified" role="group" aria-label="...">
...
</div>
Element-te chu button anga thawk tura hman a nih chuan <a>
– in-page functionality tichhuaktu, tuna page chhunga document emaw section dang emaw kal ai chuan – a remchan dan angin pek tur a ni bawk role="button"
.
<button>
Elements te nen<button>
Element awmna justified button group hman tur chuan button tinte chu button group-ah i wrap tur a ni . Browser tam zawk chuan <button>
elements justification atan kan CSS hi an hmang dik lo a, mahse button dropdown kan support avangin chu chu kan thawk chhuak thei a ni.
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Left</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Middle</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Right</button>
</div>
</div>
Button eng pawh hmangin dropdown menu chu a chhungah dah la, .btn-group
menu markup dik tak pe la, trigger rawh.
Button dropdown ah chuan dropdown plugin chu Bootstrap version ah dah tel a ngai a.
Button pakhat chu dropdown toggle ah chantir la, markup thlak danglamna bulpui thenkhat nen.
<!-- Single button -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
Chutiang bawkin split button dropdown siam la, markup thlak danglam ang chiah kha siam la, button hran chauh hmangin siam rawh.
<!-- Split button -->
<div class="btn-group">
<button type="button" class="btn btn-danger">Action</button>
<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
Button dropdown hian button size hrang hrang hmangin hna a thawk thei.
<!-- Large button group -->
<div class="btn-group">
<button class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Large button <span class="caret"></span>
</button>
<ul class="dropdown-menu">
...
</ul>
</div>
<!-- Small button group -->
<div class="btn-group">
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Small button <span class="caret"></span>
</button>
<ul class="dropdown-menu">
...
</ul>
</div>
<!-- Extra small button group -->
<div class="btn-group">
<button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Extra small button <span class="caret"></span>
</button>
<ul class="dropdown-menu">
...
</ul>
</div>
Element chunga dropdown menu te .dropup
chu parent ah dahin trigger rawh.
<div class="btn-group dropup">
<button type="button" class="btn btn-default">Dropup</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<!-- Dropdown menu links -->
</ul>
</div>
Text-based eng pawh hma, a hnu emaw, a sir lehlamah emaw text emaw button emaw dahin form controls chu tizau rawh <input>
. Single-a element prepend emaw append emaw turin .input-group
an .input-group-addon
or hmangin hmang rawh ..input-group-btn
.form-control
<input>
s chauh a ni<select>
Hetah hian elements hi WebKit browser-ah chuan fully style theih a nih loh avangin hman loh tur.
<textarea>
Hetah hian element hman loh tur a chhan chu an rows
attribute hi a then chuan zah a ni dawn lo.
An chhunga element-te chunga tooltips emaw popovers emaw i hman hian , duh loh side effects (element chu a zau zawk leh/ emaw tooltip emaw popover emaw a trigger hunah a rounded corners hloh ang chi) pumpelh .input-group
theihna tur option i tarlang tur a ni.container: 'body'
Form group emaw grid column class emaw chu input group nen direct-in mix suh. Chu ai chuan input group chu form group emaw grid nena inzawm element chhungah nest la.
Input tin atan label i dah tel loh chuan screen reader-te chuan i form-ah harsatna an nei ang. Heng input group-te tan hian label emaw functionality dang emaw chu assistive technology-te hnena thlen a nih ngei ngei tur a ni.
Technique hman tur dik tak (visible <label>
elements, class <label>
hmanga element thup , emaw , , , emaw attribute hman dan) leh eng information dang nge pek chhuah a ngai dawn tih chu interface widget i implement tur chi dik tak a zirin a danglam ang. Hemi \hen-a entîrnate hian rawtna, case-specific approach tlemte a pe a ni..sr-only
aria-label
aria-labelledby
aria-describedby
title
placeholder
Input pakhat sir lehlamah add-on emaw button emaw pakhat dah rawh. Input pakhat sir lehlamah pakhat i dah thei bawk.
Side khatah add-on ( .input-group-addon
or ) tam tak kan support lo ..input-group-btn
Input group pakhatah form-control tam tak kan support lo.
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">@</span>
<input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group">
<input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2">
<span class="input-group-addon" id="basic-addon2">@example.com</span>
</div>
<div class="input-group">
<span class="input-group-addon">$</span>
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
<span class="input-group-addon">.00</span>
</div>
<label for="basic-url">Your vanity URL</label>
<div class="input-group">
<span class="input-group-addon" id="basic-addon3">https://example.com/users/</span>
<input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
</div>
Relative form sizing class te chu a chhungah dah la, a .input-group
chhunga thu awmte chu automatic in a resize ang—element tin chunga form control size class te chu tih nawn leh a ngai tawh lo.
<div class="input-group input-group-lg">
<span class="input-group-addon" id="sizing-addon1">@</span>
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1">
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">@</span>
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
</div>
<div class="input-group input-group-sm">
<span class="input-group-addon" id="sizing-addon3">@</span>
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon3">
</div>
Input group addon chhungah text aiah checkbox emaw radio option eng pawh dah rawh.
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox" aria-label="...">
</span>
<input type="text" class="form-control" aria-label="...">
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">
<input type="radio" aria-label="...">
</span>
<input type="text" class="form-control" aria-label="...">
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
</div><!-- /.row -->
Input group-a button awmte hi a danglam deuh a, nesting level khat extra a ngai a ni. , tih ai chuan buttons wrap .input-group-addon
nan i hmang a ngai ang . .input-group-btn
Hei hi default browser styles override theih loh avangin a ngai a ni.
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
<input type="text" class="form-control" placeholder="Search for...">
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
</div><!-- /.row -->
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div><!-- /btn-group -->
<input type="text" class="form-control" aria-label="...">
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control" aria-label="...">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div><!-- /btn-group -->
</div><!-- /input-group -->
</div><!-- /.col-lg-6 -->
</div><!-- /.row -->
<div class="input-group">
<div class="input-group-btn">
<!-- Button and dropdown menu -->
</div>
<input type="text" class="form-control" aria-label="...">
</div>
<div class="input-group">
<input type="text" class="form-control" aria-label="...">
<div class="input-group-btn">
<!-- Button and dropdown menu -->
</div>
</div>
Side khatah add-on pakhat chauh i neih theih laiin, pakhat chhungah button tam tak i nei thei .input-group-btn
bawk .
<div class="input-group">
<div class="input-group-btn">
<!-- Buttons -->
</div>
<input type="text" class="form-control" aria-label="...">
</div>
<div class="input-group">
<input type="text" class="form-control" aria-label="...">
<div class="input-group-btn">
<!-- Buttons -->
</div>
</div>
Bootstrap-a Nav awm thei te hian shared markup an nei a, base .nav
class atanga tan an ni a, chubakah shared states an nei bawk. Style tin inthlak danglam turin modifier class hrang hrang swap rawh.
Class hian base class .nav-tabs
a mamawh tih hre reng ang che ..nav
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="#">Home</a></li>
<li role="presentation"><a href="#">Profile</a></li>
<li role="presentation"><a href="#">Messages</a></li>
</ul>
Chu HTML tho chu la la, mahse chu .nav-pills
ai chuan hmang zawk rawh:
<ul class="nav nav-pills">
<li role="presentation" class="active"><a href="#">Home</a></li>
<li role="presentation"><a href="#">Profile</a></li>
<li role="presentation"><a href="#">Messages</a></li>
</ul>
Pills pawh vertically stack theih a ni bawk. Add mai rawh .nav-stacked
.
<ul class="nav nav-pills nav-stacked">
...
</ul>
awlsam takin tab emaw pill emaw chu an nu leh pa zau zawng inang vek turin screen 768px aia zauah siam la, .nav-justified
. Screen te zawkah chuan nav link te chu stack a ni.
Justified navbar nav links hi tunah hian a support lo.
<ul class="nav nav-tabs nav-justified">
...
</ul>
<ul class="nav nav-pills nav-justified">
...
</ul>
Nav component eng pawh (tabs emaw pills emaw) tan chuan gray links leh hover effects awm lo.disabled
tan add rawh .
<ul class="nav nav-pills">
...
<li role="presentation" class="disabled"><a href="#">Disabled link</a></li>
...
</ul>
Dropdown menu te chu HTML tlem tal extra leh dropdowns JavaScript plugin te nen add rawh .
<ul class="nav nav-tabs">
...
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Dropdown <span class="caret"></span>
</a>
<ul class="dropdown-menu">
...
</ul>
</li>
...
</ul>
<ul class="nav nav-pills">
...
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Dropdown <span class="caret"></span>
</a>
<ul class="dropdown-menu">
...
</ul>
</li>
...
</ul>
Navbars hi responsive meta components a ni a, i application emaw site emaw tan navigation header atan hman a ni. Mobile view-ah chuan collapsed (leh toggleable) an ni tan a, available viewport width a san chhoh zel chuan horizontal an ni ta a ni.
Justified navbar nav links hi tunah hian a support lo.
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Brand</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-left">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
Navbar brand chu i image hmangin thlak la, text chu <img>
. The .navbar-brand
hian padding leh height a neih avangin i image a zirin CSS thenkhat override a ngai mai thei.
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<img alt="Brand" src="...">
</a>
</div>
</div>
</nav>
Form content chu a chhungah dah la, .navbar-form
vertical alignment dik tak leh collapsed behavior chu narrow viewport-ah dah rawh. Navbar content chhunga a awmna tur hmun tur chu alignment options hmang la.
Heads up angin, a .navbar-form
code tam tak chu .form-inline
via mixin hmangin a share thin. Form control thenkhat, input group ang chi te hian navbar chhunga fixed width te chu a dik taka lantir a ngai thei.
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
a-a awm lo element-te chu navbar-a vertical-a center turin .navbar-btn
class chu dah la .<button>
<form>
<button type="button" class="btn btn-default navbar-btn">Sign in</button>
Text string te chu element pakhatah , hmangin wrap la .navbar-text
, a tlangpuiin <p>
tag-ah leading leh color dik tak neih theih nan.
<p class="navbar-text">Signed in as Mark Otto</p>
Normal navbar navigation component chhunga awm lo standard link hmang folks tan chuan .navbar-link
class hmang la, default leh inverse navbar options atan color dik tak dah rawh.
<p class="navbar-text navbar-right">Signed in as <a href="#" class="navbar-link">Mark Otto</a></p>
Nav link, form, button, emaw text emaw chu align la, .navbar-left
or .navbar-right
utility class hmangin. Class pahnih hian CSS float an dah belh ang a, an kalna tur an dah ang. Entirnan, nav links align tur chuan <ul>
utility class hrang hrang hman tur hmangin a hranpaa dah tur a ni.
Heng class te hi mixin-ed version of .pull-left
and .pull-right
, mahse device size hrang hranga navbar component awlsam zawka hman theih nan media query-ah scoped an ni.
A or to center leh pad navbar content te dah la .navbar-fixed-top
, dah tel bawk ang che..container
.container-fluid
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
...
</div>
</nav>
A or to center leh pad navbar content te dah la .navbar-fixed-bottom
, dah tel bawk ang che..container
.container-fluid
<nav class="navbar navbar-default navbar-fixed-bottom">
<div class="container">
...
</div>
</nav>
Full-width navbar siam la, page nen scroll chhuak la , or to center leh pad navbar content dah .navbar-static-top
la, dah tel bawk ang che..container
.container-fluid
.navbar-fixed-*
Class ang lo takin , body
.
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
...
</div>
</nav>
Navbar a hmel chu add in siam danglam rawh .navbar-inverse
.
<nav class="navbar navbar-inverse">
...
</nav>
Navigational hierarchy chhunga page awm mek awmna chu tarlang rawh.
CSS ah hian separator te chu automatic in :before
leh content
.
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Library</a></li>
<li class="active">Data</li>
</ol>
I site emaw app emaw atan pagination link pe la, multi-page pagination component hmangin pe la, a nih loh leh pager alternative awlsam zawk hmangin pe rawh .
Rdio atanga inspired pagination awlsam tak, apps leh search results atan a tha hle. Block lian tak hi miss harsa tak a ni a, awlsam taka scalable a ni a, click area lian tak tak a pe bawk.
<nav aria-label="Page navigation">
<ul class="pagination">
<li>
<a href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li>
<a href="#" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav>
Pagination component chu element pakhata khuh tur a ni a, chu <nav>
chu navigation section anga hriat theih turin reader leh assistive technology dangte screen-na tur a ni. Chu bâkah, page pakhatin chutiang navigation section pakhat aia tam a neih tawh a rinawm (header-a primary navigation ang chi, emaw, sidebar navigation ang chi), a thiltum târ langtu aria-label
tâna sawifiahna pêk a ṭha. <nav>
Entirnan, pagination component chu search results set hrang hrang inkara kal theihna tura hman a nih chuan, label dik tak chu aria-label="Search results pages"
.
Link te hi thil awmdan hrang hrangah customizable a ni. .disabled
Link click theih loh leh .active
page awm mek tarlanna atan hmang ang che .
<nav aria-label="...">
<ul class="pagination">
<li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
<li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
...
</ul>
</nav>
Kan rawtna chu active emaw disabled emaw anchor te chu , atan swap out la <span>
, a nih loh leh arrow hmasa/a awm a nih chuan anchor chu paih chhuak la, click functionality tihbo nan style ruahmante chu vawng reng rawh.
<nav aria-label="...">
<ul class="pagination">
<li class="disabled">
<span>
<span aria-hidden="true">«</span>
</span>
</li>
<li class="active">
<span>1 <span class="sr-only">(current)</span></span>
</li>
...
</ul>
</nav>
Pagination lian zawk emaw, te zawk emaw i duh em? Add .pagination-lg
emaw .pagination-sm
size dang atan emaw.
<nav aria-label="..."><ul class="pagination pagination-lg">...</ul></nav>
<nav aria-label="..."><ul class="pagination">...</ul></nav>
<nav aria-label="..."><ul class="pagination pagination-sm">...</ul></nav>
Light markup leh style hrang hranga pagination implementation awlsam tak takte tan previous leh next link rang tak tak. Blog emaw magazine emaw ang chi site awlsam tak tak tan chuan a tha hle.
Default-ah chuan pager hian link a center a.
<nav aria-label="...">
<ul class="pager">
<li><a href="#">Previous</a></li>
<li><a href="#">Next</a></li>
</ul>
</nav>
A dang pawhin link tin chu a sir lamah i align thei bawk:
<nav aria-label="...">
<ul class="pager">
<li class="previous"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
<li class="next"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
</ul>
</nav>
Pager link te hian .disabled
pagination atanga general utility class an hmang bawk.
<nav aria-label="...">
<ul class="pager">
<li class="previous disabled"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
<li class="next"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
</ul>
</nav>
<h3>Example heading <span class="label label-default">New</span></h3>
Label pakhat hmel tihdanglam nan a hnuaia modifier class tarlan zinga pakhat tal te hi add la.
<span class="label label-default">Default</span>
<span class="label label-primary">Primary</span>
<span class="label label-success">Success</span>
<span class="label label-info">Info</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Danger</span>
Rendering problem hi container tawi tak chhunga inline label dozens tam tak i neih chuan a lo awm thei a, pakhatah chuan anmahni inline-block
element (icon ang chi) an awm vek a ni. Hei hi a chinfel dan tur chu setting a display: inline-block;
ni . Context leh entirnan #13219 en rawh .
<span class="badge">
Links, Bootstrap navs leh thil dang tam takah a dahin thil thar emaw chhiar loh emaw awlsam takin highlight theih a ni.
<a href="#">Inbox <span class="badge">42</span></a>
<button class="btn btn-primary" type="button">
Messages <span class="badge">4</span>
</button>
Thil thar emaw chhiar loh emaw a awm loh chuan badge te chu a collapse mai ang (CSS’s :empty
selector hmangin) a chhungah content a awm loh chuan.
:empty
Internet Explorer 8 ah hian selector support a neih loh avangin badge te hi a self collapse dawn lo .
Pill navigation-a active state-a badge dahna tur built-in styles a awm bawk.
<ul class="nav nav-pills" role="tablist">
<li role="presentation" class="active"><a href="#">Home <span class="badge">42</span></a></li>
<li role="presentation"><a href="#">Profile</a></li>
<li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
</ul>
I site-a key content pholan theihna turin viewport pumpui chu duhthusamin a tizau thei component lightweight, flexible tak a ni.
Hei hi hero unit awlsam tak a ni a, featured content emaw information emaw ngaihven belh zelna tur jumbotron-style component awlsam tak a ni.
<div class="jumbotron">
<h1>Hello, world!</h1>
<p>...</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
Jumbotron chu full width-a siam tur chuan, leh corner rounded awm lovin, .container
s zawng zawng pawnah dah la, a .container
chhungah dah belh rawh.
<div class="jumbotron">
<div class="container">
...
</div>
</div>
h1
Page pakhata thu awmte chu a remchan dan anga space out leh segment turin shell awlsam tak a ni. A h1
's default small
element a hmang thei a, chubakah component dang tam zawk (style dang nen) pawh a hmang thei bawk.
<div class="page-header">
<h1>Example page header <small>Subtext for header</small></h1>
</div>
Bootstrap-a grid system chu thumbnail component hmangin tizau la, awlsam takin image, video, text leh thil dang grid-ah a lang thei ang.
Pinterest ang chi thumbnail san zawng leh/ emaw zau zawng hrang hranga presentation i zawng a nih chuan third-party plugin Masonry , Isotope , emaw Salvattore te i hmang a ngai ang .
Default-ah chuan Bootstrap-a thumbnail te hi linked images te chu markup mamawh tlem ber hmanga pholan theih tura siam a ni.
<div class="row">
<div class="col-xs-6 col-md-3">
<a href="#" class="thumbnail">
<img src="..." alt="...">
</a>
</div>
...
</div>
Extra markup tlem tal hmangin HTML content chi hrang hrang heading, paragraph, button te chu thumbnail-ah dah theih a ni.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida chu eget metus ah a awm a. Nullam id dolor id nibh ultricies lirthei ut id elit.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida chu eget metus ah a awm a. Nullam id dolor id nibh ultricies lirthei ut id elit.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida chu eget metus ah a awm a. Nullam id dolor id nibh ultricies lirthei ut id elit.
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<img src="..." alt="...">
<div class="caption">
<h3>Thumbnail label</h3>
<p>...</p>
<p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
</div>
</div>
</div>
</div>
User thiltih dan tlangpui atan contextual feedback message pe la, alert message awm thei leh inthlak danglam thei tlemte nen pe rawh.
Text eng pawh leh optional dismiss button in .alert
leh contextual class pali (eg, .alert-success
) zinga pakhat chu basic alert message atan wrap rawh.
Alert hian default class a nei lo va, base leh modifier class chauh a nei. Default gray alert hian awmzia a nei lutuk lo va, chuvangin contextual class hmangin type pakhat i tarlan a ngai a ni. Hlawhtlinna, info, warning, emaw hlauhawm atang hian thlang rawh.
<div class="alert alert-success" role="alert">...</div>
<div class="alert alert-info" role="alert">...</div>
<div class="alert alert-warning" role="alert">...</div>
<div class="alert alert-danger" role="alert">...</div>
Alert eng pawh hmangin optional .alert-dismissible
leh close button dahin build rawh.
Full functioning, dismissible alerts atan chuan alerts JavaScript plugin i hmang tur a ni.
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<strong>Warning!</strong> Better check yourself, you're not looking too good.
</div>
Data attribute <button>
awmna element chu hmang ngei ang che .data-dismiss="alert"
.alert-link
Alert eng pawh chhungah rang taka matching colored links pe turin utility class hmang ang che .
<div class="alert alert-success" role="alert">
<a href="#" class="alert-link">...</a>
</div>
<div class="alert alert-info" role="alert">
<a href="#" class="alert-link">...</a>
</div>
<div class="alert alert-warning" role="alert">
<a href="#" class="alert-link">...</a>
</div>
<div class="alert alert-danger" role="alert">
<a href="#" class="alert-link">...</a>
</div>
Workflow emaw action emaw kal zel dan chungchangah progress bar awlsam tak, mahse inthlak danglam thei tak tak hmangin feedback thar ber ber pe rawh.
Progress bar-ah hian CSS3 transition leh animation hmangin an effect thenkhat an hmu thei a. Heng features te hi Internet Explorer 9 leh a hnuai lam emaw Firefox version hlui zawkah chuan a support lo. Opera 12 hian animation a support lo.
I website hian Content Security Policy (CSP) a neih chuan a phal lo a nih chuan a hnuaia kan entir ang hian style-src 'unsafe-inline'
inline attribute hmangin progress bar widths i set thei dawn lo . style
CSP khauh tak nena inmil width set dan dang chu custom JavaScript tlem (that set element.style.width
) hman emaw, custom CSS class hman emaw a ni.
Default ah chuan progress bar a awm.
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
<span class="sr-only">60% Complete</span>
</div>
</div>
<span>
Progress bar chhung atang chuan with class chu la chhuakin .sr-only
percentage hmuh theih a lantir ang.
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
60%
</div>
</div>
Percentage hniam tak tak pawha label text chhiar theiha a awm reng theih nan min-width
, progress bar-ah a dah belh ngaihtuah rawh.
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">
0%
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: 2%;">
2%
</div>
</div>
Progress bar-ah hian style inang lo tak tak siam nan button leh alert class inang thenkhat an hmang thin.
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
<span class="sr-only">40% Complete (success)</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
<span class="sr-only">20% Complete</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
<span class="sr-only">60% Complete (warning)</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
<span class="sr-only">80% Complete (danger)</span>
</div>
</div>
Gradient hmangin striped effect a siam thin. IE9 leh a hnuai lamah a awm lo.
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
<span class="sr-only">40% Complete (success)</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
<span class="sr-only">20% Complete</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
<span class="sr-only">60% Complete (warning)</span>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
<span class="sr-only">80% Complete (danger)</span>
</div>
</div>
Add .active
to .progress-bar-striped
ah hian stripes te chu dinglam atanga veilam ah animate theih nan. IE9 leh a hnuai lamah a awm lo.
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
<span class="sr-only">45% Complete</span>
</div>
</div>
Bar tam tak chu pakhatah dah la .progress
, stack rawh.
<div class="progress">
<div class="progress-bar progress-bar-success" style="width: 35%">
<span class="sr-only">35% Complete (success)</span>
</div>
<div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
<span class="sr-only">20% Complete (warning)</span>
</div>
<div class="progress-bar progress-bar-danger" style="width: 10%">
<span class="sr-only">10% Complete (danger)</span>
</div>
</div>
Textual content bulah left- or right-aligned image awmna component chi hrang hrang (blog comment, Tweets, etc ang chi) siamna tur abstract object styles.
Default media hian content block veilam emaw dinglam emaw-ah media object (images, video, audio) a tarlang a.
<div class="media">
<div class="media-left">
<a href="#">
<img class="media-object" src="..." alt="...">
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Media heading</h4>
...
</div>
</div>
The classes .pull-left
leh .pull-right
also exist leh a hmain media component-a tel angin hman a ni tawh a, mahse chu hmanna atan chuan v3.3.0 atang khan hman loh a ni. .media-left
Anni chu leh , nen an inang tlangpui a , chu chu html-a the hnua dah tur .media-right
tih loh chu ..media-right
.media-body
Thlalak emaw media dang emaw chu a chung lam, a laiah, a hnuai lamah a inmil thei bawk. Default chu top aligned a ni.
Cras thu amet nibh libero, in gravida nulla. A rilru a buai em em a, a rilru a hah em em bawk a. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. vulputate at, tempus viverra turpis. A rilru a buai em em a, a rilru a hah em em bawk a. vulputate fringilla. Faucibus-ah hian Donec lacinia congue felis a awm a.
Donec sed odio dui. A rilru a buai em em a, a rilru a hah em em bawk a. Nullam quis risus eget urna mollis ornare vel eu leo. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Cras thu amet nibh libero, in gravida nulla. A rilru a buai em em a, a rilru a hah em em bawk a. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. vulputate at, tempus viverra turpis. A rilru a buai em em a, a rilru a hah em em bawk a. vulputate fringilla. Faucibus-ah hian Donec lacinia congue felis a awm a.
Donec sed odio dui. A rilru a buai em em a, a rilru a hah em em bawk a. Nullam quis risus eget urna mollis ornare vel eu leo. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Cras thu amet nibh libero, in gravida nulla. A rilru a buai em em a, a rilru a hah em em bawk a. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. vulputate at, tempus viverra turpis. A rilru a buai em em a, a rilru a hah em em bawk a. vulputate fringilla. Faucibus-ah hian Donec lacinia congue felis a awm a.
Donec sed odio dui. A rilru a buai em em a, a rilru a hah em em bawk a. Nullam quis risus eget urna mollis ornare vel eu leo. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
<div class="media">
<div class="media-left media-middle">
<a href="#">
<img class="media-object" src="..." alt="...">
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Middle aligned media</h4>
...
</div>
</div>
Extra markup tlem tal i neih chuan media inside list (comment thread emaw article list emaw atan a tangkai) i hmang thei ang.
Cras thu amet nibh libero, in gravida nulla. A rilru a buai em em a, a rilru a hah em em bawk a. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. vulputate at, tempus viverra turpis.
<ul class="media-list">
<li class="media">
<div class="media-left">
<a href="#">
<img class="media-object" src="..." alt="...">
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Media heading</h4>
...
</div>
</li>
</ul>
List groups hi element list awlsam tak mai ni lovin, custom content nei complex tak takte pholanna atana hmanraw danglam leh chak tak a ni.
List group bulpui ber chu list items awmna unordered list mai a ni a, class dik tak te pawh a awm bawk. A hnuaia option awmte hmangin a chungah build la, a nih loh leh a tul angin nangmah ngeiin CSS siam rawh.
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
List group item eng pawhah badges component chu dah la, dinglamah a awm nghal mai ang.
<ul class="list-group">
<li class="list-group-item">
<span class="badge">14</span>
Cras justo odio
</li>
</ul>
List group items te chu list items aiah anchor tags hmangin linkify rawh (chu chu an tih loh chuan parent tihna pawh a ni bawk <div>
) <ul>
. Element tinte chhehvelah nu leh pa pakhat zel awm a ngai lo.
<div class="list-group">
<a href="#" class="list-group-item active">
Cras justo odio
</a>
<a href="#" class="list-group-item">Dapibus ac facilisis in</a>
<a href="#" class="list-group-item">Morbi leo risus</a>
<a href="#" class="list-group-item">Porta ac consectetur ac</a>
<a href="#" class="list-group-item">Vestibulum at eros</a>
</div>
<div>
List group items chu list items aiah buttons a ni thei (chu chu parent ai chuan parent tihna pawh a ni thei bawk <ul>
). Element tinte chhehvelah nu leh pa pakhat zel awm a ngai lo. Hetah hian standard class te hi hmang suh ..btn
<div class="list-group">
<button type="button" class="list-group-item">Cras justo odio</button>
<button type="button" class="list-group-item">Dapibus ac facilisis in</button>
<button type="button" class="list-group-item">Morbi leo risus</button>
<button type="button" class="list-group-item">Porta ac consectetur ac</button>
<button type="button" class="list-group-item">Vestibulum at eros</button>
</div>
Disabled anga lang turin a gray out turin .disabled
add rawh ..list-group-item
<div class="list-group">
<a href="#" class="list-group-item disabled">
Cras justo odio
</a>
<a href="#" class="list-group-item">Dapibus ac facilisis in</a>
<a href="#" class="list-group-item">Morbi leo risus</a>
<a href="#" class="list-group-item">Porta ac consectetur ac</a>
<a href="#" class="list-group-item">Vestibulum at eros</a>
</div>
Contextual class hmangin thil style list tur, default emaw linked emaw pawh nise. .active
State pawh a huam tel bawk .
<ul class="list-group">
<li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li>
<li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li>
<li class="list-group-item list-group-item-warning">Porta ac consectetur ac</li>
<li class="list-group-item list-group-item-danger">Vestibulum at eros</li>
</ul>
<div class="list-group">
<a href="#" class="list-group-item list-group-item-success">Dapibus ac facilisis in</a>
<a href="#" class="list-group-item list-group-item-info">Cras sit amet nibh libero</a>
<a href="#" class="list-group-item list-group-item-warning">Porta ac consectetur ac</a>
<a href="#" class="list-group-item list-group-item-danger">Vestibulum at eros</a>
</div>
A chhungah HTML eng pawh deuhthaw dah la, a hnuaia linked list group ang chi te tan pawh.
Donec id elit non mi porta gravida chu eget metus ah a awm a. A rilru a buai em em a, a rilru a hah em em bawk a. risus varius blandit.
Donec id elit non mi porta gravida chu eget metus ah a awm a. A rilru a buai em em a, a rilru a hah em em bawk a. risus varius blandit.
Donec id elit non mi porta gravida chu eget metus ah a awm a. A rilru a buai em em a, a rilru a hah em em bawk a. risus varius blandit.
<div class="list-group">
<a href="#" class="list-group-item active">
<h4 class="list-group-item-heading">List group item heading</h4>
<p class="list-group-item-text">...</p>
</a>
</div>
A tul ngai lo nain, a chang chuan i DOM chu box chhungah dah a ngai thin. Chutiang dinhmun atan chuan panel component kha han en teh.
Default-ah chuan .panel
a tih tur awm chhun chu basic border leh padding thenkhat apply a, content engemaw zat a awm theih nan.
<div class="panel panel-default">
<div class="panel-body">
Basic panel example
</div>
</div>
awlsam takin i panel-ah heading container dah la, .panel-heading
. Tin, eng pawh i dah tel thei bawk <h1>
- class <h6>
nen .panel-title
pre-styled heading dah belh tur. <h1>
Mahse, - a font size te <h6>
chu .panel-heading
.
Link coloring dik tak neih duh chuan heading chhungah link te chu .panel-title
.
<div class="panel panel-default">
<div class="panel-heading">Panel heading without title</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Panel title</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
Button emaw secondary text emaw chu .panel-footer
. Panel footer te hian contextual variation kan hman hian foreground-a awm tur a nih loh avangin color leh border an inherit lo tih hre reng ang che.
<div class="panel panel-default">
<div class="panel-body">
Panel content
</div>
<div class="panel-footer">Panel footer</div>
</div>
Component dang ang bawkin awlsam takin panel chu contextual state class eng emaw zat dah belhin context bik atan awmze nei zawka siam rawh.
<div class="panel panel-primary">...</div>
<div class="panel panel-success">...</div>
<div class="panel panel-info">...</div>
<div class="panel panel-warning">...</div>
<div class="panel panel-danger">...</div>
.table
Panel chhungah non-bordered eng pawh dah la , seamless design a awm thei ang. , a awm chuan .panel-body
separation atan table chung lamah extra border kan dah belh thin.
Hetah hian default panel content thenkhat. Nulla vitae elit libero tih hi a ni a, a man pawh a tlawm hle. Aenean lacinia bibendum chu a hring dup a, a hring dup bawk. Aenean eu leo quam a ni. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Nullam id dolor id nibh ultricies lirthei ut id elit.
# a ni. | Hming hmasa | Hming hnuhnung | User hming a ni |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Panel heading</div>
<div class="panel-body">
<p>...</p>
</div>
<!-- Table -->
<table class="table">
...
</table>
</div>
Panel body a awm loh chuan component chu panel header atanga table dangah tihtawp lohvin a kal thin.
# a ni. | Hming hmasa | Hming hnuhnung | User hming a ni |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Panel heading</div>
<!-- Table -->
<table class="table">
...
</table>
</div>
Panel eng pawh chhungah awlsam takin full-width list group te dah tel bawk ang che.
Hetah hian default panel content thenkhat. Nulla vitae elit libero tih hi a ni a, a man pawh a tlawm hle. Aenean lacinia bibendum chu a hring dup a, a hring dup bawk. Aenean eu leo quam a ni. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Nullam id dolor id nibh ultricies lirthei ut id elit.
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Panel heading</div>
<div class="panel-body">
<p>...</p>
</div>
<!-- List group -->
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
</div>
Browser te chu an containing block zau zawng atanga video emaw slideshow dimension te hriat theihna tur intrinsic ratio siamin eng device ah pawh uluk taka scale thei tur siamsak rawh.
<iframe>
Rules chu , <embed>
, <video>
, leh <object>
element -ah te direct-in hman a ni a ; .embed-responsive-item
optional chuan attribute dangte tana styling inmil duh hunah explicit descendant class hmang ang che.
Pro-Tip a ni! Chu chu kan override che avangin frameborder="0"
i s ah hian i telh a ngai lo .<iframe>
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 4:3 aspect ratio -->
<div class="embed-responsive embed-responsive-4by3">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
Element pakhata inset effect pe turin well chu simple effect angin hmang ang che.
<div class="well">...</div>
Control padding leh rounded corner te chu optional modifier class pahnih hmangin a awm bawk.
<div class="well well-lg">...</div>
<div class="well well-sm">...</div>