如何使正确的表具有优先于顶表? [英] How do I make the right table have priority over the top table?

查看:93
本文介绍了如何使正确的表具有优先于顶表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I make the right table have priority over the top table?

我想要右边的表格(粉红色的表格)网页的顶部。我想要顶部的黄色表结束,粉红色的一开始在屏幕的右侧?链接到我在说什么:

I want the table on the right (the pink one) to go all the up to the top of the web page. And I want the top yellow table to end where the pink one starts on the right side of the screen? Link to what Im talking about:

http:/ /wpiix10.x10.mx/ifoot11.htm

这里是我使用的代码:

<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>


推荐答案

根据您要显示的内容,只有divs而不是表。

Depending on what you have to display, you should use only divs instead of tables. They're easier to dispatch on your page, making them going over an other element etc.

如果您还想使用表格(sic),在目前的情况下,您可以应该只使用一个表。

If you still want to use tables (sic), in your present case you should use only one table.

这篇关于如何使正确的表具有优先于顶表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆