Last active
October 17, 2016 18:29
-
-
Save monsterooo/0000b6c0b358199e43175b37a3a9525b to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="item"> | |
<div class="list"></div> | |
<div class="list"></div> | |
<div class="list"></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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