Skip to content
/ flex.scss Public

兼容IE10,IE11等主流浏览器的flex布局

Notifications You must be signed in to change notification settings

llyo/flex.scss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

flex.scss

兼容IE10,IE11等主流浏览器的flex布局

使用方法

  1. 在对应的scss/css样式文件中引入
@import 'yourPath/flex.scss';
  1. 使用常用布局时,直接extend即可
// 水平靠左,垂直居中
.example {
  @extend %flex-start-center;
}

等价于

.example {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
  1. 非常用布局,使用include
.example {
  @include flex(1 0 auto);
}

等价于

.example {
  flex: 1 0 auto;
}

.example {
  flex-grow: 1;
  flex-shrink: 0;
  flex-base: auto;
}

About

兼容IE10,IE11等主流浏览器的flex布局

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages