码迷,mamicode.com
首页 > 其他好文 > 详细

页面布局

时间:2016-11-23 19:45:53      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:charset   htm   type   highlight   换行   char   back   blog   oat   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        body{
            min-width: 700px;
        }
        .box{
            height: 300px;
        }
        .fl{
            float:left;
        }
        .center{
            width: 100%;
            height: 300px;
            background-color: pink;
        }
        .left{
            height: 300px;
            width: 200px;
            background-color: blue;
            margin-left: -100%;
        }
        .right{
            height: 300px;
            width: 200px;
            background-color: orange;
            margin-left: -200px;
        }
        .inner{
            margin:0 200px 0 200px;
            word-break: break-all;/* 自动换行 */
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="fl center">
            <div class="inner">
                this is a demo!
                this is a demo!
                this is a demo!
                this is a demo!
                this is a demo!
                this is a demo!
                this is a demo!
                this is a demo!
                this is a demo!
            </div>
        </div>
        <div class="fl left"></div>
        <div class="fl right"></div>
    </div>
</body>
</html>

 

  <div class="logo">
  	<h1><a href="#" title="name">name</a></h1>
  </div>

  

页面布局

标签:charset   htm   type   highlight   换行   char   back   blog   oat   

原文地址:http://www.cnblogs.com/chenio/p/6094733.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!