相关疑难解决方法(0)

SASS中的'%'是什么意思

当我检查Drupal Omega 4主题时,我看到了这段代码

 %container {
  @include container;
  @include grid-background;
}
Run Code Online (Sandbox Code Playgroud)

'%container'是什么意思?什么是'%'?

sass

20
推荐指数
3
解决办法
8446
查看次数

In SCSS, what does % symbol indicate?

What does % indicate in scss?

Use of % in context: (source: https://codepen.io/FWeinb/pen/GrpqB?editors=1100)

@import "compass/css3";

.box{
  margin: 5em auto;
  position: relative;
  width: 10em;
  height: 10em;
  line-height: 10em;
  overflow: hidden;
}

%box__dir{
  position: absolute;
  width: inherit;
  height: inherit;          
  text-align: center;
  line-height: inherit;
  transition:transform .4s ease;
}
Run Code Online (Sandbox Code Playgroud)

What does the percentage sign before "box_dir" indicate?

css sass

3
推荐指数
1
解决办法
613
查看次数

标签 统计

sass ×2

css ×1