> 웹 프론트엔드 > HTML 튜토리얼 > 表格的嵌套_html/css_WEB-ITnose

表格的嵌套_html/css_WEB-ITnose

WBOY
풀어 주다: 2016-06-24 12:07:22
원래의
1119명이 탐색했습니다.


上图是我想做出的效果。但做出来的效果是这样(如下图),弄了挺久,但还是有点问题,所以想求救大神。(刚学html,代码比较乱。)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><body><!--table width="600" border="1" cellspacing="0" cellpadding="0"--><table border="1">   <tr>    <td colspan="6" align="center">主题网站名称</td>  </tr>  <tr colspan="6">        <td>导航内容一</td>        <td>导航内容二</td>        <td>导航内容三</td>        <td>导航内容四</td>		<td>导航内容五</td>        <td>导航内容六</td>  </tr>   <tr>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr align="center">        <td>图片1</td>      </tr>       <tr align="center">        <td>图片1链接点</td>              </tr>      <tr align="center">        <td>图片2</td>             </tr>	  <tr align="center">        <td>图片2链接点</td>             </tr>	  <tr align="center">        <td>图片3</td>             </tr>	  <tr align="center">        <td>图片3链接点</td>             </tr>    </table></td>    <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">     大幅照片或者Flash流文件    </table></td>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr align="center">        <td>图片4</td>      </tr>      <tr align="center">        <td>图片4链接点</td>        </tr>      <tr align="center">        <td>图片5</td>       </tr>	  <tr align="center">        <td>图片5链接点</td>       </tr>	  <tr align="center">        <td>图片6</td>             </tr>	  <tr align="center">        <td>图片链接点</td>             </tr>	  </table></td>  </tr>  <tr>    <td colspan="6" align="center">站点设计开发人员</td>  </tr></table></body></html>
로그인 후 복사


回复讨论(解决方案)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><body><!--table width="600" border="1" cellspacing="0" cellpadding="0"--><table border="1">   <tr>    <td colspan="6" align="center">主题网站名称</td>  </tr>  <tr colspan="6">        <td>导航内容一</td>        <td>导航内容二</td>        <td>导航内容三</td>        <td>导航内容四</td>    <td>导航内容五</td>        <td>导航内容六</td>  </tr>   <tr>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr align="center">        <td>图片1</td>      </tr>       <tr align="center">        <td>图片1链接点</td>              </tr>      <tr align="center">        <td>图片2</td>             </tr>    <tr align="center">        <td>图片2链接点</td>             </tr>    <tr align="center">        <td>图片3</td>             </tr>    <tr align="center">        <td>图片3链接点</td>             </tr>    </table></td>    <td colspan="4"><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">     大幅照片或者Flash流文件    </table></td>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr align="center">        <td>图片4</td>      </tr>      <tr align="center">        <td>图片4链接点</td>        </tr>      <tr align="center">        <td>图片5</td>       </tr>    <tr align="center">        <td>图片5链接点</td>       </tr>    <tr align="center">        <td>图片6</td>             </tr>    <tr align="center">        <td>图片链接点</td>             </tr>    </table></td>  </tr>  <tr>    <td colspan="6" align="center">站点设计开发人员</td>  </tr></table></body></html>
로그인 후 복사

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><body><!--table width="600" border="1" cellspacing="0" cellpadding="0"--><table border="1">   <tr>    <td colspan="6" align="center">主题网站名称</td>  </tr>  <tr colspan="6" align="center">        <td>导航内容一</td>        <td>导航内容二</td>        <td>导航内容三</td>        <td>导航内容四</td>    <td>导航内容五</td>        <td>导航内容六</td>  </tr>   <tr>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0" >      <tr align="center">        <td>图片1</td>      </tr>       <tr align="center">        <td>图片1链接点</td>              </tr>      <tr align="center">        <td>图片2</td>             </tr>    <tr align="center">        <td>图片2链接点</td>             </tr>    <tr align="center">        <td>图片3</td>             </tr>    <tr align="center">        <td>图片3链接点</td>             </tr>    </table></td>    <td colspan="4"><table frame="void" width="200" border="0" cellspacing="0" cellpadding="0" align="center">     <tr><td>大幅照片或者Flash流文件</td></tr>    </table></td>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr align="center">        <td>图片4</td>      </tr>      <tr align="center">        <td>图片4链接点</td>        </tr>      <tr align="center">        <td>图片5</td>       </tr>    <tr align="center">        <td>图片5链接点</td>       </tr>    <tr align="center">        <td>图片6</td>             </tr>    <tr align="center">        <td>图片链接点</td>             </tr>    </table></td>  </tr>  <tr>    <td colspan="6" align="center">站点设计开发人员</td>  </tr></table></body></html>
로그인 후 복사

做了下改进

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head> <body><!--table width="600" border="1" cellspacing="0" cellpadding="0"--><table border="1">   <tr>    <td colspan="6" align="center">主题网站名称</td>  </tr>  <tr colspan="6" align="center">    <td colspan="6"><table width="100%" border="1" cellspacing="0" cellpadding="0">      <tr>        <td align="center">导航内容一</td>        <td align="center">导航内容二</td>        <td align="center">导航内容三</td>        <td align="center">导航内容四</td>        <td align="center">导航内容五</td>        <td align="center">导航内容六</td>      </tr>    </table></td>  </tr>   <tr>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0" >      <tr align="center">        <td>图片1</td>      </tr>       <tr align="center">        <td>图片1链接点</td>              </tr>      <tr align="center">        <td>图片2</td>             </tr>    <tr align="center">        <td>图片2链接点</td>             </tr>    <tr align="center">        <td>图片3</td>             </tr>    <tr align="center">        <td>图片3链接点</td>             </tr>     </table></td>    <td colspan="4"><table frame="void" width="200" border="0" cellspacing="0" cellpadding="0" align="center">     <tr><td>大幅照片或者Flash流文件</td></tr>    </table></td>     <td><table frame="void" width="200" border="1" cellspacing="0" cellpadding="0">      <tr align="center">        <td>图片4</td>      </tr>      <tr align="center">        <td>图片4链接点</td>        </tr>      <tr align="center">        <td>图片5</td>       </tr>    <tr align="center">        <td>图片5链接点</td>       </tr>    <tr align="center">        <td>图片6</td>             </tr>    <tr align="center">        <td>图片链接点</td>             </tr>    </table></td>  </tr>  <tr>    <td colspan="6" align="center">站点设计开发人员</td>  </tr> </table></body></html>
로그인 후 복사

谢谢,大神的指点!

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
최신 이슈
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿