关于rowspan和colspan的区别;

rowspan表示横跨行(意思是上下合并),colspan表示横跨列(意思是左右合并)。  //比较难理解,但是很重要。

jsp代码如下:



<tr>
                <td rowspan="4">腾讯微信<br/><img src="${webUiUrl}/images/weixin.jpg" width="104" height="104" /> </a></td>      //此行表示横跨4行
                <td><a href="http://www.cost88.com/recjr/jr_index.html?reception_id=-5&reception_pid=5">中小微企业融资辅导</a></td>
                <td><a href="http://www.cost88.com/ylbx/yl_index.html?reception_id=-7&reception_pid=7">您的私人保险筹划专家</a></td>
                <td rowspan="4">新浪微博<br/><img src="${webUiUrl}/images/sina.png" width="104" height="104" /></td>
              </tr>
              <tr>  

                 //横跨第二行: 这一行没有,表示被腾讯微信横跨
                <td><a href="http://www.cost88.com/swrecfile/sw_file.html?reception_id=52&reception_pid=6">税务筹划在线维权</a></td>  
                <td><a href="http://www.cost88.com/recjr/jr_index.html?reception_id=-5&reception_pid=5">首创中小微企业金融综合服务平台</a></td>

                //横跨第二行:这一行没有,表示被新浪微博横跨
              </tr>
              <tr>

               //横跨第三行: 这一行没有,表示被腾讯微信横跨
                <td><a href="http://www.cost88.com/ylbx/yl_index.html?reception_id=-7&reception_pid=7">第三方保险咨询</a></td>
                <td><a href="http://www.cost88.com/recjr/jr_index.html?reception_id=-5&reception_pid=5">首创经济综合软技术服务平台</a></td>

             //横跨第三行:这一行没有,表示被新浪微博横跨
              </tr>
              <tr>

//横跨第四行: 这一行没有,表示被腾讯微信横跨
                <td><a href="http://www.cost88.com/international/index.html?reception_id=-9&reception_pid=9">中欧中小企业合作交流</a></td>
                <td>&nbsp;</td>

/横跨第四行: 这一行没有,表示被新浪微博横跨
              </tr>

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值