首页  >  文章  >  web前端  >  请问这里该怎么嵌套html表格?_html/css_WEB-ITnose

请问这里该怎么嵌套html表格?_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 11:46:111026浏览

oh,请问这里该怎么嵌套表格啊,我弄2天了,我按照书上和教程的,但我做出来的和他的不一样,求帮忙,谢谢



    

网页标题ing
    
    
    
    
        
    
         
            
            
        
       
        
          
        
        
            
            
        
        
          
        
        
            
         
        
        
          
        
        
            
         
        
        
          
            
         
        
        
          
         
        
        
          
         
        
        
          
        
        
            
           
    
        



----------------------------------------------这是我准备嵌套的表格--------------------------------------------------------------



第一表格

编号 姓名 年龄 电子邮箱 性别
1 张三20 123@qq.com
2 张三20 123@qq.com
3 张三20 123@qq.com
4
            
            
            
            
            
5
6
7 张三20 123@qq.com

    
    
        
    
         
            
            
        
       
        
          
        
        
            
            
        
        
          
        
        
            
         
        
        
          
        
        
            
         













回复讨论(解决方案)

<table width="600" border="1" cellspacing="0" cellpadding="0">  <tr>    <td width="200"> </td>    <td width="200"> </td>    <td width="200"> </td>  </tr>  <tr>    <td> </td>    <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>    <td> </td>  </tr>  <tr>    <td> </td>    <td> </td>    <td> </td>  </tr></table>

<style type="text/css">.seasons1987 table {    border-top-width: 0px;    border-right-width: 0px;    border-bottom-width: 0px;    border-left-width: 0px;}</style><table width="600" border="1" cellpadding="0" cellspacing="0" class="seasons1987">  <tr>    <td width="200"><table width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>    <td width="200"> </td>    <td width="200"><table width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>  </tr>  <tr>    <td> </td>    <td><table width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>    <td> </td>  </tr>  <tr>    <td><table width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>    <td> </td>    <td><table width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>  </tr></table>

不太懂你意思啊,是这样吗?

<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <title>网页标题ing</title>    <body>     <table border="1" width="800" bgcolor="#AEA6A6" align="center" bordercolor="#EF0F13" cellspacing="0" cellpadding="0" bordercolorlight="#1126CD" bordercolordark="#F4F318">     <caption><h2>第一表格</h2></caption>     <tr>         <th>编号</th>     <th>姓名</th>         <th>年龄</th>            <th>电子邮箱</th>            <th>性别</th>        </tr>        <tr>         <td width="50" height="40">1</td>        <td width="90"  >张三</td>            <td width="70">20</td>         <td width="150">123@qq.com</td>            <td width="50">男</td>        </tr>            <tr bgcolor="green" align="center">         <td>2</td>        <td>张三</td>            <td>20</td>         <td>123@qq.com</td>            <td>男</td>        </tr>         <tr>         <td>3</td>        <td>张三</td>            <td>20</td>         <td>123@qq.com</td>            <td>男</td>        </tr>         <tr>         <td>4</td>        <td rowspan="3" colspan="3">                        <table border="1" width="500" bgcolor="#AEA6A6" align="center" bordercolor="#EF0F13" cellspacing="0" cellpadding="0" bordercolorlight="#1126CD" bordercolordark="#F4F318">     <tr>         <th>编号</th>     <th>姓名</th>         <th>年龄</th>            <th>电子邮箱</th>            <th>性别</th>        </tr>        <tr>         <td width="50" height="40">1</td>        <td width="90"  >张三</td>            <td width="70">20</td>         <td width="150">123@qq.com</td>            <td width="50">男</td>        </tr>            <tr bgcolor="green" align="center">         <td>2</td>        <td>张三</td>            <td>20</td>         <td>123@qq.com</td>            <td>男</td>        </tr>         <tr>         <td>3</td>        <td>张三</td>            <td>20</td>         <td>123@qq.com</td>            <td>男</td>        </tr> </table>                                    </td>            <td>男</td>           </tr>         <tr>         <td>5</td>        <td>男</td>           </tr>         <tr>         <td>6</td>        <td>男</td>           </tr>         <tr>         <td>7</td>        <td>张三</td>            <td>20</td>         <td>123@qq.com</td>            <td>男</td>        </tr>           </body>    </html>

<table width="600" border="1" cellspacing="0" cellpadding="0">  <tr>    <td width="200"> </td>    <td width="200"> </td>    <td width="200"> </td>  </tr>  <tr>    <td> </td>    <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>    <td> </td>  </tr>  <tr>    <td> </td>    <td> </td>    <td> </td>  </tr></table>



谢谢,我忘记发表格了,我晕



<table width="600" border="1" cellspacing="0" cellpadding="0">  <tr>    <td width="200"> </td>    <td width="200"> </td>    <td width="200"> </td>  </tr>  <tr>    <td> </td>    <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>      <tr>        <td> </td>        <td> </td>        <td> </td>      </tr>    </table></td>    <td> </td>  </tr>  <tr>    <td> </td>    <td> </td>    <td> </td>  </tr></table>



谢谢,我忘记发表格了,我晕



问题解决了吧!

第一表格

编号 姓名 年龄 电子邮箱 性别
1 张三20 123@qq.com
2 张三20 123@qq.com
3 张三20 123@qq.com
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn