<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0" />
<title>无标题文档</title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.wrap{
width:980px;
margin:0 auto;
border:1px solid #999;
}
#content{
width:600px;
height:800px;
float:right;
border:1px solid #F00;
}
#content h1,#content h2,#content p{
padding-right:20px;
padding-left:20px;
padding-top:20px;
}
#content p{
text-indent:1.5em;
}
#mainnav{
padding-top:30px;
padding-bottom:30px;
width:200px;
height:650px;
float:left;
border:1px solid #0f0;
padding-left:40px;
}
#footer{
clear:both;
border:1px solid #000;
height:100px;
}
ul{
padding:0;
margin:0;
list-style-type:none;
}
li{
width:120px;
padding:3px;
background-color:#099;
display:block;
margin:10px;
text-align:center;
transition:width 0.5s;
}
a{
text-decoration:none;
color:#FFF;
}
li:hover,a:hover{
background-color:#F00;
color:#600;
width:150px;
}
</style>
</head>
<body>
<div class="wrap">
<div id="branding">
</div>
<div id="content">
<h1>You Have Only One Life</h1>
<p>There are moments in life when you miss someone so much that you just want to pick them from your dreams and hug them for real! Dream what you want to dream;go where you want to go;be what you want to be,because you have only one life and one chance to do all the things you want to do.
May you have enough happiness to make you sweet,enough trials to make you strong,enough sorrow to keep you human,enough hope to make you happy? Always put yourself in others’shoes.If you feel that it hurts you,it probably hurts the other person, too.
</p>
<h2>who have touched their lives</h2>
<p>Love begins with a smile,grows with a kiss and ends with a tear.The brightest future will always be based on a forgotten past, you can’t go on well in lifeuntil you let go of your past failures and heartaches.
When you were born,you were crying and everyone around you was smiling.Live your life so that when you die,you're the one who is smiling and everyone around you is crying.</p>
</div>
<div id="mainnav">
<ul>
<li><a href="http://www.baidu.com" target="ifra">百度</a></li>
<li><a href="http://www.qq.com">QQ</a></li>
<li><a href="http://www.xiomi.com">小米</a></li>
<li><a href="http://www.163.com">网易</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
</ul>
</div>
<div id="footer">
</div>
</div>
</body>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0" />
<title>无标题文档</title>
<style type="text/css">
*{
margin:0;
padding:0;
}
.wrap{
width:980px;
margin:0 auto;
border:1px solid #999;
}
#content{
width:600px;
height:800px;
float:right;
border:1px solid #F00;
}
#content h1,#content h2,#content p{
padding-right:20px;
padding-left:20px;
padding-top:20px;
}
#content p{
text-indent:1.5em;
}
#mainnav{
padding-top:30px;
padding-bottom:30px;
width:200px;
height:650px;
float:left;
border:1px solid #0f0;
padding-left:40px;
}
#footer{
clear:both;
border:1px solid #000;
height:100px;
}
ul{
padding:0;
margin:0;
list-style-type:none;
}
li{
width:120px;
padding:3px;
background-color:#099;
display:block;
margin:10px;
text-align:center;
transition:width 0.5s;
}
a{
text-decoration:none;
color:#FFF;
}
li:hover,a:hover{
background-color:#F00;
color:#600;
width:150px;
}
</style>
</head>
<body>
<div class="wrap">
<div id="branding">
</div>
<div id="content">
<h1>You Have Only One Life</h1>
<p>There are moments in life when you miss someone so much that you just want to pick them from your dreams and hug them for real! Dream what you want to dream;go where you want to go;be what you want to be,because you have only one life and one chance to do all the things you want to do.
May you have enough happiness to make you sweet,enough trials to make you strong,enough sorrow to keep you human,enough hope to make you happy? Always put yourself in others’shoes.If you feel that it hurts you,it probably hurts the other person, too.
</p>
<h2>who have touched their lives</h2>
<p>Love begins with a smile,grows with a kiss and ends with a tear.The brightest future will always be based on a forgotten past, you can’t go on well in lifeuntil you let go of your past failures and heartaches.
When you were born,you were crying and everyone around you was smiling.Live your life so that when you die,you're the one who is smiling and everyone around you is crying.</p>
</div>
<div id="mainnav">
<ul>
<li><a href="http://www.baidu.com" target="ifra">百度</a></li>
<li><a href="http://www.qq.com">QQ</a></li>
<li><a href="http://www.xiomi.com">小米</a></li>
<li><a href="http://www.163.com">网易</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
<li><a href=#>链接1</a></li>
</ul>
</div>
<div id="footer">
</div>
</div>
</body>
</html>
截图如下: