Tlula eka nhlokomhaka-nkulu Tlula eka docs navigation
in English

Swihlamusela-marito ni switirhisiwa

Dyondza hi swihlamusela-marito na switirhisiwa, ku suka eka swa manguva lawa ku ya eka swa khale, leswi seketeriwaka hi Bootstrap, ku katsa na swihlawulekisi leswi tivekaka na swihoxo eka xin’wana na xin’wana.

Swihlamusela-marito leswi seketeriwaka

Bootstrap yi seketela ku humesiwa ka sweswinyana, loku tiyeke ka swihlamusela-marito hinkwaswo leswikulu ni tipulatifomo.

Swihlamusela-marito swin’wana leswi tirhisaka vuhundzuluxeri bya sweswinyana bya WebKit, Blink, kumbe Gecko, hambi hi ku kongoma kumbe hi ku tirhisa API ya xivono xa webu xa pulatifomo, a swi seketeriwi hi ku kongoma. Kambe, Bootstrap yi fanele (eka swiyimo swo tala) ku kombisa ni ku tirha kahle eka swihlamusela-marito leswi na swona. Vuxokoxoko byo tala bya nseketelo lebyi kongomeke byi nyikiwile laha hansi.

U nga kuma nxaxamelo wa hina lowu seketeriwaka wa swihlamusela-marito ni tivhidiyo ta swona eka hina.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

Hi tirhisa Autoprefixer ku khoma nseketelo wa swihlamusela-marito lowu kunguhatiweke hi ku tirhisa swirhangi swa CSS, leswi tirhisaka Browserslist ku lawula tivhidiyo leti ta swihlamusela-marito. Languta matsalwa ya vona ku kuma ndlela yo hlanganisa switirhisiwa leswi eka tiphurojeke ta wena.

Switirhisiwa swa tiselfoni

Hi ku angarhela, Bootstrap yi seketela vuhundzuluxeri bya sweswinyana bya swihlamusela-marito swa xiviri swa pulatifomo yin’wana ni yin’wana leyikulu. Xiya leswaku swihlamusela-marito swa vuyimeri (swo tanihi Opera Mini, movha wa Turbo wa Opera Mobile, UC Browser Mini, Amazon Silk) a swi seketeriwi.

Chrome Firefox ya kona Safari ya kona Xihlamusela-marito xa Android & WebView
Android Ku seketeriwa Ku seketeriwa v6.0+
iOS Ku seketeriwa Ku seketeriwa Ku seketeriwa

Swihlamusela-marito swa le desktop

Hilaha ku fanaka, tivhidiyo ta sweswinyana ta swihlamusela-marito swo tala swa le desktop swa seketeriwa.

Chrome Firefox ya kona Microsoft Edge Opera Safari ya kona
Mac Ku seketeriwa Ku seketeriwa Ku seketeriwa Ku seketeriwa Ku seketeriwa
Mafasitere Ku seketeriwa Ku seketeriwa Ku seketeriwa Ku seketeriwa

Eka Firefox, ku engetela eka nkandziyiso wa sweswinyana wa ntolovelo lowu tiyeke, hi tlhela hi seketela vuhundzuluxeri bya sweswinyana bya Nkandziyiso wa Nseketelo lowu Engeteriweke (ESR) wa Firefox.

Hi ndlela leyi nga riki ya ximfumo, Bootstrap yi fanele ku languteka no tikhoma kahle ku ringana eka Chromium na Chrome ya Linux, na Firefox ya Linux, hambi leswi swi nga seketeriwiki ximfumo.

Xihlovo xa Internet

Internet Explorer a yi seketeriwi. Loko u lava nseketelo wa Internet Explorer, hi kombela u tirhisa Bootstrap v4.

Timodali na ti-dropdown eka tiselfoni

Ku tala ni ku rhendzeleka

Nseketelo wa overflow: hidden;eka <body>elemente wu ringaniseriwile swinene eka iOS na Android. Leswaku u endla sweswo, loko u hundza ehenhla kumbe ehansi ka modal eka xin’wana xa swihlamusela-marito swa switirhisiwa sweswo, leswi <body>nga endzeni swi ta sungula ku rhendzeleka. Vona xihoxo xa Chrome #175502 (xi lulamisiwile eka Chrome v40) na xihoxo xa WebKit #153852 .

Tinsimu ta matsalwa ya iOS na ku rhendzeleka

Ku sukela eka iOS 9.2, loko modal yi ri karhi yi pfulekile, loko ku khumba ko sungula ka xikombiso xa ku rhendzeleka ku ri endzeni ka ndzilakano wa tsalwa <input>kumbe a <textarea>, leswi <body>nga ehansi ka modal swi ta rhendzeleka ematshan’weni ya modal hi yoxe. Vona xihoxo xa WebKit #153856 .

Element .dropdown-backdropleyi a yi tirhisiwi eka iOS eka nav hikwalaho ka ku rharhangana ka z-indexing. Xisweswo, ku pfala swilo leswi nga ehansi eka ti-navbar, u fanele ku tikhoma hi ku kongoma xiaki lexi nga ehansi (kumbe xiaki xin’wana ni xin’wana lexi nga ta duvula xiendlakalo xo tsindziyela eka iOS ).

Ku kurisa ka browser

Ku kurisa pheji hi ndlela leyi nga papalatekiki ku humesa swilo swa khale swa ku hundzuluxela eka swiphemu swin’wana, eka Bootstrap ni le ka webu hinkwayo. Ku ya hi mhaka, hi nga ha swi kota ku yi lulamisa (rhanga hi lavisisa ivi u pfula mhaka loko swi laveka). Kambe, hi tala ku honisa leswi tanihi leswi hakanyingi swi nga riki na ntlhantlho lowu kongomeke handle ka swintshuxo swa hacky.

Vatiyisisi

Leswaku yi nyika ntokoto lowunene lowu kotekaka eka swihlamusela-marito swa khale ni leswi nga ni swihoxo, Bootstrap yi tirhisa ku hakeriwa ka swihlamusela-marito swa CSS etindhawini to hlayanyana ku kongomisa CSS yo hlawuleka eka vuhundzuluxeri byo karhi bya swihlamusela-marito leswaku yi ta tirha ku rhendzela swihoxo eka swihlamusela-marito hi swoxe. Ti hack leti hi ndlela leyi twisisekaka ti endla leswaku va-CSS validator va vilela leswaku a va tirhi. Eka tindhawu timbirhi, hi tlhela hi tirhisa swihlawulekisi swa CSS swa bleeding-edge leswi nga si ringanisiwaka hi ku helela, kambe leswi swi tirhisiwa ntsena ku antswisa loku yaka emahlweni.

Switsundzuxo leswi swa ku tiyisisa a swi na mhaka hi ku tirhisa tanihileswi xiphemu lexi nga riki xa hacky xa CSS ya hina xi tiyisisaka hi ku helela naswona swiphemu swa hacky a swi kavanyeti ku tirha kahle ka xiphemu lexi nga riki xa hacky, hi yona mhaka leyi hi honisaka hi vomu switsundzuxo leswi swo karhi.

Tidokisi ta hina ta HTML na tona ti na switsundzuxo swo karhi leswi nga riki swa nkoka na leswi nga riki na nkoka swa ku tiyisisiwa ka HTML hikwalaho ka ku katsa ka hina ka ndlela yo tshungula xihoxo xo karhi xa Firefox .