在Bootstrap 中刪除裝訂線
在Bootstrap 中,列由30px 裝訂線分隔,但在某些情況下需要刪除它。本文深入探討了在不訴諸 margin-left:-30px 方法的情況下刪除裝訂線的解決方案。
Bootstrap 5(最新)
Bootstrap 5 引入了一個簡化的解決方案與 .no-gutters 類。將此類加入.row 將消除列之間的間距:
<div class="row no-gutters"> <div class="col">x</div> <div class="col">x</div> <div class="col">x</div> </div>
Bootstrap 4
Bootstrap 4 也加入了.no-gutters 類,類似Bootstrap 5:
<div class="row no-gutters"> <div class="col">x</div> <div class="col">x</div> <div class="col">x</div> </div>
Bootstrap 4 還包括響應式裝訂線類,提供更大的靈活性:
<!-- Remove gutters on small and above breakpoints --> <div class="row g-0 g-sm-3"> <div class="col">x</div> <div class="col">x</div> <div class="col">x</div> </div>
Bootstrap 3.4.0
Bootstrap 3.4.0
.row-no-gutters 類別可以使用:
Bootstrap 3 (/* .row */ .no-gutter { margin-right: 0; margin-left: 0; } /* .row > [class*="col-"] */ .no-gutter > [class*="col-"] { padding-right: 0; padding-left: 0; }在早期Bootstrap 版本(3 到3.3.9),刪除裝訂線需要同時調整邊距和padding:將
.no-gutter<div class="row no-gutter"> <div class="col">x</div> <div class="col">x</div> <div class="col">x</div> </div>類別加入
.row
即可: 利用這些技術,您可以輕鬆消除Bootstrap中的裝訂線並實現所需的視覺佈局。以上是如何去除不同版本的 Bootstrap 中的裝訂線?的詳細內容。更多資訊請關注PHP中文網其他相關文章!

重構自己的代碼看起來是什麼樣的?約翰·瑞亞(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
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

SublimeText3 英文版
推薦:為Win版本,支援程式碼提示!

SublimeText3 Linux新版
SublimeText3 Linux最新版

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

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

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