Into yemidiya
Amaxwebhu kunye nemizekelo yento yemidiya yeBootstrap yokwakha izinto eziphindaphindwayo njengezimvo zebhlog, iitweets, nokunye okunjalo.
Umzekelo
Into yemidiya inceda ukwakha izinto ezintsonkothileyo neziphindaphindayo apho ezinye imidiya zibekwe ecaleni komxholo ongasongekiyo kwimidiya exeliweyo. Kwaye, ikwenza oku ngeeklasi ezimbini kuphela ezifunekayo enkosi kwi-flexbox.
Ngezantsi ngumzekelo wento enye yemidiya. Zimbini kuphela iiklasi ezifunekayo-ukusonga .media
kunye .media-body
nokujikeleza umxholo wakho. I-padding yokuzikhethela kunye nomda unokulawulwa ngokusetyenziswa kwezithuba .
Isihloko semidiya
Ngaba ungenza okufanayo nakum? Lixesha lokuba ujongane nomculo andisengomzi wakho. Iviwe intle, yiba yijaji kwaye iintombi zam zizovota. Ndiyiva iphoenix ngaphakathi kum. Izulu linomona ngothando lwethu, iingelosi ziyakhala phezulu. Ewe, undisa kwi-utopia.
<div class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Media heading</h5>
<p>Will you do the same for me? It's time to face the music I'm no longer your muse. Heard it's beautiful, be the judge and my girls gonna take a vote. I can feel a phoenix inside of me. Heaven is jealous of our love, angels are crying from up above. Yeah, you take me to utopia.</p>
</div>
</div>
I-Flexbug #12: Izinto ezingaphakathi aziphathwa njengezinto eziguqukayo
I-Internet Explorer 10-11 ayinikezeli izinto ezisemgqeni ezinje ngamakhonkco okanye imifanekiso (okanye ::before
kunye ne ::after
-pseudo-elements) njengezinto eziguqukayo. Ekuphela kwendlela yokusebenza kukuseta ixabiso elingelolayini display
(umzekelo, block
, , inline-block
, okanye flex
). Sicebisa ukusebenzisa .d-flex
, enye yezixhobo zethu zokubonisa , njengolungiso olulula.
Umthombo: IiFlexbugs kwiGitHub
Ukuzalela
Izinto zeMedia zinokugcinwa ngokungenasiphelo, nangona sicebisa ukuba uyeke ngaxa lithile. Indawo ebekwe .media
ngaphakathi kwesixhobo .media-body
semidiya engumzali.
Isihloko semidiya
Ukuma kumgca ongaphambili xa iibhombu ziqala ukuwa. Izulu linomona ngothando lwethu, iingelosi ziyakhala phezulu. Ayinakukubuyisela ngendandatho yesigidi. Mfana, xa ukunye nam ndiya kukunika incasa. Akukho kubuya ngamva. Ngaphambi kokuba udibane nam bendilungile kodwa izinto bezinzima. Inzima intloko ethwele isithsaba.
Isihloko semidiya
Molweni zithandwa masithathe uhambo. Ewe, siyakhala iingelosi, imvula isuka phezulu emhlabeni. Ukukunika into elungileyo yokubhiyozela. Bendimane ndiziluma ulwimi ndibambe umphefumlo. Ndiza kufumana intliziyo yakho ibetha kwijean yam eqinile. Njengoko ndihamba ndedwa ndisiya kwisingqi esahlukileyo. Ehlotyeni emva kwesikolo samabanga aphakamileyo xa sasiqala ukudibana. Uyalalisa kakhulu, unokuba ngusathana? Ungaba yingelosi? Lixesha lokukhupha iibhaluni ezinkulu. Ndandicinga ukuba ndim owahlukileyo. Bikinis, zucchinis, Martinis, akukho weenies.
<div class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Media heading</h5>
<p>Standing on the frontline when the bombs start to fall. Heaven is jealous of our love, angels are crying from up above. Can't replace you with a million rings. Boy, when you're with me I'll give you a taste. There’s no going back. Before you met me I was alright but things were kinda heavy. Heavy is the head that wears the crown.</p>
<div class="media mt-3">
<a class="mr-3" href="#">
<img src="..." alt="...">
</a>
<div class="media-body">
<h5 class="mt-0">Media heading</h5>
<p>Greetings loved ones let's take a journey. Yes, we make angels cry, raining down on earth from up above. Give you something good to celebrate. I used to bite my tongue and hold my breath. I'm ma get your heart racing in my skin-tight jeans. As I march alone to a different beat. Summer after high school when we first met. You're so hypnotizing, could you be the devil? Could you be an angel? It's time to bring out the big balloons. Thought that I was the exception. Bikinis, zucchinis, Martinis, no weenies.</p>
</div>
</div>
</div>
</div>
Ulungelelwaniso
Imidiya kwinto yemidiya inokulungelelaniswa nezixhobo ze-flexbox ukuya phezulu (okungagqibekanga), phakathi, okanye ekupheleni .media-body
komxholo wakho.
Imidiya elungelelaniswe phezulu
Ndizakumfaka kwisiqaqa. Unika izizathu ezilikhulu zokuba kutheni, kwaye uthi uya kuzama ngokwenene. Ndiye ndahlala phantsi, ndavuma ngesidima. Ukulungela idabi lam lesithsaba. Kwaye ngomhla wam wokuzalwa we-18th safumana itattoos ezihambelanayo. Ke u-très chic, ewe, ungumfundi wakudala. Ndiyilungele indlela yokuhamba kancinci.
Ndihamba emoyeni (namhlanje ebusuku). Kodwa phantsi emhlabeni. Ungowoqobo, awunakutshintshwa. Kodwa kobunye ubomi ndizakuba yintombi yakho. Sahamba sayofika eCali sanxila elwandle. Singadanisa de sife, mna nawe siya kuba sisebatsha ngonaphakade. Ndikubone edolophini ucula iiBlues.
<div class="media">
<img src="..." class="align-self-start mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Top-aligned media</h5>
<p>I’m gon’ put her in a coma. You give a hundred reasons why, and you say you're really gonna try. So I sat quietly, agreed politely. Suiting up for my crowning battle. And on my 18th Birthday we got matching tattoos. So très chic, yeah, she's a classic. I am ready for the road less traveled.</p>
<p>I'm walking on air (tonight). But down to earth. You're original, cannot be replaced. But in another life I would be your girl. We drove to Cali and got drunk on the beach. We can dance, until we die, you and I, will be young forever. Saw you downtown singing the Blues.</p>
</div>
</div>
Imidiya elungelelaniswe embindini
Uya kubanda njengefriji. Ekupheleni kwayo yonke loo nto. Ukuhlaba okwenyosi ndizuze imigca yam. Bikinis, zucchinis, Martinis, akukho weenies. Ndiyathemba ukuba unomdla osempilweni. Singadanisa de sife, mna nawe siya kuba sisebatsha ngonaphakade. Siphila ubomi. Siyenza kakuhle. Ilizwi esitratweni, unento yokundibonisa, mna.
Ufuna ukubona umboniso kwi-3D, imuvi. Bathi, yoyika ukuba awufani nabanye, umthandi wekamva. Vula intliziyo yakho. Ndiye ndahlala phantsi, ndavuma ngesidima. Kubusuku obudlule bangolwsihlanu. Ewe, unethamsanqa ukuba ukwinqwelomoya yakhe. Ndiza kuba sisipho sakho, ndikunike into entle ukuba uyibhiyozele.
<div class="media">
<img src="..." class="align-self-center mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Center-aligned media</h5>
<p>She'll turn cold as a freezer. At the eh-end of it all. Stinging like a bee I earned my stripes. Bikinis, zucchinis, Martinis, no weenies. I hope you got a healthy appetite. We can dance, until we die, you and I, will be young forever. We're living the life. We're doing it right. Word on the street, you got somethin' to show me, me.</p>
<p class="mb-0">Wanna see the show in 3D, a movie. They say, be afraid you're not like the others, futuristic lover. Open up your heart. So I sat quietly, agreed politely. Last Friday night. Yeah, you're lucky if you're on her plane. I'll be your gift, give you something good to celebrate.</p>
</div>
</div>
Imidiya ehambelana ezantsi
Yiza, vumela imibala yakho igqabhuke. Ndiyakuva oku kukhanya kungaphakathi kwam. Ubusuku bonke bayadlala, ingoma yakho. Ukusuka eTokyo ukuya eMexico, ukuya eRio. Akukho kubuya ngamva. Kodwa phantsi emhlabeni. Umlingo, unemibala, Mnu. Mystery, ee. I-DNA eyahlukileyo, ayikuqondi.
Kodwa phantsi emhlabeni. Unayo loo nto, je ne sais quoi, uyayazi lonto. Ndiyawubona umbhalo osedongeni. Amakhwenkwe ophula iintamo zawo atry'na ukuze achwechwe kancinci akrobe. Ndithathe, ta-ta-ndithathe. Vula intliziyo yakho. Ndandicinga ukuba ndim owahlukileyo. Boom, qhuma, qhuma. Ulwandle lwaseVenice kunye nePalm Springs, ixesha lasehlotyeni liyinto yonke. Buyisa isingqi. (Senza njalo)
<div class="media">
<img src="..." class="align-self-end mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Bottom-aligned media</h5>
<p>Come on, let your colours burst. I can feel this light that's inside of me. All night they're playing, your song. From Tokyo to Mexico, to Rio. There’s no going back. But down to earth. Magical, colorful, Mr. Mystery, ee. Different DNA, they don't understand you.</p>
<p class="mb-0">But down to earth. She's got that, je ne sais quoi, you know it. I can see the writing on the wall. The boys break their necks try'na to creep a little sneak peek. Take me, ta-ta-take me. Open up your heart. Thought that I was the exception. Boom, boom, boom. Venice beach and Palm Springs, summertime is everything. Bring the beat back. (This is how we do)</p>
</div>
</div>
Umyalelo
Guqula ulandelelwano lomxholo kwizinto zemidiya ngokuguqula iHTML ngokwayo, okanye ngokongeza i-CSS yesiko le-flexbox ukuseta order
ipropati (kwinani elipheleleyo lokukhetha kwakho).
Into yemidiya
Ndiyazi lizakubakhona idini kodwa lixabiso elo. Unesibindi sokundivumela ndibone ipikoko yakho? Yiba liphupha lakho lobutsha ngobu busuku. Uh-huh, ndiyakubona. Akukho kubuya ngamva. Ewe, siwanyuse amakhadi ethu etyala kwaye sakhatyelwa ngaphandle kwebhari. Ke mandikufake kwisuti yakho yokuzalwa. Unokuthandana xa udibana naye. Ngaba ihlabathi lisesandleni sezandla zakho. Ungavumeli ubukhulu bukwenzele phantsi, oh, oh ewe. Ngoku sithetha ngokuvumisa ngeenkwenkwezi, ukwenza iinzipho zethu, sonke siJapan-y. Ndenze ndibe nguAphrodite wakho.
<div class="media">
<div class="media-body">
<h5 class="mt-0 mb-1">Media object</h5>
<p>I know there will be sacrifice but that's the price. Are you brave enough to let me see your peacock? Be your teenage dream tonight. Uh-huh, I see you. There’s no going back. Yeah, we maxed our credit cards and got kicked out of the bar. So let me get you in your birthday suit. You may fall in love when you meet her. Had the world in the palm of your hands. Don't let the greatness get you down, oh, oh yeah. Now we talking astrology, getting our nails did, all Japanese-y. Make me your Aphrodite.</p>
</div>
<img src="..." class="ml-3" alt="...">
</div>
Uluhlu lwemidiya
Ngenxa yokuba into yemidiya ineemfuno ezimbalwa zolwakhiwo, ungasebenzisa ezi klasi kuluhlu lweempawu zeHTML. Kweyakho <ul>
okanye <ol>
, yongeza .list-unstyled
ukususa naziphi na izitayile zoluhlu lwebhrawuza, kwaye emva koko ufake .media
kwi <li>
s yakho. Njengesiqhelo, sebenzisa izixhobo zokubeka izithuba naphi na apho kufuneka ucule kakuhle.
-
Into yemidiya esekwe kuluhlu
Onke amantombazana am akudala eChanel umntwana. Ngoko ungayifumana ikhekhe lakho. Ngokuhlwa, ngokuhlwanje, ngokuhlwanje, ndihamba emoyeni. Ukuthoba kancinci uloyiko lwam, ewe ewe. Ikhula ngokukhawuleza ibe ngumbane. Kushushu kwaye kunzima, 'Kude kwasa. Loo ntsomi iphetha ngomntu onxibe isikrweqe esibenyezelayo. Inzima intloko ethwele isithsaba.
-
Into yemidiya esekwe kuluhlu
Mhlawumbi isizathu sokuba zonke iingcango zivaliwe. Kuba xa ungowam, xa ungowam. Yiba liphupha lakho lobutsha ngobu busuku. Inzima intloko ethwele isithsaba. Asiyoholide, akukho nto inokubhiyozelwa. Isaqhwithi esigqibeleleyo, isaqhwithi esigqibeleleyo.
-
Into yemidiya esekwe kuluhlu
Unesibindi sokundivumela ndibone ipikoko yakho? Akukho kubuya ngamva. Eli lixesha lokugqibela uthi, emva komgca wokugqibela uqhawule. Ekupheleni kwayo yonke loo nto.
<ul class="list-unstyled">
<li class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0 mb-1">List-based media object</h5>
<p>All my girls vintage Chanel baby. So you can have your cake. Tonight, tonight, tonight, I'm walking on air. Slowly swallowing down my fear, yeah yeah. Growing fast into a bolt of lightning. So hot and heavy, 'Til dawn. That fairy tale ending with a knight in shining armor. Heavy is the head that wears the crown.</p>
</div>
</li>
<li class="media my-4">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0 mb-1">List-based media object</h5>
<p>Maybe a reason why all the doors are closed. Cause once you’re mine, once you’re mine. Be your teenage dream tonight. Heavy is the head that wears the crown. It's not even a holiday, nothing to celebrate. A perfect storm, perfect storm.</p>
</div>
</li>
<li class="media">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0 mb-1">List-based media object</h5>
<p>Are you brave enough to let me see your peacock? There’s no going back. This is the last time you say, after the last line you break. At the eh-end of it all.</p>
</div>
</li>
</ul>