Tlolela ho litaba tsa mantlha Tlolela ho li-docs navigation
in English

Iketsetse

Ithute ho etsa tema, ho etsa, le ho holisa Bootstrap ka Sass, mefuta e mengata ea likhetho tsa lefats'e, sistimi e pharalletseng ea mebala, le tse ling.

Kakaretso

Ho na le mekhoa e mengata ea ho etsa Bootstrap. Tsela ea hau e ntle e ka ipapisa le morero oa hau, ho rarahana ha lisebelisoa tsa hau tsa kaho, mofuta oa Bootstrap oo u o sebelisang, tšehetso ea sebatli, le tse ling.

Mekhoa e 'meli eo re e ratang ke:

  1. Ho sebelisa Bootstrap ka molaoli oa sephutheloana hore o tsebe ho sebelisa le ho holisa lifaele tsa rona tsa mohloli.
  2. U sebelisa lifaele tsa kabo e hlophisitsoeng tsa Bootstrap kapa jsDelivr hore o tsebe ho eketsa kapa ho hlakola mekhoa ea Bootstrap.

Le ha re sa khone ho fana ka lintlha mona mabapi le mokhoa oa ho sebelisa molaoli e mong le e mong oa sephutheloana, re ka fana ka tataiso mabapi le ho sebelisa Bootstrap ka pokello ea hau ea Sass .

Bakeng sa ba batlang ho sebelisa lifaele tsa kabo, hlahloba leqephe la ho qala ho kenyelletsa lifaele tseo le mohlala oa leqephe la HTML. Ho tloha moo, sheba litokomane tsa sebopeho, likarolo, le boitšoaro boo u ka ratang ho bo sebelisa.

Ha u ntse u tloaelana le Bootstrap, tsoela pele ho hlahloba karolo ena bakeng sa lintlha tse ling mabapi le mokhoa oa ho sebelisa likhetho tsa rona tsa lefats'e, ho sebelisa le ho fetola mokhoa oa rona oa mebala, mokhoa oa ho haha ​​​​lisebelisoa tsa rona, mokhoa oa ho sebelisa lethathamo la rona le ntseng le hōla la thepa ea CSS, le kamoo ho ntlafatsa khoutu ea hau ha u haha ​​​​ka Bootstrap.

CSPs le li-SVG tse kentsoeng

Likarolo tse 'maloa tsa Bootstrap li kenyelletsa li-SVG tse kentsoeng ho CSS ea rona ho etsa likarolo tsa setaele ka mokhoa o tsitsitseng le ha bonolo ho libatli le lisebelisoa. Bakeng sa mekhatlo e nang le litlhophiso tse thata haholoanyane tsa CSP , re ngotse mehlala eohle ea li-SVG tsa rona tse kentsoeng (kaofela li sebelisoa ka background-image) hore o tle o hlahlobe likhetho tsa hau ka botlalo.

Ho ipapisitsoe le puisano ea sechaba , likhetho tse ling tsa ho rarolla sena ka har'a codebase ea hau li kenyelletsa ho tlosa li-URL ka thepa e amoheloang sebakeng sa heno, ho tlosa litšoantšo le ho sebelisa litšoantšo tse ka har'a marang-rang (ha ho khonehe likarolong tsohle), le ho fetola CSP ea hau. Keletso ea rona ke ho hlahloba ka hloko maano a hau a ts'ireletso le ho etsa qeto ka tsela e nepahetseng ea ho ea pele, ha ho hlokahala.