首页 > 代码库 > 不知道做的什么

不知道做的什么

听说代码还是要敲一敲的好。

下面是划分框架的代码0 0

</head>
    <frameset rows="64,*" noresize="noresize" frameborder="0" scrolling="no" />
        <frame src="top.html" noresize="noresize" scrolling="no" />
            <frameset cols="182,*">
                <frame src="left.html" noresize="noresize">
                <frame src="right.html" name="abc">
    </frameset>
</html>

这个是top的代码0 0

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>网页标题</title>
    <link rel="stylesheet" type="text/css" href="" />
    <style type="text/css">
    body{margin:0}
    </style>
    <script type="text/javascript"></script>
</head>
<body background="images/top-bg.gif">
    <table width="100%">
        <tr hight="55">
            <td colspan="3" align="right"><font color="white">早上好<font color="green"><a href="#">admin</a></font>,欢迎你!</font><input type="submit" value ="退出"></td>
        </tr>
        <tr border="1">
            <td width="85%"></td>
            <td><a href="框架.html" target="_top">后台首页</a></td>
            <td><a href="qt.html" target="abc">返回前台</a></td>
        </tr>
    </table>
</body>
</html>

这个是left的代码0 0

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>网页标题</title>
    <style type="text/css">
    td{ font-size:20px;}
    body{ margin:0}
    </style>
</head>
<body bgcolor="#ffffff">
    <table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#ccccff">
        <tr>
            <th background="images/menu_topimg.gif" height="3"></a></th>
        </tr>
        <tr>
            <th background="images/menu_bg.gif" height="27"><a href="hsszt.html" target="abc">红烧狮子头</a></th>
        </tr>
        <tr>
            <td background="images/menu_topline.gif" height="5"></td>
        </tr>
        <tr>
            <th background="images/menu_bg.gif" height="27"><a href="nrw.html" target="abc">牛肉丸</a></th>
        </tr>
        <tr>
            <th background="images/menu_bg.gif" height="27"><a href="zjm.html" target="abc">炸酱面</a></th>
        </tr>
        <tr>
            <th background="images/menu_bg.gif" height="27" ><a href="qzy.html" target="abc">清蒸鱼</a></th>
        </tr>
        <tr>
            <th background="images/menu_bg.gif" height="27"><a href="mlt.html" target="abc">麻辣烫</a></th>
        </tr>
        <tr>
            <th background="images/menu_bottomimg.gif" height="2"></a></th>
        </tr>
    </table>
</body>
</html>

然后就变成这样了

技术分享

最主要的是框架的嵌套跟在右边窗口显示内容的问题,理解了就好做了!

框架是要先分了上下,在分左右,不能一起分。

 

不知道做的什么