
我懷疑這是 Bootstrap 5 的默認設定。我用檢查發現確實有BS wrapper class,我用CSS將所有的margin和padding都設定div.container為0px,然而,情況變得更糟,整個section向左移動,出現奇怪的margin at正確的。有什么線索嗎?
div.container{
padding:0px;
margin:0px;
}

uj5u.com熱心網友回復:
此問題是由組合模板和現有 HTML 代碼的包裝器引起的。更改container為container-fluid包裝器將解決問題。
在 jQuery 檔案中添加:
$('.container').addClass('container-fluid').removeClass('container');
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/534534.html
