Created
October 30, 2013 11:08
-
-
Save lionhylra/7230864 to your computer and use it in GitHub Desktop.
页面布局Layout 3 columns / left and right, content are all dynamic.
3 columns / left and right fixed, content is dynamic.
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
#left { | |
position: absolute; | |
left: 2%; | |
width: 22%; | |
top: 106px; | |
background-color: #ffffff; | |
} | |
#content { | |
position: absolute; | |
left: 25%; | |
width: 50%; | |
top: 106px; | |
background-color: #ffffff; | |
overflow: auto; | |
} | |
#right { | |
position: absolute; | |
left: 76%; | |
width: 22%; | |
top: 106px; | |
background-color: #ffffff; | |
overflow: auto; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html { | |
padding:0px; | |
margin:0px; | |
} | |
body { | |
background-color: #e1ddd9; | |
font-size: 12px; | |
font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; | |
color:#564b47; | |
padding:0px; | |
margin:0px; | |
} | |
#content { | |
margin: 0px 190px 0px 190px; | |
border-left: 2px solid #564b47; | |
border-right: 2px solid #564b47; | |
/*border-bottom: 2px solid #564b47;*/ | |
padding: 0px; | |
background-color: #ffffff; | |
overflow: auto; | |
} | |
#left { | |
position: absolute; | |
left: 0px; | |
width: 190px; | |
color: #564b47; | |
margin: 0px; | |
padding: 0px; | |
overflow: auto; | |
} | |
#right { | |
position: absolute; | |
right: 0px; | |
top:0; | |
width: 190px; | |
color: #564b47; | |
margin: 0px; | |
padding: 0px; | |
overflow: auto; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="left"> | |
</div> | |
<div id="content"> | |
</div> | |
<div id="right"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment