Gutangira
Incamake ya Bootstrap, uburyo bwo gukuramo no gukoresha, inyandikorugero y'ibanze n'ingero, nibindi byinshi.
Incamake ya Bootstrap, uburyo bwo gukuramo no gukoresha, inyandikorugero y'ibanze n'ingero, nibindi byinshi.
Bootstrap (kuri ubu v3.3.7) ifite inzira nkeya zoroshye zo gutangira vuba, buriwese yitabaza urwego rutandukanye rwubuhanga no gukoresha urubanza. Soma kugirango urebe ibikwiranye nibyo ukeneye.
Gukusanya no kugabanya CSS, JavaScript, hamwe nimyandikire. Nta doc cyangwa dosiye yumwimerere irimo.
Inkomoko Ntoya, JavaScript, hamwe nimyandikire yimyandikire, hamwe na doc. Irasaba Gutegura bike hamwe no gushiraho.
Bootstrap yavuye kuri Hasi kugeza kuri Sass kugirango byoroshye kwinjizwa muri Rail, Compass, cyangwa Sass-gusa.
Bantu kuri jsDelivr mubuntu batanga inkunga ya CDN kuri CSS ya Bootstrap na JavaScript. Koresha gusa Bootstrap CDN ihuza.
Urashobora kandi kwinjizamo no gucunga bike bya Bootstrap, CSS, JavaScript, hamwe nimyandikire ukoresheje Bower :
Urashobora kandi kwinjizamo Bootstrap ukoresheje npm :
require('bootstrap')
izashyira amacomeka ya jQuery yose ya Bootstrap kubintu bya jQuery. Module bootstrap
ubwayo ntacyo yohereza hanze. Urashobora kwipakurura intoki za jQuery ya Bootstrap kugiti cyawe ukuramo /js/*.js
dosiye munsi yububiko bwa top-level.
Bootstrap package.json
irimo metadata yinyongera munsi yimfunguzo zikurikira:
less
- inzira igana Bootstrap nyamukuru Idosiye yinkomokostyle
- inzira igana Bootstrap ya CSS idacukuwe CSS yabanjirijwe hakoreshejwe igenamiterere risanzwe (nta kwihindura)Urashobora kandi kwinjizamo no gucunga bike bya Bootstrap, CSS, JavaScript, hamwe nimyandikire ukoresheje Composer :
Bootstrap ikoresha Autoprefixer kugirango ikemure ibicuruzwa bya CSS byabanjirije . Niba urimo gukora Bootstrap uhereye kumasoko yayo make / Sass kandi udakoresha Gruntfile yacu, uzakenera kwinjiza Autoprefixer mubikorwa byawe wenyine. Niba ukoresha Bootstrap yabanjirije cyangwa ukoresha Gruntfile yacu, ntukeneye guhangayikishwa nibi kuko Autoprefixer yamaze kwinjizwa muri Gruntfile yacu.
Bootstrap irashobora gukururwa muburyo bubiri, muribwo uzasangamo ububiko namadosiye akurikira, muburyo bworoshye guhuza umutungo rusange no gutanga byombi byakusanyirijwe hamwe.
Nyamuneka menya ko amacomeka yose ya JavaScript asaba jQuery gushyirwamo, nkuko bigaragara mumashusho yintangiriro . Baza ibyacubower.json
kugirango urebe verisiyo ya jQuery ishyigikiwe.
Bimaze gukuramo, fungura ububiko bwafunzwe kugirango urebe imiterere ya (icyegeranyo) Bootstrap. Uzabona ikintu nkiki:
Ubu ni bwo buryo bwibanze bwa Bootstrap: dosiye zabanjirije kubishobora gukoreshwa vuba mumushinga wose wurubuga. Dutanga CSS hamwe na JS ( bootstrap.*
), hamwe no gukusanya no kugabanya CSS na JS ( bootstrap.min.*
). Ikarita yinkomoko ya CSS ( bootstrap.*.map
) irahari kugirango ikoreshwe hamwe nibikoresho bimwe byabateza imbere. Imyandikire ya Glyphicons irimo, kimwe ninsanganyamatsiko ya Bootstrap.
Gukuramo kode ya Bootstrap ikubiyemo CSS, JavaScript, hamwe numutungo wimyandikire, hamwe nisoko Ntoya, JavaScript, hamwe ninyandiko. By'umwihariko, ikubiyemo ibi bikurikira n'ibindi:
,,, Kandi less/
ni isoko yinkomoko ya CSS, JS, hamwe nimyandikire yimyandikire (uko bikurikirana). Ububiko burimo ibintu byose byashyizwe kumurongo wo gukuramo hejuru. Ububiko burimo inkomoko yinkomoko yinyandiko zacu, hamwe na Bootstrap ikoreshwa. Hejuru yibyo, izindi dosiye zose zirimo gutanga inkunga kubipaki, amakuru yimpushya, niterambere.js/
fonts/
dist/
docs/
examples/
Bootstrap ikoresha Grunt kuri sisitemu yo kubaka, hamwe nuburyo bworoshye bwo gukorana nurwego. Nuburyo dukusanya code yacu, gukora ibizamini, nibindi byinshi.
Kugirango ushyire Grunt, ugomba kubanza gukuramo no gushiraho node.js (irimo npm). npm igereranya node ipakiye module kandi nuburyo bwo gucunga ibikorwa biterwa niterambere binyuze kuri node.js.
Hanyuma, uhereye kumurongo wateganijwe:grunt-cli
ku isi yose hamwe npm install -g grunt-cli
./bootstrap/
yububiko, hanyuma ukore npm install
. npm izareba package.json
dosiye hanyuma ihite ushyiraho ibikenewe byaho byateganijwe hano.Numara kuzuza, uzashobora gukoresha amategeko atandukanye ya Grunt yatanzwe kuva kumurongo.
grunt dist
(Gukusanya gusa CSS na JavaScript)Kuvugurura /dist/
ububiko hamwe na dosiye ya CSS na JavaScript. Nkumukoresha wa Bootstrap, mubisanzwe ni itegeko ushaka.
grunt watch
(Reba)Reba amadosiye make yinkomoko hanyuma uhite uyasubiramo kuri CSS igihe cyose ubitse impinduka.
grunt test
(Koresha ibizamini)Koresha JSHint kandi ikoresha ibizamini bya QUnit idafite umutwe muri PhantomJS .
grunt docs
(Kubaka & kugerageza umutungo wa docs)Kubaka no kugerageza CSS, JavaScript, nundi mutungo ukoreshwa mugihe ukoresha ibyangombwa ukoresheje bundle exec jekyll serve
.
grunt
(Wubake byose kandi ukore ibizamini)Gukusanya no kugabanya CSS na JavaScript, yubaka urubuga rwinyandiko, ikoresha HTML5 yemewe na docs, igarura umutungo wa Customizer, nibindi byinshi. Irasaba Jekyll . Mubisanzwe birakenewe gusa niba wibasiye Bootstrap ubwayo.
Ugomba guhura nibibazo byo kwishyiriraho cyangwa gukoresha Grunt amategeko, banza usibe /node_modules/
ububiko bwakozwe na npm. Noneho, ongera usubire npm install
.
Tangira niyi shingiro ya HTML, cyangwa uhindure ingero . Turizera ko uzahindura inyandikorugero n'ingero zacu, ukabihuza nibyo ukeneye.
Gukoporora HTML hepfo kugirango utangire gukorana ninyandiko ntoya ya Bootstrap.
Wubake kurugero rwibanze hejuru hamwe na Bootstrap yibice byinshi. Turagutera inkunga yo guhitamo no guhuza Bootstrap kugirango uhuze ibyo umushinga wawe ukeneye.
Shakisha code yinkomoko kuri buri ngero hepfo ukuramo ububiko bwa Bootstrap . Ingero murashobora kuzisanga mububiko docs/examples/
.
Bootlint nigikoresho cyemewe cya Bootstrap HTML. Irahita igenzura amakosa menshi ya HTML asanzwe kurubuga rukoresha Bootstrap muburyo bwa "vanilla". Ibikoresho bya Vanilla Bootstrap / widgets bisaba ibice byabo bya DOM kugirango bihuze nuburyo bumwe. Bootlint igenzura ko ingero za Bootstrap zifite HTML zubatswe neza. Tekereza kongeramo Bootlint kumurongo wibikoresho byiterambere bya Bootstrap kugirango ntanimwe mumakosa asanzwe adindiza iterambere ryumushinga wawe.
Komeza kugezwaho amakuru yiterambere rya Bootstrap hanyuma ugere kubaturage hamwe nibikoresho bifasha.
irc.freenode.net
seriveri, mumuyoboro wa ## bootstrap .twitter-bootstrap-3
.bootstrap
kumapaki ahindura cyangwa akongera kumikorere ya Bootstrap mugihe akwirakwiza binyuze muri npm cyangwa uburyo busa bwo gutanga kubintu byinshi byavumbuwe.Urashobora kandi gukurikira @getbootstrap kurubuga rwa Twitter kubwamazimwe agezweho hamwe namashusho yindirimbo nziza.
Bootstrap ihita ihuza page yawe kubunini bwa ecran zitandukanye. Dore uburyo bwo guhagarika iyi mikorere kugirango page yawe ikore nkuru rugero rutitabira .
<meta>
ibyavuzwe muri CSSwidth
kuri kuri .container
kuri buri grid urwego hamwe nubugari bumwe, kurugero width: 970px !important;
Menya neza ko ibi biza nyuma ya Bootstrap CSS isanzwe. Urashobora guhitamo kwirinda !important
itangazamakuru hamwe nibibazo byitangazamakuru cyangwa abatoranya-fu..col-xs-*
amasomo wongeyeho, cyangwa mumwanya wa, hagati / nini. Ntugire impungenge, ibikoresho-bito bito bya gride umunzani kubisubizo byose.Uzakenera Igisubizo.js kuri IE8 (kuva ibibazo byitangazamakuru byacu biracyahari kandi bigomba gutunganywa). Ibi birahagarika "mobile mobile" ibintu bya Bootstrap.
Twashyize mubikorwa izi ntambwe kurugero. Soma inkomoko yabyo kugirango urebe impinduka zihariye zashyizwe mubikorwa.
Urebye kwimuka uva muri verisiyo ishaje ya Bootstrap kuri v3.x? Reba icyerekezo cyimuka .
Bootstrap yubatswe kugirango ikore neza muri desktop iheruka na mushakisha igendanwa, bivuze ko mushakisha zishaje zishobora kwerekana uburyo butandukanye, nubwo bukora neza, bwerekana ibice bimwe.
By'umwihariko, dushyigikiye verisiyo yanyuma ya mushakisha ikurikira.
Ubundi mushakisha ukoresha verisiyo yanyuma ya WebKit, Blink, cyangwa Gecko, haba muburyo butaziguye cyangwa binyuze kumurongo wurubuga rwa API, ntabwo bashyigikiwe neza. Ariko, Bootstrap igomba (mubihe byinshi) kwerekana no gukora neza muriyi mushakisha. Ibisobanuro birambuye byingirakamaro byatanzwe hano hepfo.
Muri rusange, Bootstrap ishyigikira verisiyo zigezweho za buri cyiciro kinini cya mushakisha zidasanzwe. Menya ko mushakisha ya porokisi (nka Opera Mini, uburyo bwa Turbo bwa Opera Mobile, UC Browser Mini, Amazone Silk) idashyigikiwe.
Chrome | Firefox | Safari | |
---|---|---|---|
Android | Gushyigikirwa | Gushyigikirwa | N / A. |
iOS | Gushyigikirwa | Gushyigikirwa | Gushyigikirwa |
Nubundi, verisiyo yanyuma ya mushakisha ya desktop hafi ya yose irashyigikiwe.
Chrome | Firefox | Internet Explorer | Opera | Safari | |
---|---|---|---|---|---|
Mac | Gushyigikirwa | Gushyigikirwa | N / A. | Gushyigikirwa | Gushyigikirwa |
Windows | Gushyigikirwa | Gushyigikirwa | Gushyigikirwa | Gushyigikirwa | Ntabwo ashyigikiwe |
Kuri Windows, dushyigikira Internet Explorer 8-11 .
Kuri Firefox, hiyongereyeho gusohora bisanzwe bisanzwe bihamye, dushyigikire kandi verisiyo yanyuma yagutse (ESR) verisiyo ya Firefox.
Mu buryo butemewe, Bootstrap igomba kureba no kwitwara neza bihagije muri Chromium na Chrome kuri Linux, Firefox ya Linux, na Internet Explorer 7, ndetse na Microsoft Edge, nubwo bidashyigikiwe kumugaragaro.
Kurutonde rwa bimwe mubikoresho bya mushakisha Bootstrap igomba guhangana nabyo, reba Urukuta rwacu rwa mushakisha .
Internet Explorer 8 na 9 nayo irashyigikiwe, ariko, nyamuneka umenye ko ibintu bimwe na bimwe bya CSS3 nibintu bya HTML5 bidashyigikiwe byuzuye nabashakisha. Mubyongeyeho , Internet Explorer 8 isaba gukoresha Respond.js kugirango ushoboze itangazamakuru ryibibazo.
Ikiranga | Internet Explorer 8 | Internet Explorer 9 |
---|---|---|
border-radius |
Ntabwo ashyigikiwe | Gushyigikirwa |
box-shadow |
Ntabwo ashyigikiwe | Gushyigikirwa |
transform |
Ntabwo ashyigikiwe | Gushyigikirwa, hamwe -ms nibisobanuro |
transition |
Ntabwo ashyigikiwe | |
placeholder |
Ntabwo ashyigikiwe |
Sura Nshobora gukoresha ... kubisobanuro birambuye kubufasha bwa mushakisha ya CSS3 na HTML5.
Witondere ubuvumo bukurikira mugihe ukoresheje Respond.js mugutezimbere no gutanga umusaruro kuri Internet Explorer 8.
Gukoresha Respond.js hamwe na CSS yakiriwe kumurongo utandukanye (sub) (urugero, kuri CDN) bisaba gushiraho bimwe. Reba ibisubizo.js ibisobanuro birambuye.
file://
Bitewe namategeko yumutekano ya mushakisha, Subiza.js ntabwo ikorana nurupapuro rureba ukoresheje file://
protocole (nko gufungura dosiye ya HTML yaho). Kugerageza ibiranga ibisubizo muri IE8, reba page yawe hejuru ya HTTP (S). Reba ibisubizo.js ibisobanuro birambuye.
@import
Subiza.js ntabwo ikorana na CSS ivugwa binyuze @import
. By'umwihariko, Ibice bimwe bya Drupal bizwiho gukoresha @import
. Reba ibisubizo.js ibisobanuro birambuye.
IE8 ntabwo ishigikira byimazeyo box-sizing: border-box;
iyo ihujwe na min-width
,,, cyangwa . Kubera iyo mpamvu, guhera kuri v3.0.1, ntitukigikoresha kuri s.max-width
min-height
max-height
max-width
.container
IE8 ifite ibibazo bimwe @font-face
iyo bihujwe hamwe :before
. Bootstrap ikoresha iyo mikoranire hamwe na Glyphicons yayo. Niba urupapuro rwabitswe, kandi ruremerewe nta mbeba hejuru yidirishya (ni ukuvuga kanda buto yo kugarura ibintu cyangwa guterura ikintu muri iframe) noneho urupapuro ruhinduka mbere yuko imyandikire yikoreza. Kuzenguruka kurupapuro (umubiri) bizerekana bimwe mubishushanyo hanyuma uzenguruke hejuru yibishushanyo bisigaye bizerekana nabyo. Reba ikibazo # 13863 kugirango ubone ibisobanuro birambuye.
Bootstrap ntabwo ishyigikiwe muburyo bwa kera bwa enterineti ya enterineti. Kugirango umenye neza ko ukoresha uburyo bwanyuma bwo gutanga kuri IE, tekereza <meta>
gushyiramo tagi ikwiye kurupapuro rwawe:
Emeza uburyo bwinyandiko ufungura ibikoresho byo gukemura: kanda F12hanyuma urebe "Mode Mode".
Iyi tagi yashyizwe mubyangombwa byose bya Bootstrap hamwe nurugero kugirango tumenye neza uburyo bushoboka muri buri verisiyo ishigikiwe na Internet Explorer.
Reba iki kibazo cya StackOverflow kubindi bisobanuro.
Internet Explorer 10 ntabwo itandukanya ubugari bwibikoresho nubugari bwerekanwe , bityo ntibukoreshe neza ibibazo byitangazamakuru muri CSS ya Bootstrap. Mubisanzwe wakongeramo agace kihuse ka CSS kugirango ukosore ibi:
Ariko, ibi ntibikora kubikoresho bikoresha Windows Phone 8 verisiyo ishaje ya 3 (bita GDR3) , kuko itera ibikoresho nkibi kwerekana desktop cyane aho kureba "terefone". Kugira ngo ukemure iki kibazo, uzakenera gushyiramo CSS na JavaScript ikurikira kugirango ukore hafi yikosa .
Kubindi bisobanuro hamwe nubuyobozi bukoreshwa, soma Windows Phone 8 na Device-Ubugari .
Nkumutwe hejuru, ibi tubishyira mubyangombwa byose bya Bootstrap hamwe nurugero rwo kwerekana.
Moteri yo kwerekana verisiyo ya Safari mbere ya v7.1 kuri OS X na Safari kuri iOS v8.0 yagize ikibazo cyumubare wimyanya icumi yakoreshejwe mumashuri yacu .col-*-1
ya grid. Niba rero ufite 12 grid grid kumurongo, wabona ko byaje bigufi ugereranije nindi mirongo yinkingi. Usibye kuzamura Safari / iOS, ufite amahitamo amwe mukazi:
.pull-right
kumurongo wanyuma wa grid kugirango ubone gukomera-iburyoInkunga overflow: hidden
kuri <body>
element ni ntarengwa muri iOS na Android. Kugirango bigerweho, mugihe uzengurutse hejuru cyangwa hepfo ya modal muri kimwe muri ibyo bikoresho bya mushakisha, <body>
ibirimo bizatangira kuzunguruka. Reba amakosa ya Chrome # 175502 (yakosowe muri Chrome v40) na WebKit bug # 153852 .
Kuva kuri iOS 9.3, mugihe modal ifunguye, niba gukoraho kwambere kwerekanwa ryumuzingo biri mumupaka winyandiko <input>
cyangwa a <textarea>
, <body>
ibirimo munsi yuburyo bizunguruka aho kuba modal ubwayo. Reba WebKit bug # 153856 .
Kandi, menya ko niba ukoresha navbar ihamye cyangwa ukoresha inyongeramusaruro muburyo bwa moderi, iOS ifite amakosa yo guhindura ibintu bitavugurura umwanya wibintu byagenwe mugihe clavier yububiko itangiye. Imirimo mike kuriyi ikubiyemo guhindura ibintu byawe position: absolute
cyangwa gutabaza igihe cyibanze kugirango ugerageze gukosora imyanya y'intoki. Ibi ntabwo bikemurwa na Bootstrap, bityo rero ni wowe ugomba guhitamo igisubizo cyiza kubyo usaba.
Ikintu .dropdown-backdrop
ntabwo gikoreshwa kuri iOS muri nav kubera ubunini bwa z-indangagaciro. Rero, kugirango ufunge ibitonyanga muri navbars, ugomba guhita ukanda ibintu byamanutse (cyangwa ikindi kintu icyo aricyo cyose kizarasa ibyabaye muri iOS ).
Page zooming byanze bikunze yerekana ibihangano mubice bimwe, haba muri Bootstrap hamwe nizindi mbuga. Ukurikije ikibazo, dushobora gushobora kugikemura (shakisha mbere hanyuma ufungure ikibazo nibiba ngombwa). Ariko, dukunze kwirengagiza ibyo kuko akenshi nta gisubizo kiboneye usibye akazi keza.
:hover
/ :focus
kuri mobileNubwo kugendagenda kwukuri bidashoboka kuri ecran nyinshi, mushakisha nyinshi zigendanwa zigana inkunga yo kuguruka no gukora :hover
"gukomera". Muyandi magambo, :hover
imisusire itangira gusaba nyuma yo gukanda ikintu hanyuma uhagarike gusaba nyuma yuko umukoresha akanze ikindi kintu. Ibi birashobora gutuma leta ya Bootstrap :hover
ihinduka "kwizirika" kuri mushakisha. Mucukumbuzi zimwe zigendanwa nazo zikora :focus
kimwe. Kuri ubu nta buryo bworoshye bwo gukemura ibyo bibazo usibye gukuraho ubwo buryo bwose.
Ndetse no muri mushakisha zimwe zigezweho, icapiro rirashobora kuba ikibazo.
By'umwihariko, nka Chrome v32 kandi utitaye kumiterere ya margin, Chrome ikoresha ubugari bwa viewport bugufi cyane ugereranije nubunini bwimpapuro zifatika mugihe gikemura ibibazo byitangazamakuru mugihe ucapura urubuga. Ibi birashobora gutuma Bootstrap idasanzwe-ntoya ya gride ikora muburyo butunguranye mugihe icapiro. Reba ikibazo # 12078 na Chrome bug # 273306 kugirango ubone ibisobanuro birambuye. Igitekerezo cyatanzwe:
@screen-*
Ntoya kugirango impapuro zawe zicapwe zifatwe nini kuruta izito-nto.Na none, nka Safari v8.0, ubugari bwagutse .container
s burashobora gutuma Safari ikoresha ingano yimyandikire idasanzwe mugihe icapa. Reba # 14868 na WebKit bug # 138192 kugirango ubone ibisobanuro birambuye. Ikintu kimwe gishobora gukemuka kuri ibi nukongeramo CSS ikurikira:
Mu gasanduku, Android 4.1 (ndetse na bimwe bishya bisohoka bigaragara) yoherejwe hamwe na porogaramu ya Browser nka mushakisha y'urubuga rusanzwe wahisemo (bitandukanye na Chrome). Kubwamahirwe, porogaramu ya Browser ifite amakosa menshi kandi idahuye na CSS muri rusange.
Kubintu <select>
, mushakisha yimigabane ya Android ntizerekana kugenzura kuruhande niba hari border-radius
na / cyangwa border
byashyizwe mubikorwa. . _ _ <select>
_ Umukoresha ukoresha kunuka yirinda kwivanga muri mushakisha ya Chrome, Safari, na Mozilla.
Urashaka kubona urugero? Reba kuri iyi JS Bin demo.
Kugirango utange uburambe bwiza bushoboka kuri mushakisha zishaje na buggy, Bootstrap ikoresha amashanyarazi ya CSS ahantu henshi kugirango yereke CSS idasanzwe kuri verisiyo zimwe na zimwe za mushakisha kugirango ikore hafi yamakosa muri mushakisha ubwabo. Izi hack birumvikana ko abemeza CSS binubira ko bitemewe. Ahantu habiri, dukoresha kandi kuva amaraso-CSS ibiranga bitaruzuzwa neza, ariko bikoreshwa gusa mukuzamura iterambere.
Iyi miburo yo kwemeza ntacyo itwaye mubikorwa kuva igice kitari hacki cya CSS yacu cyemeza neza kandi ibice bya hacky ntibibangamira imikorere myiza yigice kitari hacky, niyo mpamvu twirengagiza nkana iyi miburo yihariye.
Inyandiko zacu za HTML nazo zifite imburi zidafite akamaro kandi zidafite ishingiro zo kwemeza HTML kubera ko dushyiramo akazi kubikorwa bya Firefox runaka .
Mugihe tudashyigikiye kumugaragaro amacomeka yundi muntu cyangwa ibyongeweho, turatanga inama zingirakamaro zifasha kwirinda ibibazo bishobora guterwa mumishinga yawe.
Porogaramu zimwe zagatatu, zirimo Google Ikarita na Google Ishakisha Imashini ya Google, bivuguruzanya na Bootstrap bitewe * { box-sizing: border-box; }
, itegeko ribikora padding
ntirishobora guhindura ubugari bwanyuma bwibintu. Wige byinshi kubyerekeye agasanduku k'icyitegererezo n'ubunini kuri CSS Amayeri .
Ukurikije ibivugwamo, urashobora kurenga nkuko bikenewe (Ihitamo 1) cyangwa gusubiramo agasanduku-kangana mu turere twose (Ihitamo 2).
Bootstrap ikurikiza amahame asanzwe y'urubuga kandi-hamwe nimbaraga zidasanzwe-irashobora gukoreshwa mugukora imbuga zishobora kugera kubakoresha AT .
Niba kugendana kwawe birimo amahuza menshi kandi akaza mbere yibyingenzi muri DOM, ongeraho umurongo Skip to main content
mbere yo kugendagenda (kubisobanuro byoroshye, reba iyi ngingo ya A11Y Umushinga kuri skip yoguhuza ). Gukoresha .sr-only
icyiciro bizahisha muburyo bwo gusimbuka, kandi urwego .sr-only-focusable
ruzemeza ko ihuza rigaragara rimwe ryibanze (kubakoresha clavier babonye).
Bitewe namakosa maremare / amakosa muri Chrome (reba ikibazo 262171 muri Chromium bug tracker ) na Internet Explorer (reba iyi ngingo kumurongo wurupapuro no gutondekanya ibitekerezo ), uzakenera kwemeza neza ko intego yibisobanuro byawe byibuze gahunda yibanze yibanze mukongeraho tabindex="-1"
.
Mubyongeyeho, urashobora gushaka guhagarika byimazeyo icyerekezo cyibanze ku ntego (cyane cyane nka Chrome muri iki gihe nayo ishyira intumbero kubintu hamwe tabindex="-1"
iyo bakanze n'imbeba) hamwe #content:focus { outline: none; }
.
Menya ko iri kosa naryo rizagira ingaruka ku zindi page zose ziri kurupapuro urubuga rwawe rushobora kuba rukoresha, rudafite akamaro kubakoresha clavier. Urashobora gutekereza kongeramo ibisa nkibihagarikwa-gukosora kubindi byose byitwa inanga / ibice byerekana nkibikorwa byo guhuza.
Iyo imitwe yicyari ( <h1>
- <h6>
), inyandiko yawe yibanze igomba kuba an <h1>
. Imitwe ikurikira igomba gukoresha muburyo bwumvikana <h2>
- <h6>
nkabasomyi ba ecran bashobora kubaka imbonerahamwe yibirimo kurupapuro rwawe.
Wige byinshi kuri HTML CodeSniffer na Penn State's AccessAbility .
Kugeza ubu, amwe mumabara asanzwe ahuza aboneka muri Bootstrap (nkibice bitandukanye byanditseho buto ya classe, amwe muma code agaragaza amabara akoreshwa kumurongo wibanze wibanze , urwego rwabafasha rwibanze , hamwe nibara risanzwe rihuza iyo ryakoreshejwe kumurongo wera) gira itandukaniro rito (munsi yikigereranyo cya 4.5: 1 ). Ibi birashobora gutera ibibazo kubakoresha bafite icyerekezo gito cyangwa bafite ibara rihumye. Amabara asanzwe arashobora gukenera guhindurwa kugirango yongere itandukaniro kandi byemewe..bg-primary
Bootstrap irekurwa munsi ya MIT kandi ni uburenganzira bwa Twitter 2016. Guteka kugeza kumutwe muto, birashobora gusobanurwa nibihe bikurikira.
Uruhushya rwuzuye rwa Bootstrap ruherereye mububiko bwumushinga kubindi bisobanuro.
Abaturage bahinduye inyandiko za Bootstrap mu ndimi zitandukanye. Nta numwe ushyigikiwe kumugaragaro kandi ntibishobora guhora bigezweho.
Ntabwo dufasha gutunganya cyangwa kwakira ibisobanuro, turabihuza gusa.
Urangije ubusobanuro bushya cyangwa bwiza? Fungura icyifuzo cyo gukurura kugirango wongere kurutonde rwacu.