Yeqela kokuqukethwe okuyinhloko Yeqela ku-docs navigation
Check
in English

Iziphequluli namadivayisi

Funda mayelana neziphequluli namadivayisi, kusukela kwesimanje kuya kwakudala, asekelwa yi-Bootstrap, okuhlanganisa izingqinamba neziphazamisi ezaziwayo ngayinye.

Iziphequluli ezisekelwe

I-Bootstrap isekela ukukhishwa kwakamuva, okuzinzile kwazo zonke iziphequluli ezinkulu nezinkundla.

Ezinye iziphequluli ezisebenzisa inguqulo yakamuva ye-WebKit, i-Blink, noma i-Gecko, kungaba ngokuqondile noma nge-API yokubuka iwebhu yesikhulumi, azisekelwa ngokusobala. Nokho, i-Bootstrap kufanele (ezikhathini eziningi) ibonise futhi isebenze kahle nakulezi ziphequluli. Ulwazi oluthe xaxa losekelo lunikezwe ngezansi.

Ungathola uhla lwethu olusekelwayo lweziphequluli nezinguqulo zazo kwethi.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

Sisebenzisa i -Autoprefixer ukuze siphathe ukwesekwa kwesiphequluli esihlosiwe ngokusebenzisa iziqalo ze-CSS, ezisebenzisa uhlu Lwesiphequluli ukuphatha lezi zinguqulo zesiphequluli. Bheka imibhalo yabo mayelana nendlela yokuhlanganisa lawa mathuluzi kumaphrojekthi akho.

Amadivaysi eselula

Ngokuvamile, i-Bootstrap isekela izinguqulo zakamuva zeziphequluli ezizenzakalelayo zengxenyekazi ngayinye enkulu. Qaphela ukuthi iziphequluli zommeleli (ezifana ne-Opera Mini, imodi ye-Opera Mobile Turbo, i-UC Browser Mini, i-Amazon Silk) azisekelwe.

I-Chrome IFirefox Safari Isiphequluli se-Android ne-WebView
Android Isekelwe Isekelwe - I-v6.0+
iOS Isekelwe Isekelwe Isekelwe -

Iziphequluli zedeskithophu

Ngokufanayo, izinguqulo zakamuva zeziphequluli eziningi zedeskithophu ziyasekelwa.

I-Chrome IFirefox I-Microsoft Edge I-Opera Safari
Mac Isekelwe Isekelwe Isekelwe Isekelwe Isekelwe
IWindows Isekelwe Isekelwe Isekelwe Isekelwe -

KuFirefox, ngaphezu kokukhishwa kwakamuva okuzinzile okujwayelekile, siphinde sisekele inguqulo yakamuva yokukhululwa kokusekelwa okunwetshiwe (ESR) yeFirefox.

Ngokungafanele, i-Bootstrap kufanele ibukeke futhi iziphathe kahle ngokwanele ku-Chromium ne-Chrome ye-Linux, ne-Firefox ye-Linux, nakuba ingasekelwe ngokusemthethweni.

I-Internet Explorer

I-Internet Explorer ayisekelwe. Uma udinga ukwesekwa kwe-Internet Explorer, sicela usebenzise i-Bootstrap v4.

Amamodeli nokwehliswayo kuselula

Ukuchichima nokuskrola

Ukusekelwa kwesici kukhawulelwe ku-iOS naku-Android overflow: hidden;. <body>Ukuze wenze lokho, uma uskrola udlule phezulu noma phansi kwe-modal kunoma yisiphi salezo ziphequluli zalawo madivayisi, <body>okuqukethwe kuzoqala ukuskrola. Bona iphutha le- Chrome #175502 (elilungiswe ku-Chrome v40) kanye nesiphazamisi se- WebKit #153852 .

Izinkambu zombhalo we-iOS nokuskrola

Kusukela ku-iOS 9.2, ngenkathi i-modal ivuliwe, uma ukuthinta kokuqala kokuthinta kokuskrola kungaphakathi komngcele wombhalo <input>noma we- <textarea>, <body>okuqukethwe okungaphansi kwe-modal kuzoskrolwa esikhundleni se-modal ngokwayo. Bona iphutha le-WebKit #153856 .

Isici .dropdown-backdropasisetshenziswa ku-iOS ku-nav ngenxa yobunkimbinkimbi be-z-indexing. Ngakho, ukuze uvale okwehliswayo kuma-navbar, kufanele uchofoze ngokuqondile into yokudonsela phansi (noma iyiphi enye into ezoqhumisa umcimbi wokuchofoza ku-iOS ).

Ukusondeza isiphequluli

Ukusondeza ikhasi kuveza ngokungagwemeki ukunikezwa kwama-artifact kwezinye izingxenye, ku-Bootstrap nakuyo yonke iwebhu. Kuye ngenkinga, singase sikwazi ukuyilungisa (sesha kuqala bese sivula inkinga uma kudingeka). Kodwa-ke, sivame ukukuziba lezi njengoba ngokuvamile zingenaso isixazululo esiqondile ngaphandle kwama-hacky workaround.

Abaqinisekisayo

Ukuze unikeze umuzwa ongcono kakhulu ongakhona kuziphequluli ezindala nezinesiphazamiso, i-Bootstrap isebenzisa ama- hack esiphequluli se-CSS ezindaweni ezimbalwa ukuze iqondise i-CSS ekhethekile kuzinguqulo ezithile zesiphequluli ukuze isebenze eduze kweziphazamisi kuziphequluli ngokwazo. Lawa ma-hacks ngokuqondakalayo abangela abaqinisekisi be-CSS ukuthi bakhononde ngokuthi awavumelekile. Ezindaweni ezimbalwa, sisebenzisa izici ze-CSS ezophayo ezingakamiswa ngokugcwele, kodwa lezi zisetshenziselwa ukuthuthukisa okuqhubekayo.

Lezi zexwayiso zokuqinisekisa azinandaba ekusebenzeni njengoba ingxenye engeyona eyokugebenga ye-CSS yethu iqinisekisa ngokugcwele futhi izingxenye ezikhohlisayo aziphazamisi ukusebenza kahle kwengxenye engeyona eyokugebenga, yingakho siziba ngamabomu lezi zexwayiso.

Amadokhumenti ethu e-HTML ngokufanayo anezexwayiso zokuqinisekisa ze-HTML ezingasho lutho nezingabalulekile ngenxa yokufakwa kwethu kwe-workaround yesiphazamisi esithile seFirefox .