Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何使正确的表格优先于顶部表格?_Html_Css - Fatal编程技术网

Html 如何使正确的表格优先于顶部表格?

Html 如何使正确的表格优先于顶部表格?,html,css,Html,Css,如何使正确的表格优先于顶部表格 我想把右边的桌子(粉红色的那张)一直放到网页的顶部。我想把最上面的黄色桌子放在屏幕右侧粉红色桌子开始的地方?链接到我正在谈论的内容: 下面是我使用的代码: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head

如何使正确的表格优先于顶部表格

我想把右边的桌子(粉红色的那张)一直放到网页的顶部。我想把最上面的黄色桌子放在屏幕右侧粉红色桌子开始的地方?链接到我正在谈论的内容:

下面是我使用的代码:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%" bgcolor="#C0C0C0" style="position: absolute; left: 0; bottom: 0">
    <tr>
        <td>
        <table border="0" width="100%" cellspacing="0" cellpadding="0" style="position: absolute; bottom: 0" bgcolor="#00FF00" height="23" bordercolor="#FFFFFF">
            <!-- MSTableType="nolayout" -->
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
        <div align="right" style="height: 100%;">

            <table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#FFFF00" height="105">
                <tr>
                        <td>&nbsp;</td>
                </tr>
            </table>

            <table border="0" width="200" align="right" cellspacing="0" cellpadding="0" bgcolor="#FF00FF" height="100%">
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</td>
    </tr>
</table>

</body>

</html>

新的第1页


根据您必须显示的内容,您应该只使用div而不是表。它们更容易在您的页面上发送,使它们可以浏览其他元素等

如果您仍然想使用表(sic),那么在您目前的情况下,您应该只使用一个表