Skip to content

Instantly share code, notes, and snippets.

@monsterooo
Last active October 17, 2016 18:29
Show Gist options
  • Save monsterooo/0000b6c0b358199e43175b37a3a9525b to your computer and use it in GitHub Desktop.
Save monsterooo/0000b6c0b358199e43175b37a3a9525b to your computer and use it in GitHub Desktop.
Untitled
.item {
display: box;
height: 300px;
/*设置伸缩盒对象的子元素从上到下纵向排列*/
/*box-orient: vertical;*/ /*简单说就是垂直排列*/
/*设置伸缩盒对象的子元素从左到右水平排列*/
/*box-orient: horizontal;*/ /*简单说就是水平排列*/
}
.list {
background-color: gold;
}
.list:nth-child(1) {
box-flex: 1;
background-color: #445566;
}
.list:nth-child(2) {
box-flex: 2;
background-color: #556677;
}
.list:nth-child(3) {
box-flex: 3;
background-color: #667788;
}
<div class="item">
<div class="list"></div>
<div class="list"></div>
<div class="list"></div>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment