Skip to content

Instantly share code, notes, and snippets.

@kerryChen95
Created April 25, 2016 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerryChen95/807f4dbe54be450b8f1be067c1ee0001 to your computer and use it in GitHub Desktop.
Save kerryChen95/807f4dbe54be450b8f1be067c1ee0001 to your computer and use it in GitHub Desktop.
Untitled
.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;
}
// alert('Hello world!');
{"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