Created
November 14, 2014 16:00
-
-
Save pandada8/2c84cff6e5e480050c13 to your computer and use it in GitHub Desktop.
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> | |
<title></title> | |
<style type="text/css"> | |
body{ | |
margin:0; | |
} | |
.wrapper{ | |
margin: auto; | |
width:80%; | |
} | |
.header, .footer{ | |
width:100%; | |
clear: both; | |
height:5em; | |
background-color: red; | |
position: relative; | |
} | |
/*因为原图较大,所以限定height*/ | |
img{ | |
height:3em; | |
position: absolute; | |
bottom: 1em; | |
} | |
.menu,.content{ | |
float: left; | |
height: 30em; | |
} | |
.menu{ | |
width: 20%; | |
background-color: blue; | |
} | |
.content{ | |
width: 80%; | |
background-color: yellow; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<div class="header"> | |
<!-- <h1>header</h1> --> | |
<img src="1.jpg"> | |
</div> | |
<div class="menu"></div> | |
<div class="content"></div> | |
<div class="footer"></div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment