相关疑难解决方法(0)

Bootstrap v4网格大小/ Sass列表

我正在尝试在我的项目中使用Bootstrap v4变量,但它存储在array(_variables.scss)中:

$grid-breakpoints: (
  xs: 0,
  sm: 544px,
  md: 768px,
  lg: 992px,
  xl: 1200px
) !default;
Run Code Online (Sandbox Code Playgroud)

我怎样才能在我的sass中引用它:

@media(max-width: $grid-breakpoints[xs]) {
  font-size: 20px;
}
Run Code Online (Sandbox Code Playgroud)

css sass twitter-bootstrap bootstrap-4

5
推荐指数
1
解决办法
1930
查看次数

标签 统计

bootstrap-4 ×1

css ×1

sass ×1

twitter-bootstrap ×1