如何在引导程序中禁用断点

问题描述 投票:0回答:1

这是我第一次使用 bootstrap。我将它用于移动断点的手风琴页脚。现在的问题是引导程序正在设置我不希望在其余设计中设置的其他断点。我怎样才能禁用这个功能?执行此操作的文件称为“grid.less”。我只使用 bootstrap 来使页脚正常工作,实际上没有其他任何东西。感谢您的帮助!

html css twitter-bootstrap bootstrap-modal breakpoints
1个回答
1
投票

你必须用你自己的风格覆盖Bootstrap的风格。首先,你必须将你的样式的链接放在 Bootstrap 的链接下面,如下所示:

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="mystyle.css">

其次,您必须找到要覆盖的样式,可能需要使用开发工具。例如:

来自 grid.scss:

@media (min-width: 992px)
.container {
    max-width: 960px;
}

您的风格:

@media (min-width: 992px)
.container {
    max-width: 100%;
}

等等。

© www.soinside.com 2019 - 2024. All rights reserved.