自己写的两布局界面

<!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>



截图如下:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值