回 帖 发 新 帖 刷新版面

主题:谢谢 一定加分

简述进行表格布局的操作过程。

回复列表 (共3个回复)

沙发

还是用CSS+DIV布局吧
要用表格的话,我是先想好大概的样子,画好草图分好各表格,然后再写代码的

板凳

表格做布局就是表格的嵌套,推荐使用工具做,手写太累。
Div布局不稳定。叶面放大后布局调整难度大。CSS肯定要用的~

3 楼

我不同意表格的布局就是表格的嵌套
我认为表格布局应该首先在草稿上设计好,
然后在写代码时注意好行列及colspan=xx , rowspan=xx 的设置就好了,
以下代码基本包含了表格设计的要素:
<table border="1" cellpadding="2" cellspacing="6"
bordercolordark="#000000" bordercolorlight="#eeeeee">
    <tr>
        <td><font color="#800000"><strong>工作单位</strong></font><font
        color="#000080"><strong><br>
        XXXXXXXX</strong></font></td>
        <td><font color="#008080"><strong>学历</strong></font><font
        color="#000080"><strong>,</strong></font><font
        color="#800000"><strong>年龄</strong></font><font
        color="#000080"><strong><br>
        本科学士,31岁</strong></font></td>
        <td rowspan="2"><p align="left"><font color="#800000"><strong>兴趣爱好</strong></font><font
        color="#000080"><strong><br>
        电脑编程,音乐</strong></font></p>
        </td>
    </tr>
    <tr>
        <td><font color="#800000"><strong>职称</strong></font><font
        color="#000080"><strong><br>
        工程师</strong></font></td>
        <td><font color="#800000"><strong>主页</strong></font><font
        color="#000080"><strong><br>
        <a href="http://pcfun.com.cn">http://pcfun.com.cn</a></strong></font></td>
    </tr>
    <tr>
        <td><font color="#800000"><strong>主要职责</strong></font><font
        color="#000080"><strong><br>
        XXXXXXXX</strong></font></td>
        <td colspan="2"><font color="#800000"><strong>其它技能</strong></font><font
        color="#000080"><strong><br>
        ASP,C/C++语言,网络建设。</strong></font></td>
    </tr>
</table>

我来回复

您尚未登录,请登录后再回复。点此登录或注册