zoukankan      html  css  js  c++  java
  • 类似博客园的左中右活动布局 PHP

    代码:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <title>无标题页</title>
    <style type="text/css">
    body, html
    {
    width
    :100%;
    height
    :100%;
    }

    *
    {
    margin
    :0px; padding:0px;
    }

    body
    {
    font-size
    :14px;
    line-height
    :1.5;
    font-family
    :Consolas Tahoma Verdana;
    }
    </style>
    </head>
    <body>
    <div style="background-color:#eff; border-bottom:solid 1px gray; height:100px;">顶部</div>
    <div style="position:absolute; top:101px; left:0px; min-height:400px; 200px; border-right:solid 2px gray; background-color:#eee;">
    左部分
    </div>
    <div style="position:absolute; top:101px; right:0px; min-height:400px; 200px; border-left:solid 2px gray; background-color:#eee;">
    右部门
    </div>
    <div style="margin-left:200px; margin-right:200px; padding:10px; min-height:380px;">
    内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容
    内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容
    内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容
    内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容
    内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容
    内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容
    内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容 内容
    </div>
    <div style="background-color:#eff; border-top:solid 1px gray; height:100px;">底部</div>
    </body>
    </html>

    下载:https://files.cnblogs.com/zjfree/htmlAutoLeftRight.rar


    欢迎转载,转载请注明:转载自[ http://www.cnblogs.com/zjfree/ ]
  • 相关阅读:
    六.(二)oc分类-category(范畴、非正式协议)
    十二 .ocBlock
    十.oc内存管理
    七.(一)oc通知-NSNotification(通知中心-NSNotificationCenter)
    Storyboard中segue(转场)使用
    XCode 7.3.1(dmg) 官方直接下载地址
    jquery 判定checkbox是否选中
    SqlService 并发测试
    SQL Server 消息队列,处理程序错误
    DB开启 Service Broker,使用消息队列
  • 原文地址:https://www.cnblogs.com/zjfree/p/2218819.html
Copyright © 2011-2022 走看看