我的应用程序需要在从台式机到平板电脑的设计中使用1280断点,或者分别在xl和lg上。然而,Bootstrap本身的xl断点为1200。
我需要全局更改Bootstrap的xl断点。我是否必须从源文件重新编译Bootstrap 4?
我尝试在我的Sass构建中设置此内容:
$grid-breakpoints: (
// Extra small screen / phone
xs: 0,
// Small screen / phone
sm: 576px,
// Medium screen / tablet
md: 768px,
// Large screen / desktop
lg: 992px,
// Extra large screen / wide desktop
xl: 1280px
);
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1220px
);
然而,对于全局的xl断点没有任何更改,它仍会在1200像素宽度处进行断开。