Tsallake zuwa babban abun ciki Tsallake zuwa kewayawa na takardu
Check
in English

Browser da na'urori

Koyi game da masu bincike da na'urori, daga na zamani zuwa tsoho, waɗanda Bootstrap ke tallafawa, gami da sanannun quirks da kwari ga kowane.

Masu bincike masu goyan baya

Bootstrap yana goyan bayan sabbin, tabbatattun sakin duk manyan masu bincike da dandamali.

Madadin masu bincike waɗanda ke amfani da sabuwar sigar WebKit, Blink, ko Gecko, ko kai tsaye ko ta hanyar API ɗin kallon yanar gizo, ba su da tallafi a sarari. Koyaya, Bootstrap yakamata (a mafi yawan lokuta) nunawa kuma yayi aiki daidai a cikin waɗannan masu binciken. An bayar da ƙarin takamaiman bayanin tallafi a ƙasa.

Kuna iya nemo kewayon masu binciken mu masu goyan baya da nau'ikan su a cikin namu.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

Muna amfani da Autoprefixer don gudanar da goyan bayan da aka yi niyya ta hanyar prefixes na CSS, wanda ke amfani da Browserslist don sarrafa waɗannan nau'ikan burauzar. Tuntuɓi takardunsu don yadda ake haɗa waɗannan kayan aikin cikin ayyukanku.

Na'urorin hannu

Gabaɗaya magana, Bootstrap yana goyan bayan sabbin juzu'ai na kowane babban dandamali ta tsoho mai bincike. Lura cewa masu bincike (irin su Opera Mini, Opera Mobile's Turbo yanayin, UC Browser Mini, Amazon Silk) ba su da tallafi.

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

Masu bincike na Desktop

Hakazalika, ana tallafawa sabbin nau'ikan mafi yawan masu binciken tebur.

Chrome Firefox Microsoft Edge Opera Safari
Mac Tallafawa Tallafawa Tallafawa Tallafawa Tallafawa
Windows Tallafawa Tallafawa Tallafawa Tallafawa -

Don Firefox, ban da sabon sabuntawa na yau da kullun na yau da kullun, muna kuma goyan bayan sabuwar sigar Taimakon Taimako (ESR) na Firefox.

Ba bisa ka'ida ba, Bootstrap ya kamata ya duba da kyau sosai a cikin Chromium da Chrome don Linux, da Firefox don Linux, kodayake ba a tallafa musu bisa hukuma ba.

Internet Explorer

Ba a tallafawa Internet Explorer. Idan kuna buƙatar tallafin Internet Explorer, da fatan za a yi amfani da Bootstrap v4.

Modals da zazzagewa akan wayar hannu

Ambaliyar ruwa da gungurawa

Taimakon overflow: hidden;akan <body>kashi yana da iyakancewa a cikin iOS da Android. Don wannan, lokacin da kuka gungura sama ko ƙasa na modal a cikin ɗaya daga cikin masu binciken na'urorin, <body>abun ciki zai fara gungurawa. Duba kwaro na Chrome #175502 (wanda aka gyara a cikin Chrome v40) da kuma bug WebKit #153852 .

IOS filayen rubutu da gungurawa

Dangane da iOS 9.2, yayin da modal ke buɗewa, idan farkon taɓawar alamar gungurawa tana cikin iyakar rubutu <input>ko a <textarea>, <body>abubuwan da ke ƙarƙashin modal ɗin za a gungurawa a maimakon modal kanta. Duba kwaro na WebKit #153856 .

Ba .dropdown-backdropa yi amfani da kashi a kan iOS a cikin nav saboda sarkar z-indexing. Don haka, don rufe zazzagewa a cikin navbars, dole ne ku danna maɓallin zazzage kai tsaye (ko duk wani abu wanda zai kunna taron dannawa a cikin iOS ).

Zuƙowa mai lilo

Zuƙowa shafi babu makawa yana gabatar da kayan tarihi a wasu sassa, duka a cikin Bootstrap da sauran gidan yanar gizo. Dangane da batun, ƙila za mu iya gyara shi (bincika da farko sannan buɗe batun idan akwai buƙata). Duk da haka, muna yawan yin watsi da waɗannan saboda galibi ba su da wata mafita ta kai tsaye face abubuwan da ba su dace ba.

Masu tabbatarwa

Domin samar da mafi kyawun yuwuwar ƙwarewa ga tsofaffi da masu bincike, Bootstrap yana amfani da hacks na masu binciken CSS a wurare da yawa don ƙaddamar da CSS na musamman zuwa wasu nau'ikan burauzar don yin aiki tare da kwari a cikin masu binciken da kansu. Waɗannan hacks a fahimta suna haifar da masu inganta CSS don yin korafin cewa ba su da inganci. A wurare biyu, muna kuma amfani da siffofin CSS masu zubar da jini waɗanda har yanzu ba a daidaita su ba, amma ana amfani da su kawai don haɓaka haɓakawa.

Waɗannan faɗakarwar tabbatarwa ba su da mahimmanci a aikace tunda ɓangaren da ba na ɓarna ba na CSS ɗinmu ya inganta cikakke kuma ɓangaren ɓarna ba sa tsoma baki tare da ingantaccen aiki na ɓangaren mara ɓarna, don haka me yasa muka yi watsi da waɗannan gargaɗin da gangan.

Dokokin mu na HTML suma suna da gargaɗin ingantattun HTML marasa mahimmanci kuma marasa amfani saboda haɗawar da muka yi don wani bug na Firefox .