日期:2014-05-17  浏览次数:20430 次

求一个代替frameset将网页分为上中下三栏的代码
我原来是用的frameset col="162,*,20" 这种形式的,但是有很多问题,现在想用div+iframe代替 ,但是现在上中实现了 最下的定位不到最下面,求一个这样的代码,谢谢

------解决方案--------------------
无私奉献哦,下面代码我完成的项目后台主页(支持显隐主窗体左端内容)
HTML code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="ZS.SuccessBullion.manager._default" %>

<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="ZS.SuccessBullion" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>银金转账结算系统</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="C#">

    <script type="text/javascript">

        function ResizeMenu() {
            if (Menu.style.display == '') {
                Menu.style.display = 'none';
                resizeIcon_Show.style.display = 'none';
                resizeIcon_Hidden.style.display = '';
            }
            else {
                Menu.style.display = '';
                resizeIcon_Show.style.display = '';
                resizeIcon_Hidden.style.display = 'none';
            }
        }

        function Logout() {
            if (confirm("你确定要退出吗?")) {
                window.location.href = "logout.aspx";
            }
        }
        
        
    </script>

    <style>       
        #fr1 a
        {
            width: 100%;
            padding: 7px 0px 4px 20px;
            border-bottom: #DDE4EE solid 1px;
            background: url(../Images/aspnet/arrow.png) left center no-repeat;
            font-size:12px;
            color:#034AA7;
            text-decoration:none;
        }      
        
      
        #fr1 a:hover {background:#bd0021; color:#fff;text-decoration:none}
        
        
    </style>
</head>
<body style="margin: 0px; overflow: hidden;">
 
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td style="background-image: url(../Images/aspnet/running_bg.gif);" height="20">
                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="padding-left: 4px; font-weight: bold; font-size: 12pt; filter: Glow(Color=#FDCF9D, Strength=1) dropshadow(Color=#FDCF9D, OffX=2, OffY=1,);
                            color: #811E18;">
                            银金转账结算系统  <asp:Label ID="AssemblyVersion" runat="server" Text=""></asp:Label>
                        </td>
                        <td align="right" style="filter: Glow(Color=#FDCF9D, Strength=1) dropshadow

(Color=#FDCF9D, OffX=2, OffY=1,); color: #811E18;">
                            &nbsp;帐号&nbsp;:&nbsp;
                            <asp:Label ID="LoginUser" runat="server"></asp:Label>&nbsp;|&nbsp;
                            <asp:Label ID="LoginDate" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                    &