随笔 - 76, 文章 - 3, 评论 - 34, 引用 - 0
数据加载中……

用DIV+CSS实现国内经典式三行两列布局

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default4.aspx.vb" Inherits="Default4" %>

<!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 runat="server">
    <title>无标题页</title>
    <style type="text/css">
    * {
        margin:0;
        padding:0;
        font-size:1em;
        height:90px;
        }
    #header {
        width:800px;
        margin:0 auto;
        }
    #containe {
        width:800px;
        margin:0 auto;
        height:300px;
        }
    #sidebar {
        width:254px;
        float:left;
        height:300px;
        }
    #main {
        float:right;
        width:540px;
        height:300px;
        }
    #footer {
        width:800px;
        height:60px;
        margin:0 auto;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="header">
            sdfsdfsdf</div>
        <div id="containe" >
            <div id="sidebar" >
                sdfsdfsdfsdfsdfsdf</div>
            <div id="main">
                sdfsdfsdfsdfsdfdfssdfsdf</div>
        </div>
        <div id="footer">
            sdfsdfsdfsdf</div>
    </form>
</body>
</html>


http://www.52css.com/article.asp?id=518

posted on 2007-11-06 11:56 zqonline 阅读(108) 评论(0)  编辑 收藏 网摘 所属分类: Web


标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
Google站内搜索

相关文章:

相关链接: