in English

Mediýa obýekti

“Bootstrap” -yň media obýekti üçin blog teswirleri, twitler we şuňa meňzeşler ýaly ýokary gaýtalanýan komponentleri gurmak üçin resminamalar we mysallar.

Mysal

Mediýa obýekti , käbir metbugatyň aýdylýan mediýa bilen örtülmeýän mazmun bilen birlikde ýerleşýän çylşyrymly we gaýtalanýan komponentleri gurmaga kömek edýär . Mundan başga-da, muny flexbox-yň kömegi bilen diňe iki zerur synp bilen ýerine ýetirýär.

Aşakda ýekeje media obýektiniň mysaly. Diňe iki synp gerek - mazmunyňyzy gurşamak .mediawe daş-töweregi. Islege bagly padding we margin aralyk hyzmatlary.media-body arkaly dolandyrylyp bilner .

Placeholder 64x64
Mediýa sözbaşy

Senem meniň üçin edersiňmi? Aýdym-saz bilen ýüzbe-ýüz bolmagyň wagty geldi, men indi seniň muzeýiň däl. Eşidiň, kazy boluň, gyzlarym ses bererler. Içimde feniks duýup bilerin. Jennet biziň söýgimize gabanjaň, perişdeler ýokardan aglaýarlar. Hawa, meni utopiýa äkidýärsiň.

<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>
Flexbug # 12: Içerki elementlere flex elementleri hökmünde garalmaýar

Internet Explorer 10-11 baglanyşyklar ýa-da şekiller (ýa-da pseudo-elementler) ýaly içerki elementleri ::beforeflex ::afterelementleri hökmünde görkezmeýär. Onlyeke-täk çözgüt, çyzykly däl displaybahany kesgitlemekdir (meselem block, inline-blockýa-da flex). Ekranyň kömekçi enjamlaryndan.d-flex biri bolan aňsat düzediş hökmünde ulanmagy maslahat berýäris .

Çeşme: GitHub-daky Flexbugs

Höwürtge

Mediýa obýektleri çäksiz höwürtge döredilip bilner, ýöne belli bir wagt durmagyňyzy maslahat berýäris. Esasy media obýektiniň .mediaiçinde höwürtge ýerleşdiriň ..media-body

Placeholder 64x64
Mediýa sözbaşy

Bombalar gaçyp başlanda birinji hatarda durmak. Jennet biziň söýgimize gabanjaň, perişdeler ýokardan aglaýarlar. Seni million halka bilen çalşyp bilemok. Oglan, meniň ýanymda bolsaň, saňa tagam bererin. Yza gaýdyp bolmaz. Sen meniň bilen duşuşmazdan ozal gowy boldum, ýöne zatlar gaty agyrdy. Agyr täji geýýän kelledir.

Placeholder 64x64
Mediýa sözbaşy

Salam ýakynlar bilen salamlaşalyň. Hawa, ýokardan ýer ýüzüne ýagyş ýagyp, perişdeleri aglaýarys. Baýram etmek üçin gowy zat beriň. Men dilimi dişläp, demimi tutýardym. Derini gysýan jynsymda ýüregiňizi ýaryp başladym. Aloneeke özüm başga bir urga tarap barýarkam. Orta mekdepden soň tomus ilkinji gezek tanyşanymyzda. Siz gaty gipnoz edýärsiňiz, şeýtan bolup bilersiňizmi? Perişde bolup bilersiňizmi? Uly şarlary çykarmagyň wagty geldi. Kadadan çykdym öýdüpdim. Bikinis, gök, Martinis.

<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>

Deňleşdirmek

Mediýa obýektindäki media, flexbox enjamlary bilen .media-bodymazmunyňyzyň ýokarsyna (ortasyna), ortasyna ýa-da soňuna gabat gelip biler.

Placeholder 64x64
Iň ýokary derejeli metbugat

Men ony koma saljak däl. Munuň ýüz sebäbini görkezýärsiňiz we hakykatdanam synap görjekdigiňizi aýdýarsyňyz. Şeýdip, ýuwaşlyk bilen oturdym, sypaýyçylyk bilen razy boldum. Täç söweşime taýýar. 18 ýaşymda bolsa, gabat gelýän tatuirowkalary aldyk. Très chic, hawa, ol klassik. Az syýahat edilýän ýol üçin taýyn.

Howada (şu gije) ýöräp barýaryn. Emma ýere. Siz asyl, çalşyp bolmaýar Anotheröne başga bir durmuşda men seniň gyzyň bolardym. Kalä gitdik we kenarda serhoş bolduk. Tans edip bileris, ölýänçäm, sen we men, baky ýaş bolarys. Şäheriň merkezinde “Blues” aýdymyny gördüm.

<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>
Placeholder 64x64
Merkez bilen deňleşdirilen metbugat

Doňduryjy hökmünde sowuk öwrüler. Hemmesiniň soňunda. Ary ýaly gysyp, zolaklarymy gazandym. Bikinis, gök, Martinis. Sagdyn işdäňiz bar diýip umyt edýärin. Tans edip bileris, ölýänçäm, sen we men, baky ýaş bolarys. Biz ýaşaýarys. Biz muny dogry edýäris. Köçede söz, maňa görkezmek üçin bir zat aldyň.

Görkezişi 3D görnüşinde görmek isleýärin. Beýlekiler ýaly däl öýdüp gorkuň, futuristik aşyk diýýärler. Yourüregiňi aç. Şeýdip, ýuwaşlyk bilen oturdym, sypaýyçylyk bilen razy boldum. Geçen anna güni gije. Hawa, uçarynda bolsaňyz bagtly bolarsyňyz. Men siziň sowgadyňyz bolaryn, bellemek üçin gowy zat bererin.

<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>
Placeholder 64x64
Aşakdan düzülen metbugat

Gel, reňkleriň ýarylsyn. Içimdäki bu ýagtylygy duýup bilerin. Bütin gije aýdym aýdýarlar. Tokiodan Meksika, Rio. Yza gaýdyp bolmaz. Emma ýere. Jadyly, reňkli, jenap Mystery, ee. Dürli DNK, size düşünenoklar.

Emma ýere. Ol muny aldy, muny bilýärsiň. Diwardaky ýazgyny görüp bilýärin. Oglanlar boýnuny döwýärler, birneme sypmak üçin synanyşýarlar. Meni al, ta-ta-al. Yourüregiňi aç. Kadadan çykdym öýdüpdim. Bom, bum, bum. Wenesiýa plýa beachy we Palm Springs, tomus pasly hemme zat. Urgyny yzyna getiriň. (Ine, şeýle edýäris)

<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>

Sargyt

Mediýa obýektlerindäki mazmunyň tertibini HTML-iň özüni üýtgedip ýa-da orderemlägi bellemek üçin käbir adaty flexbox CSS goşmak bilen üýtgediň (öz islegiňiziň bitewi sanyna).

Mediýa obýekti

Gurban boljakdygyny bilýärin, ýöne bahasy. Tawusyňy görmäge rugsat berjek batyrmy? Bu gije ýetginjeklik arzuwyňyz boluň. U-how, men seni görýärin. Yza gaýdyp bolmaz. Hawa, kredit kartoçkalarymyzy köpeldip, bardan kowduk. Şonuň üçin sizi doglan günüň kostýumyna getirmäge rugsat ediň. Onuň bilen tanyşanyňyzda aşyk bolup bilersiňiz. Dünýä seniň eliňde bolan bolsa. Beýikligiň sizi peseltmegine ýol bermäň, ah, hawa. Indi astrologiýa hakda gürleşýäris, dyrnaklarymyzy aldyk, hemmesi ýapon-y. Meni Afrodit et.

Placeholder 64x64
<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>

Mediýa sanawy

Mediýa obýektiniň gurluş talaplary gaty az bolany üçin, bu synplary HTML elementleriniň sanawynda hem ulanyp bilersiňiz. Islendik brauzeriň deslapky sanaw stilini aýyrmak üçin goşuň we <ul>soňra s -leriňize degişlidir. Hemişe bolşy ýaly, sazlamak üçin zerur ýerlerde aralyk enjamlaryny ulanyň.<ol>.list-unstyled.media<li>

  • Placeholder 64x64
    Sanawa esaslanýan media obýekti

    Girlshli gyzlarym Çanel çagasyny üzüm edýärler. Şonuň üçin tortuňyzy alyp bilersiňiz. Şu gije, şu gije, şu gije, howada ýöräp barýaryn. Gorkumy ýuwaş-ýuwaşdan ýuwudýar, hawa. Ningyldyrym çaltlygynda çalt ulalmak. Gaty yssy we agyr, 'Til daň atýar. Parlak ýaragly rysar bilen gutarýan bu erteki. Agyr täji geýýän kelledir.

  • Placeholder 64x64
    Sanawa esaslanýan media obýekti

    Allhli gapylaryň ýapylmagynyň bir sebäbi bolup biler. Sebäbi meniňki bolanyňdan, bir gezek meniňki bolanyňdan. Bu gije ýetginjeklik arzuwyňyz boluň. Agyr täji geýýän kelledir. Bu hatda dynç alyş däl, bellemeli zat ýok. Ajaýyp tupan, ajaýyp tupan.

  • Placeholder 64x64
    Sanawa esaslanýan media obýekti

    Tawusyňy görmäge rugsat berjek batyrmy? Yza gaýdyp bolmaz. Iň soňky gezek aýdanyňda, iň soňky setirden soň. Hemmesiniň soňunda.

<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>