Created
April 25, 2016 07:55
-
-
Save kerryChen95/f795e9db80adad8fa9c06241b38e9023 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
.hd, .ft { | |
height: 20px; | |
background-color: red; | |
} | |
.bd::after { | |
content: ''; | |
clear: both; | |
height: 0; | |
line-height: 0; | |
visibility: hidden; | |
display: block; | |
} | |
.bd { | |
overflow: hidden; | |
} | |
.main-bar, .side-bar { | |
/*通过float left和的ide-bar的负margin-left使得main-bar和side-bar在水平方向上处于同一行*/ | |
float: left; | |
margin-bottom: -99999px; | |
padding-bottom: 99999px; | |
} | |
.main-bar { | |
width: 70%; | |
margin-right: 30%; | |
background-color: blue; | |
} | |
.side-bar { | |
width: 30%; | |
margin-left: -30%; | |
background-color: green; | |
} |
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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment