第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

Bootstrap 3使行的列向右浮動(dòng)

Bootstrap 3使行的列向右浮動(dòng)

不負(fù)相思意 2023-08-10 14:31:53
因此,在深入探討這個(gè)問(wèn)題之前,我想指出一些簡(jiǎn)單的要求,即如果可能的話,我希望如何實(shí)現(xiàn)這一目標(biāo)。a) 因?yàn)槲艺谛薷氖褂?Bootstrap 3 的 Woocommerce 模板,所以我不能簡(jiǎn)單地切換到 Bootstrap 4,即使最新版本確實(shí)對(duì)我有很大幫助。b) 我可以使用任何技術(shù)或自定義代碼,只要它可以正常工作,即使它超出了 Bootstrap 3 框架范圍。所以這是小提琴: https: //jsfiddle.net/wL1kjc0y/我還想讓這個(gè)產(chǎn)品列表更有趣,例如,對(duì)于奇怪的項(xiàng)目,我想讓產(chǎn)品名稱、文本、按鈕浮動(dòng)到右側(cè),以便產(chǎn)品圖像出現(xiàn)在左側(cè),并且?guī)缀鯇?duì)于甚至項(xiàng)目也是如此 - 圖像浮動(dòng)到右側(cè),文本內(nèi)容浮動(dòng)到左側(cè)。我為文本內(nèi)容創(chuàng)建了 div.col-lg-6 元素,為圖像創(chuàng)建了 col-lg-6 元素。問(wèn)題是,如果我將 .pull-right 類(lèi)應(yīng)用于包裝 Product 內(nèi)容的 div.col-lg-6 元素,則 .pull-right 類(lèi)不起作用。而且因?yàn)?Bootstrap 3 不使用 Flexbox,我添加了以下代碼:.d-flex {    display: flex !important; }到包裹兩列的元素,以便文本垂直居中正常工作。我發(fā)現(xiàn)浮動(dòng):對(duì);不適用于彈性元素。所以我不確定是否可以做我想做的事情,如果刪除 .d-flex 類(lèi)定義,一切都會(huì)正常,然后我可以使用 .pull-right 類(lèi),但文本不會(huì)垂直居中。您可以看一下刪除 .d-flex 并將 .pull-right 類(lèi)應(yīng)用于第一項(xiàng)的示例,它按預(yù)期工作: https: //jsfiddle.net/7guxfa5o/1/所以最后看起來(lái)我有兩個(gè)不完整的選擇:讓需要向右浮動(dòng)但垂直居中不起作用的列,或者在無(wú)法浮動(dòng)列的情況下進(jìn)行垂直居中。您可以忽略那里的 JavaScript 部分,因?yàn)樗饕糜跈z測(cè)瀏覽器窗口大小是否為中等大小,然后應(yīng)用一些格式、樣式規(guī)則。任何可行的替代方法或任何我可以嘗試的建議都將非常感激。
查看完整描述

1 回答

?
明月笑刀無(wú)情

TA貢獻(xiàn)1828條經(jīng)驗(yàn) 獲得超4個(gè)贊

根據(jù)我的理解,您需要在大屏幕上以替代順序顯示您的項(xiàng)目。為什么不在 HTML 代碼本身中對(duì)它們進(jìn)行替代排序呢?請(qǐng)檢查 小提琴,如果您正在尋找相同的東西,請(qǐng)告訴我。

<div class="container-fluid">

  <div class="row" style="background-color: #DDC1C1">

    <div class="col-lg-12 product_cat_col">

      <div class="col-lg-6 pull-right" style="margin: auto;">

        <p><label class="label label-danger">I?PARDUOTA</label></p>

        <h3 class="title40 lora-font font-bold black">

          Asun inhaliatorius ?Energy + B12“ </h3>

        <img class="product_cat_img hidden" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-energy-b12.png">

        <div class="title18 black product_cat_text">

          <div class="woocommerce-product-details__short-description">


            <strong>Asun inhaliatorius ?Energy + B12“

                        </strong>I?skirtinis Asun inhaliatorius, turintis net dvi veikli?sias med?iagas, maksimaliam poveikiui. Gaivaus arbūz? skonio ?Energy + B12“ inhaliatorius i?sklaidys blog? nuotaik? ir papildys energijos rezervus. Vitamino

            B12 trūkumas gali pasireik?ti daugybe skirting? neigiam? simptom?, i? kuri? daugelis yra tokie, kaip l?tinis nuovargis, nuotaikos sutrikimai, ar net depresija. Taurinas vaidina svarb? vaidmen? vitamino B12 sintez?je. Inhaliavimas u?tikrina

            maksimaliai greit? bei kokybi?k? med?iag? ?sisavinim? i?vengiant susidurimo su vir?kinamuoju traktu. ? organizm? patenkan?ios veikliosios med?iagos neapkrauna vidaus organ? ir plau?i? d?ka patenka tiesiai ? krauj?.


          </div>

          <div class="woosb-wrap woosb-bundled">

            <div class="woosb-before-text woosb-text"></div>

          </div>

          &nbsp;

        </div>

        <a class="shop-button bg-white" href="https://asun.lt/inhaliatoriai/asun-inhaliatorius-energy-b12/">Su?inoti daugiau</a>

      </div>

      <div class="col-lg-6 col-md-12" style="margin: auto;">

        <img class="product_cat_img_second" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-energy-b12.png">

      </div>

    </div>

  </div>

  <div class="row" style="background-color: #d6d7d8">

    <div class="col-lg-12 product_cat_col d-flex">

      <div class="col-lg-6" style="margin: auto;">

        <p><label class="label label-danger">I?PARDUOTA</label></p>

        <h3 class="title40 lora-font font-bold black">

          Asun inhaliatorius ?Sleep“ </h3>

        <img class="product_cat_img hidden" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-sleep.png">

        <div class="title18 black product_cat_text">

          <div class="woocommerce-product-details__short-description">


            <strong>Asun inhaliatorius ?Sleep“

                        </strong>Da?nai sunku u?migti d?l kankinan?ios nemigos? Su Asun "Sleep" u?mikite grei?iau ir pagerinkite miego kokyb? . Sud?tyje esantis melatoninas,&nbsp;da?nai dar vadinamas ?miego hormonu“, nes melatonino didelis

            kiekis gali pad?ti jums u?migti.&nbsp;Melatoninas yra hormonas, kuris reguliuoja bei gilina mieg?. D?ka Asun technologij?,&nbsp;inhaliuojant med?iag? ?sisavinimas tampa efektyvesnis, i?vengiant susidurimo su vir?kinamuoju traktu. ? organizm?

            patenkan?ios veikliosios med?iagos neapkrauna vidaus organ? ir plau?i? d?ka patenka tiesiai ? krauj?.


          </div>

          <div class="woosb-wrap woosb-bundled">

            <div class="woosb-before-text woosb-text"></div>

          </div>

          &nbsp;

        </div>

        <a class="shop-button bg-white" href="https://asun.lt/inhaliatoriai/asun-inhaliatorius-sleep/">Su?inoti

                    daugiau</a>

      </div>

      <div class="col-lg-6 col-md-12" style="margin: auto;">

        <img class="product_cat_img_second" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-sleep.png">

      </div>

    </div>

  </div>

  <div class="row" style="background-color: #DDC1C1">

    <div class="col-lg-12 product_cat_col d-flex">


      <div class="col-lg-6 col-md-12" style="margin: auto;">

        <img class="product_cat_img_second" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-diet.png">

      </div>

      <div class="col-lg-6" style="margin: auto;">

        <p><label class="label label-danger">I?PARDUOTA</label></p>

        <h3 class="title40 lora-font font-bold black">

          Asun inhaliatorius ?Diet“ </h3>

        <img class="product_cat_img hidden" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-diet.png">

        <div class="title18 black product_cat_text">

          <div class="woocommerce-product-details__short-description">


            <strong>Asun inhaliatorius ?Diet“

                        </strong>Gaivaus greipfrut? skonio, praturtintas triptofanu, kuris organizme v?liau virsta ? seratonin?. O kaip ?inia, seratoninas&nbsp;aktyviai dalyvauja reguliuojant apetit?. Pats inhaliavimas u?tikrina maksimaliai

            greit? bei kokybi?k? med?iag? ?sisavinim? i?vengiant susidurimo su vir?kinamuoju traktu. ? organizm? patenkan?ios veikliosios med?iagos neapkrauna vidaus organ? ir plau?i? d?ka patenka tiesiai ? krauj?.


          </div>

          <div class="woosb-wrap woosb-bundled">

            <div class="woosb-before-text woosb-text"></div>

          </div>

          &nbsp;

        </div>

        <a class="shop-button bg-white" href="https://asun.lt/inhaliatoriai/asun-inhaliatorius-diet/">Su?inoti

                    daugiau</a>

      </div>

    </div>

  </div>

  <div class="row" style="background-color: #d6d7d8">

    <div class="col-lg-12 product_cat_col d-flex">

      <div class="col-lg-6" style="margin: auto;">

        <p><label class="label label-danger">I?PARDUOTA</label></p>

        <h3 class="title40 lora-font font-bold black">

          Asun inhaliatorius ? Vitaminas B12“ (bra?k?) </h3>

        <img class="product_cat_img hidden" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-vitaminas-b12-braske.png">

        <div class="title18 black product_cat_text">

          <div class="woocommerce-product-details__short-description">


            <strong>Asun inhaliatorius ? Vitaminas B12“

                        </strong>Vitamino B12 trūkumas gali pasireik?ti daugybe skirting? neigiam? simptom?, i? kuri? daugelis yra tokie, kaip l?tinis nuovargis, nuotaikos sutrikimai, ar net depresija. Gaukite reikiamas vitamino B12 dozes

            Asun inhaliatoriaus pagalba.&nbsp;Inhaliavimas u?tikrina maksimaliai greit? bei kokybi?k? med?iag? ?sisavinim? i?vengiant susidurimo su vir?kinamuoju traktu. ? organizm? patenkan?ios veikliosios med?iagos neapkrauna vidaus organ? ir plau?i?

            d?ka patenka tiesiai ? krauj?.


          </div>

          <div class="woosb-wrap woosb-bundled">

            <div class="woosb-before-text woosb-text"></div>

          </div>

          &nbsp;

        </div>

        <a class="shop-button bg-white" href="https://asun.lt/inhaliatoriai/asun-inhaliatorius-vitaminas-b12-braske/">Su?inoti daugiau</a>

      </div>

      <div class="col-lg-6 col-md-12" style="margin: auto;">

        <img class="product_cat_img_second" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-vitaminas-b12-braske.png">

      </div>

    </div>

  </div>

  <div class="row" style="background-color: #DDC1C1">

    <div class="col-lg-12 product_cat_col d-flex">


      <div class="col-lg-6 col-md-12" style="margin: auto;">

        <img class="product_cat_img_second" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-focus.png">

      </div>

      <div class="col-lg-6" style="margin: auto;">

        <h3 class="title40 lora-font font-bold black">

          Asun inhaliatorius ?Focus“ </h3>

        <img class="product_cat_img hidden" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-focus.png">

        <div class="title18 black product_cat_text">

          <div class="woocommerce-product-details__short-description">


            <strong>Asun inhaliatorius ?Focus“

                        </strong>?veikite stres? ir nerim?, pagerinkite savo koncentracij? su Asun FOCUS. Sud?tyje esan?ios Romos ramun?l?s dar Romos imperijos laikais būdavo duodamos kariams siekiant skatinti j? koncentracij? ir dr?s?. Romos

            ramun?l?s padeda kovojant su nerimu ir depresija, o taip pat ma?ina alergijas, gerina miego kokyb?, teigiamai veikia od?, vir?kinimo trakt?, ?irdies darb?, pasi?ymi prie?v??in?mis savyb?mis.


          </div>

          <div class="woosb-wrap woosb-bundled">

            <div class="woosb-before-text woosb-text"></div>

          </div>

          &nbsp;

        </div>

        <a class="shop-button bg-white" href="https://asun.lt/inhaliatoriai/asun-inhaliatorius-focus/">Su?inoti

                    daugiau</a>

      </div>

    </div>

  </div>

  <div class="row" style="background-color: #d6d7d8">

    <div class="col-lg-12 product_cat_col d-flex">

      <div class="col-lg-6" style="margin: auto;">

        <p><label class="label label-danger">I?PARDUOTA</label></p>

        <h3 class="title40 lora-font font-bold black">

          Asun inhaliatorius ?Relax“ </h3>

        <img class="product_cat_img hidden" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-relax.png">

        <div class="title18 black product_cat_text">

          <div class="woocommerce-product-details__short-description">


            <strong>Asun inhaliatorius ?Relax“

                        </strong>Siekiant greito nusiraminimo streso metu, jums gali puikiai pasitarnauti Asun “Relax” inhaliatorius. Levand? skonio “Relax” sud?tis, praturtinta triptofanu, maisto med?iaga, padedan?ia nusiraminti ir pagerinti

            miego kokyb?. Inhaliavimas u?tikrina maksimaliai greit? bei kokybi?k? med?iag? ?sisavinim? i?vengiant susidurimo su vir?kinamuoju traktu. ? organizm? patenkan?ios veikliosios med?iagos neapkrauna vidaus organ? ir plau?i? d?ka patenka tiesiai

            ? krauj?.


          </div>

          <div class="woosb-wrap woosb-bundled">

            <div class="woosb-before-text woosb-text"></div>

          </div>

          &nbsp;

        </div>

        <a class="shop-button bg-white" href="https://asun.lt/inhaliatoriai/asun-inhaliatorius-relax/">Su?inoti

                    daugiau</a>

      </div>

      <div class="col-lg-6 col-md-12" style="margin: auto;">

        <img class="product_cat_img_second" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-relax.png">

      </div>

    </div>

  </div>

  <div class="row" style="background-color: #DDC1C1">

    <div class="col-lg-12 product_cat_col d-flex">


      <div class="col-lg-6 col-md-12" style="margin: auto;">

        <img class="product_cat_img_second" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-vitaminas-b12.png">

      </div>

      <div class="col-lg-6" style="margin: auto;">

        <p><label class="label label-danger">I?PARDUOTA</label></p>

        <h3 class="title40 lora-font font-bold black">

          Asun inhaliatorius ? Vitaminas B12“ </h3>

        <img class="product_cat_img hidden" src="https://asun.lt/wp-content/uploads/asun-inhaliatorius-vitaminas-b12.png">

        <div class="title18 black product_cat_text">

          <div class="woocommerce-product-details__short-description">


            <strong>Asun inhaliatorius ? Vitaminas B12“

                        </strong>Vitamino B12 trūkumas gali pasireik?ti daugybe skirting? neigiam? simptom?, i? kuri? daugelis yra tokie, kaip l?tinis nuovargis, nuotaikos sutrikimai, ar net depresija. Gaukite reikiamas vitamino B12 dozes

            Asun inhaliatoriaus pagalba.&nbsp;Inhaliavimas u?tikrina maksimaliai greit? bei kokybi?k? med?iag? ?sisavinim? i?vengiant susidurimo su vir?kinamuoju traktu. ? organizm? patenkan?ios veikliosios med?iagos neapkrauna vidaus organ? ir plau?i?

            d?ka patenka tiesiai ? krauj?.


          </div>

          <div class="woosb-wrap woosb-bundled">

            <div class="woosb-before-text woosb-text"></div>

          </div>

          &nbsp;

        </div>

        <a class="shop-button bg-white" href="https://asun.lt/inhaliatoriai/asun-inhaliatorius-vitaminas-b12/">Su?inoti daugiau</a>

      </div>

    </div>

  </div>

</div>


解決方案 2)使用 CSS,您可以定義兩個(gè)類(lèi)來(lái)分別在屏幕上向左和向右移動(dòng)元素lg。


@media screen and (min-width: 992px) {

 .shift-right{

   right:-50%;

  }

 .shift-left{

  left:-50%;

  }

}

這是使用 CSS 的工作小提琴



查看完整回答
反對(duì) 回復(fù) 2023-08-10
  • 1 回答
  • 0 關(guān)注
  • 221 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)