Pitani kuzinthu zazikulu Pitani kumayendedwe adocs
in English

Osakatula ndi zida

Phunzirani za asakatuli ndi zida, kuyambira zamakono mpaka zakale, zomwe zimathandizidwa ndi Bootstrap, kuphatikiza zodziwika bwino ndi nsikidzi pa chilichonse.

Asakatuli othandizidwa

Bootstrap imathandizira kutulutsa kwaposachedwa, kokhazikika kwa asakatuli onse akuluakulu ndi nsanja.

Asakatuli ena omwe amagwiritsa ntchito mtundu waposachedwa kwambiri wa WebKit, Blink, kapena Gecko, kaya mwachindunji kapena kudzera pawebusayiti ya API, samathandizidwa. Komabe, Bootstrap iyenera (nthawi zambiri) kuwonetsa ndikugwira ntchito moyenera msakatuliwanso. Zambiri zothandizira zikuperekedwa pansipa.

Mutha kupeza asakatuli athu osiyanasiyana omwe amathandizidwa ndi mitundu yawo mu.browserslistrc file :

# https://github.com/browserslist/browserslist#readme

>= 0.5%
last 2 major versions
not dead
Chrome >= 60
Firefox >= 60
Firefox ESR
iOS >= 12
Safari >= 12
not Explorer <= 11

Timagwiritsa ntchito Autoprefixer kuti tithandizire pa msakatuli womwe tikufuna kudzera pa CSS prefixes, yomwe imagwiritsa ntchito Browserslist kuyang'anira mitundu iyi. Onani zolembedwa zawo zamomwe mungaphatikizire zida izi m'mapulojekiti anu.

Zida zam'manja

Nthawi zambiri, Bootstrap imathandizira mitundu yaposachedwa ya asakatuli amtundu uliwonse. Dziwani kuti asakatuli a proxy (monga Opera Mini, Opera Mobile's Turbo mode, UC Browser Mini, Amazon Silk) sagwiritsidwa ntchito.

Chrome Firefox Safari Android Browser & WebView
Android Zothandizidwa Zothandizidwa - v6.0+
iOS Zothandizidwa Zothandizidwa Zothandizidwa -

Asakatuli apakompyuta

Mofananamo, mitundu yaposachedwa ya asakatuli ambiri apakompyuta imathandizidwa.

Chrome Firefox Microsoft Edge Opera Safari
Mac Zothandizidwa Zothandizidwa Zothandizidwa Zothandizidwa Zothandizidwa
Mawindo Zothandizidwa Zothandizidwa Zothandizidwa Zothandizidwa -

Kwa Firefox, kuwonjezera pa kumasulidwa kokhazikika kwaposachedwa, timathandiziranso mtundu waposachedwa wa Extended Support Release (ESR) wa Firefox.

Mosavomerezeka, Bootstrap iyenera kuyang'ana ndikuchita bwino mu Chromium ndi Chrome ya Linux, ndi Firefox ya Linux, ngakhale sizimathandizidwa.

Internet Explorer

Internet Explorer sichitha. Ngati mukufuna thandizo la Internet Explorer, chonde gwiritsani ntchito Bootstrap v4.

Ma modals ndi zotsitsa pa mafoni

Kusefukira ndi kupukusa

Thandizo overflow: hidden;pa <body>chinthucho ndi chochepa mu iOS ndi Android. Kuti izi zitheke, mukamadutsa pamwamba kapena pansi pa modal mu msakatuli uliwonse wa zidazo, zomwe <body>zili mkatimo zimayamba kusuntha. Onani Chrome bug #175502 (yokhazikika mu Chrome v40) ndi WebKit bug #153852 .

iOS malemba minda ndi scrolling

Pofika pa iOS 9.2, pomwe modal imatsegulidwa, ngati kukhudza koyambirira kwa mpukutu kumakhala m'malire a malemba <input>kapena a <textarea>, zomwe <body>zili pansi pa modal zidzasunthidwa m'malo mwa modal yokha. Onani cholakwika cha WebKit #153856 .

Chinthucho .dropdown-backdropsichimagwiritsidwa ntchito pa iOS mu nav chifukwa cha zovuta za z-indexing. Chifukwa chake, kuti mutseke zotsikira mu navbars, muyenera kudina mwachindunji chinthucho (kapena china chilichonse chomwe chingatsegule chochitika mu iOS ).

Kukulitsa msakatuli

Kuyang'ana masamba mosalephera kumapereka zinthu zakale muzinthu zina, mu Bootstrap ndi intaneti yonse. Kutengera ndi vuto, titha kukonza (fufuzani kaye kenako ndikutsegulanso ngati pakufunika kutero). Komabe, timakonda kunyalanyaza izi chifukwa nthawi zambiri alibe yankho lachindunji kupatula ma workaround achinyengo.

Otsimikizira

Kuti apereke chidziwitso chabwino kwambiri kwa asakatuli akale ndi ngolo, Bootstrap imagwiritsa ntchito ma hacks a CSS m'malo angapo kulunjika CSS yapadera kumitundu ina ya asakatuli kuti azitha kuthana ndi nsikidzi mu osatsegula okha. Ma hacks awa momveka amapangitsa ovomerezeka a CSS kudandaula kuti ndiwosavomerezeka. M'malo angapo, timagwiritsanso ntchito zida za CSS zotuluka magazi zomwe sizinakhazikike bwino, koma zimagwiritsidwa ntchito pongowonjezera pang'onopang'ono.

Machenjezo ovomerezekawa alibe ntchito chifukwa gawo la CSS lathu lopanda chinyengo limatsimikizira bwino ndipo magawo omwe amasokoneza samasokoneza kugwira ntchito moyenera kwa gawo lopanda chinyengo, chifukwa chake timanyalanyaza dala machenjezo awa.

Zolemba zathu za HTML zilinso ndi machenjezo ang'onoang'ono komanso osafunikira a HTML chifukwa chophatikizira njira yothetsera vuto linalake la Firefox .