This file contains 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 | |
*/ | |
.box-set { | |
background: #e8eae9; | |
color:#fff; | |
} | |
.box { | |
background: #8ec63f; |
This file contains 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
/** | |
* relative position | |
*/ | |
.box-set { | |
background: #e8eae9; | |
color:#fff; | |
} | |
.box { | |
background: #8ec63f; |
This file contains 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
/** | |
* box-sizing | |
*/ | |
.test1 { | |
width: 500px; | |
margin: 20px auto; | |
box-sizing: border-box; | |
border:10px solid red; | |
} |
This file contains 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
/** | |
* 垂直居中, inline element | |
*/ | |
/** | |
* 元素内容是单行,并且其高度是固定不变,line-height=height | |
*/ | |
.center-text-trick { | |
border: 1px solid; | |
text-align: center; |
This file contains 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
/** | |
* plum | |
*/ | |
.rect.raindrop{ | |
background : lightblue; | |
width : 60px; | |
height : 60px; | |
position : absolute; | |
display : block; | |
overflow : hidden; |
This file contains 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
/** | |
* html tag | |
*/ |
This file contains 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
/** | |
* olivia's smile face | |
*/ | |
.face { | |
width: 300px; | |
height: 300px; | |
border-radius: 150px; | |
border: 2px solid; | |
position: relative; |
This file contains 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
/** | |
* ada's smile face | |
*/ | |
.face { | |
width: 300px; | |
height: 300px; | |
border-radius: 150px; | |
background: #red; | |
border: 2px solid #000; |
This file contains 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
/** | |
* css float | |
*/ | |
.container { | |
width: 150px; | |
height: 100px; | |
border: 1px solid blue; | |
} | |
.container .box{ |
This file contains 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
/** | |
* form | |
*/ |
OlderNewer