在以下代碼塊中,引導類d-none d-md-block正在取消d-flex。我不需要在低于md但也能夠設定的任何東西上顯示這個塊,d-flex以便引導align-self-end類作業,(目前它沒有)。我怎樣才能讓它們一起玩得很好?還是有其他解決方案?
<div class="col-md-6 col-sm-12 custom-right d-none d-md-block d-flex">
<h2 class="align-self-end">Title Here</h2>
</div>
uj5u.com熱心網友回復:
如果我理解正確,您根本不應該使用d-block。將其替換d-flex為d-md-flex僅將彈性顯示應用于中等斷點及以上。
請參閱https://getbootstrap.com/docs/5.1/utilities/flex/#enable-flex-behaviors和https://getbootstrap.com/docs/5.1/utilities/display/#hiding-elements。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/445230.html
下一篇:使盒子高度相同
