小小Table

table1.GIF
                                 图1
table2.GIF
                                图2(加了蓝色,让问题更清楚)
说明:
1.工作需要要做这样一个图形(图1),而且要求不用表(table)套表(table)即一个table画出。
2.素材有图表两张:top_left.gif(12*14),bottom_left.gif(12*13) 颜色为Red
感兴趣的朋友不防画画。
以下为图1的HTML:

ContractedBlock.gifExpandedBlockStart.gif图1的HTML
 1None.gif    <table cellspacing=0 cellpadding=0 border=0 align=center width=300 height=150>
 2None.gif    <tr height=1>
 3None.gif        <td width=1 colspan=2 rowspan=2 background="top_left.gif" ></td>
 4None.gif        <td bgcolor=red colspan=2></td>
 5None.gif        <td width=1 bgcolor=red rowspan=5></td>
 6None.gif    </tr>
 7None.gif    <tr height=13>
 8None.gif        <td  colspan=2></td>
 9None.gif    </tr>
10None.gif    <tr>
11None.gif        <td  width=1  bgcolor=red></td>
12None.gif        <td  width=11 ></td>
13None.gif        <td >我们在中间</td>
14None.gif        <td  width=11></td>
15None.gif    </tr>
16None.gif    <tr height=12>
17None.gif        <td width=1 colspan=2 rowspan=2 background="bottom_left.gif"></td>
18None.gif        <td  colspan=2></td>
19None.gif    </tr>
20None.gif    <tr height=1 bgcolor=red>
21None.gif        <td colspan=2></td>
22None.gif    </tr>
23None.gif    </table>

以下为图2的HTML:

ContractedBlock.gifExpandedBlockStart.gif图2的HTML
 1None.gif    <table cellspacing=0 cellpadding=0 border=0 align=center width=300 height=150>
 2None.gif    <tr height=1>
 3None.gif        <td width=1 colspan=2 rowspan=2 background="top_left.gif" ></td>
 4None.gif        <td bgcolor=red colspan=2></td>
 5None.gif        <td width=1 bgcolor=red rowspan=5></td>
 6None.gif    </tr>
 7None.gif    <tr height=13>
 8None.gif        <td bgcolor=blue colspan=2></td>
 9None.gif    </tr>
10None.gif    <tr>
11None.gif        <td  width=1  bgcolor=red></td>
12None.gif        <td  width=11 bgcolor=blue></td>
13None.gif        <td >我们在中间</td>
14None.gif        <td bgcolor=blue width=11></td>
15None.gif    </tr>
16None.gif    <tr height=12>
17None.gif        <td width=1 colspan=2 rowspan=2 background="bottom_left.gif"></td>
18None.gif        <td bgcolor=blue colspan=2></td>
19None.gif    </tr>
20None.gif    <tr height=1 bgcolor=red>
21None.gif        <td colspan=2></td>
22None.gif    </tr>
23None.gif    </table>



转载于:https://www.cnblogs.com/tenghoo/archive/2007/07/18/822751.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值