找回密码
 注册
[Jglt.net主论坛]
[镜像论坛]--[金光网]--[XLCS]
糖果主机-SugarHosts 提供价格超值的绝佳产品和服务Jtti,新加坡服务器,美国服务器,香港服务器,海外云服务器LightNode - 覆盖超过30个海外节点NVMe VPS主机
查看: 387|回复: 1

用DIV+CSS实现自适应浏览器宽度方法

[复制链接]
发表于 2010 年 12 月 27 日 10:01:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

  1. <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>左右分栏</title>
    <style type="text/css">
    <!--
    body{margin:0;padding:0;}
    div{margin:0;padding:0;}
    .main{background:#000;overflow:hidden;}
    .left{height:300px;background:#f00;overflow:hidden;}
    .right{float:right;width:300px;height:300px;background:#ccc;}
    -->
    </style>
    </head>
    <body>
    <div class="main">
           <div class="right"> </div>
           <div class="left"> </div>
    </div>
    </body>
    </html>
复制代码

Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2010 年 12 月 27 日 11:39:31 | 显示全部楼层
感谢分享1
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 7 月 7 日 06:23 , Processed in 0.063808 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表