Skip to content

Instantly share code, notes, and snippets.

@bastengao
Created December 15, 2012 05:39
Show Gist options
  • Save bastengao/4291564 to your computer and use it in GitHub Desktop.
Save bastengao/4291564 to your computer and use it in GitHub Desktop.
占满屏幕的布局
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>占满屏幕</title>
<style type="text/css">
aside {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 250px;
overflow: auto;
}
section {
position: absolute;
top: 0;
bottom: 0;
left: 250px;
right: 0;
overflow: auto;
}
</style>
</head>
<body>
<aside>left aside</aside>
<section>content sectoin</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment