Pitani kuzinthu zazikulu Pitani kumayendedwe adocs
Check
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

In order to provide the best possible experience to old and buggy browsers, Bootstrap uses CSS browser hacks in several places to target special CSS to certain browser versions in order to work around bugs in the browsers themselves. These hacks understandably cause CSS validators to complain that they are invalid. In a couple places, we also use bleeding-edge CSS features that aren’t yet fully standardized, but these are used purely for progressive enhancement.

These validation warnings don’t matter in practice since the non-hacky portion of our CSS does fully validate and the hacky portions don’t interfere with the proper functioning of the non-hacky portion, hence why we deliberately ignore these particular warnings.

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