微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

table基础布局

分享图片

第一步;

分享图片

<!DOCTYPE html>
<html>
    <head>
        <Meta charset="UTF-8">
        <title>表格布局</title>
    </head>
    <body>
        <table border="1" width="100%">
            <tr height="150px"><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
        <tr><td width="350px">&nbsp;</td><td>
            <table width="535px" height="300px" background="img/liqingzhao.jpg">
            <tr><td>abc</td><td>def</td></tr>
            <tr><td>abc</td><td>
            <table border="1">
                <tr><td>用户名</td><td><input type="text" name="user"></td></tr>
                <tr><td>密码框</td><td><input type="password" name="pass"></td></tr>
                <tr><td colspan="2"></td></tr>
                <tr><td colspan="2"></td></tr>
            </table>
            </td></tr>    
            <tr><td>abc</td><td>def</td></tr>    
            </table>
        </td><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

        </table>
    </body>
</html>
View Code

第二步;

分享图片

<!DOCTYPE html>
<html>
    <head>
        <Meta charset="UTF-8">
        <title>表格布局</title>
    </head>
    <body>
        <table border="0" width="100%">
            <tr height="150px"><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
        <tr><td width="350px">&nbsp;</td><td>
            <table width="535px" height="300px" background="img/liqingzhao.jpg" border="0">
            <tr height="60px"><td>abc</td><td>def</td></tr>
            <tr><td width="230px">abc</td><td>
            <table border="0" height="100%">
                <tr><td>用户名</td><td><input type="text" name="user"></td></tr>
                <tr><td>密码框</td><td><input type="password" name="pass"></td></tr>
                <tr><td colspan="2"><input type="submit" value="进入邮箱">
                <input type="reset" value="重新填写"></td></tr>
                <tr><td colspan="2"><a href="#">找回密码</a><a href="#">注册新用户</a></td></tr>
            </table>
            </td></tr>    
            <tr><td>abc</td><td>def</td></tr>    
            </table>
        </td><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

        </table>
    </body>
</html>
View Code

第三步:

分享图片

<!DOCTYPE html>
<html>
    <head>
        <Meta charset="UTF-8">
        <title>表格布局</title>
    </head>
    <body>
        <table border="0" width="100%">
            <tr height="150px"><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
        <tr><td width="350px">&nbsp;</td><td>
            <table width="535px" height="300px" background="img/liqingzhao.jpg" border="0">
            <tr height="60px"><td>abc</td><td>def</td></tr>
            <tr><td width="230px">abc</td><td>
            <form method="post" action="html1.html">
            <table border="0" height="100%">
                <tr><td>用户名</td><td><input type="text" name="user"></td></tr>
                <tr><td>密码框</td><td><input type="password" name="pass"></td></tr>
                <tr><td colspan="2"><input type="submit" value="进入邮箱">
                <input type="reset" value="重新填写"></td></tr>
                <tr><td colspan="2"><a href="#">找回密码</a><a href="#">注册新用户</a></td></tr>
            </table>
            </form>
            </td></tr>    
            <tr><td>abc</td><td>def</td></tr>    
            </table>
        </td><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

        </table>
    </body>
</html>
View Code

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐