forked from ljianshu/Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
人心思动
authored
Oct 19, 2018
1 parent
e02166e
commit be1854a
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Layout</title> | ||
<style media="screen"> | ||
html * { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<style> | ||
.container { | ||
min-width: 600px; | ||
} | ||
|
||
.left { | ||
float: left; | ||
width: 200px; | ||
height: 400px; | ||
background: red; | ||
margin-left: -100%; | ||
} | ||
|
||
.center { | ||
float: left; | ||
width: 100%; | ||
height: 500px; | ||
background: yellow; | ||
} | ||
|
||
.center .inner { | ||
margin: 0 200px; | ||
} | ||
|
||
.right { | ||
float: left; | ||
width: 200px; | ||
height: 400px; | ||
background: blue; | ||
margin-left: -200px; | ||
} | ||
</style> | ||
<article class="container"> | ||
<div class="center"> | ||
<div class="inner">双飞翼布局</div> | ||
</div> | ||
<div class="left"></div> | ||
<div class="right"></div> | ||
</article> | ||
</body> | ||
|
||
</html> |