如何刪除Bootstrap 中列之間的裝訂線間距
Bootstrap 中列之間的間距在不希望的情況下可能會造成視覺上混亂的外觀。以下是如何在不設定單獨邊距的情況下消除此裝訂線空間的方法:
Bootstrap 5 及更高版本
在Bootstrap 5 中,. no-gutters 類別已替換為.g -0。您可以在 .row 元素上使用它來刪除列之間的所有間距:
<div class="row g-0"> <div class="col">...</div> <div class="col">...</div> <div class="col">...</div> </div>
Bootstrap 5 還提供響應式裝訂線類,讓您可以調整特定斷點的間距。例如,.gx-sm-4 只會在具有「小」斷點的螢幕(例如智慧型手機)上刪除水平裝訂線。
Bootstrap 4
中Bootstrap 4中,可以直接使用.no-gutters類.row:
<div class="row no-gutters"> <div class="col" ...></div> <div class="col" ...></div> <div class="col" ...></div> </div>
Bootp 33. .0
<div class="row row-no-gutters"> <div class="col" ...></div> <div class="col" ...></div> <div class="col" ...></div> </div>
在Bootstrap 3.4 中,引入了專用的.row-no-gutters 類別:
引導程式3 (.no-gutter { margin-right: 0; margin-left: 0; } .no-gutter > [class*="col-"] { padding-right: 0; padding-left: 0; }在Bootstrap 3.3Bootstrap 3.3 .9 及更早版本中,裝訂線是使用填滿建立的。要刪除它們,您需要使用以下 CSS:將 .no-gutter 類別新增至 .row 元素。以上是如何消除 Bootstrap 列之間的裝訂線間距?的詳細內容。更多資訊請關注PHP中文網其他相關文章!

是的,youshouldlearnbothflexboxandgrid.1)flexboxisidealforone-demensional,flexiblelayoutslikenavigationmenus.2)gridexcelstcelsintwo-dimensional,confffferDesignssignssuchasmagagazineLayouts.3)blosebothenHancesSunHanceSlineHancesLayOutflexibilitibilitibilitibilitibilityAnderibilitibilityAndresponScormentilial anderingStruction

重構自己的代碼看起來是什麼樣的?約翰·瑞亞(John Rhea)挑選了他寫的一個舊的CSS動畫,並介紹了優化它的思維過程。

CSSanimationsarenotinherentlyhardbutrequirepracticeandunderstandingofCSSpropertiesandtimingfunctions.1)Startwithsimpleanimationslikescalingabuttononhoverusingkeyframes.2)Useeasingfunctionslikecubic-bezierfornaturaleffects,suchasabounceanimation.3)For

@keyframesispopularduetoitsversatoryand and powerincreatingsmoothcsssanimations.keytricksinclude:1)definingsmoothtransitionsbetnestates,2)使用AnimatingMultatingMultationMultationProperPertiessimultane,3)使用使用4)使用BombingeNtibalibility,4)使用CombanningWiThjavoFofofofoftofofo

CSSCOUNTERSAREDOMANAGEAUTOMANAMBERINGINWEBDESIGNS.1)他們可以使用forterablesofcontents,ListItems,and customnumbering.2)AdvancedsincludenestednumberingSystems.3)挑戰挑戰InclassINCludeBrowsEccerCerceribaliblesibility andperformiballibility andperformissises.4)創造性

使用滾動陰影,尤其是對於移動設備,是克里斯以前涵蓋的一個微妙的UX。傑夫(Geoff)涵蓋了一種使用動畫限制屬性的新方法。這是另一種方式。


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

Safe Exam Browser
Safe Exam Browser是一個安全的瀏覽器環境,安全地進行線上考試。該軟體將任何電腦變成一個安全的工作站。它控制對任何實用工具的訪問,並防止學生使用未經授權的資源。

SAP NetWeaver Server Adapter for Eclipse
將Eclipse與SAP NetWeaver應用伺服器整合。

VSCode Windows 64位元 下載
微軟推出的免費、功能強大的一款IDE編輯器

Atom編輯器mac版下載
最受歡迎的的開源編輯器

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)