1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

圆角表格 的实现...

本帖由 小叶2005-09-18 发布。版面名称:前端开发

  1. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    HTML:
    <table style="TABLE-LAYOUT: fixed" height="28" cellspacing="0" cellpadding="0" width="100%" border="0">
     <tr height="3" width="100%">
      <td>
      <table style="TABLE-LAYOUT: fixed" height="3" cellspacing="0" cellpadding="0" width="100%" border="0">
       <tr height="1">
        <td width="1"></td>
        <td width="1"></td>
        <td width="1"></td>
        <td bgcolor="#908a47"></td>
        <td width="1"></td>
        <td width="1"></td>
        <td width="1"></td>
       </tr>
       <tr height="1">
        <td></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td bgcolor="#f7f8f9"></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td></td>
       </tr>
       <tr height="1">
        <td></td>
        <td bgcolor="#908a47"></td>
        <td bgcolor="#f7f8f9" colspan="3"></td>
        <td bgcolor="#908a47"></td>
        <td></td>
       </tr>
      </table>
      </td>
     </tr>
     <tr>
      <td>
      <table style="TABLE-LAYOUT: fixed" height="100%" cellspacing="0" cellpadding="0" border="0">
       <tr>
        <td width="1" bgcolor="#908a47"></td>
        <td id="oINNER" bgcolor="#f7f8f9">&nbsp; </td>
        <td width="1" bgcolor="#908a47"></td>
       </tr>
      </table>
      </td>
     </tr>
     <tr height="3" width="100%">
      <td>
      <table style="TABLE-LAYOUT: fixed" height="3" cellspacing="0" cellpadding="0" width="100%" border="0">
       <tr height="1">
        <td width="1"></td>
        <td width="1" bgcolor="#908a47"></td>
        <td width="1" bgcolor="#f7f8f9"></td>
        <td bgcolor="#f7f8f9"></td>
        <td width="1" bgcolor="#f7f8f9"></td>
        <td width="1" bgcolor="#908a47"></td>
        <td width="1"></td>
       </tr>
       <tr height="1">
        <td></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td bgcolor="#f7f8f9"></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td></td>
       </tr>
       <tr height="1">
        <td colspan="3"></td>
        <td bgcolor="#908a47"></td>
        <td colspan="3"></td>
       </tr>
      </table>
      </td>
     </tr>
     
  2. 西子宜

    西子宜 Well-Known Member

    注册:
    2005-09-05
    帖子:
    15,739
    赞:
    62
    呵呵,我一般用图片.
     
  3. Tameway

    Tameway New Member

    注册:
    2005-09-06
    帖子:
    1,286
    赞:
    8
    代码占用空间比较小,但是速度上来说不见得比图片快,光这么多TD浏览器就得解析半天
     
  4. 西子宜

    西子宜 Well-Known Member

    注册:
    2005-09-05
    帖子:
    15,739
    赞:
    62
    图片也才几百KB
     
  5. Tameway

    Tameway New Member

    注册:
    2005-09-06
    帖子:
    1,286
    赞:
    8
    这种图片一般是一两K才
     
  6. wm_chief

    wm_chief New Member

    注册:
    2005-09-05
    帖子:
    17,890
    赞:
    46
    没有演示噢
     
  7. lhyhelen

    lhyhelen New Member

    注册:
    2005-09-19
    帖子:
    1
    赞:
    0
    为什么变大之后会出现棱角???
    HTML:
    <table style="TABLE-LAYOUT: fixed" height="400" cellspacing="0" cellpadding="0" width="100%" border="0">
     <tr height="9" width="100%">
      <td>
      <table style="TABLE-LAYOUT: fixed" height="9" cellspacing="0" cellpadding="0" width="100%" border="0">
       <tr height="3">
        <td width="3"></td>
        <td width="3"></td>
        <td width="3"></td>
        <td bgcolor="#908a47"></td>
        <td width="3"></td>
        <td width="3"></td>
        <td width="3"></td>
       </tr>
       <tr height="3">
        <td></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td bgcolor="#f7f8f9"></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td></td>
       </tr>
       <tr height="3">
        <td></td>
        <td bgcolor="#908a47"></td>
        <td bgcolor="#f7f8f9" colspan="3"></td>
        <td bgcolor="#908a47"></td>
        <td></td>
       </tr>
      </table>
      </td>
     </tr>
     <tr>
      <td>
      <table style="TABLE-LAYOUT: fixed" height="100%" cellspacing="0" cellpadding="0" border="0">
       <tr>
        <td width="3" bgcolor="#908a47"></td>
        <td id="oINNER" bgcolor="#f7f8f9">&nbsp;</td>
        <td width="3" bgcolor="#908a47"></td>
       </tr>
      </table>
      </td>
     </tr>
     <tr height="9" width="100%">
      <td>
      <table style="TABLE-LAYOUT: fixed" height="9" cellspacing="0" cellpadding="0" width="100%" border="0">
       <tr height="3">
        <td width="3"></td>
        <td width="3" bgcolor="#908a47"></td>
        <td width="3" bgcolor="#f7f8f9"></td>
        <td bgcolor="#f7f8f9"></td>
        <td width="3" bgcolor="#f7f8f9"></td>
        <td width="3" bgcolor="#908a47"></td>
        <td width="3"></td>
       </tr>
       <tr height="3">
        <td></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td bgcolor="#f7f8f9"></td>
        <td bgcolor="#908a47" colspan="2"></td>
        <td></td>
       </tr>
       <tr height="3">
        <td colspan="3"></td>
        <td bgcolor="#908a47"></td>
        <td colspan="3"></td>
       </tr>
      </table>
      </td>
     </tr>
    </table>
    
     
  8. chandler

    chandler New Member

    注册:
    2005-09-27
    帖子:
    1,921
    赞:
    1
    没有演示!!!