页面表示的是一个树,html如下:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD><BODY><DIV class=dtree>
<DIV class=dTreeNode>
<TABLE cellSpacing="0" cellPadding="0">
<TBODY><TR><TD><IMG id=idTreeResultKind0 alt="" src="http://localhost/pwis/Images/pdb/proc62/folderopen.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(0);"><P id=tddTreeResultKind0>全て</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV style="DISPLAY: block" id=ddTreeResultKind0 class=clip>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG id=jdTreeResultKind1 alt="" src="http://localhost/pwis/Images/pdb/proc62/joinbottom.gif"></TD><TD><IMG id=idTreeResultKind1 alt="" src="http://localhost/pwis/Images/pdb/proc62/folderopen.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(1);"><P id=tddTreeResultKind1>工事完成図書</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV style="DISPLAY: block" id=ddTreeResultKind1 class=clip>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind2 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(2);"><P id=tddTreeResultKind2>発注図(DRAWINGS)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind3 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(3);"><P id=tddTreeResultKind3>打合せ簿(MEET)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind4 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(4);"><P id=tddTreeResultKind4>施工計画書(PLAN)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind5 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(5);"><P id=tddTreeResultKind5>完成図(DRAWINGF)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind6 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(6);"><P id=tddTreeResultKind6>写真(PHOTO)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/join.gif"></TD><TD><IMG id=idTreeResultKind7 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(7);"><P id=tddTreeResultKind7>地質データ(BORING)</P></A></TD></TR></TBODY></TABLE>
</DIV>
<DIV class=dTreeNode><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/empty.gif"></TD><TD><IMG alt="" src="http://localhost/pwis/Images/pdb/proc62/joinbottom.gif"></TD><TD><IMG id=idTreeResultKind8 alt="" src="http://localhost/pwis/Images/pdb/proc62/folder.gif"></TD><TD><A class=node href="javascript: dTreeResultKind.o(8);"><P id=tddTreeResultKind8>その他(OTHRS)</P></A></TD></TR></TBODY></TABLE>
</DIV>
</DIV>
</DIV>
</DIV>
</BODY>
</HTML>问题:服务器在我本机上起动,用本机的浏览器访问这个网页是OK的,树形结构也完整紧凑。
但是,在别的机器上的浏览器访问,树形结构就散架了,行与行之间有很大的距离。请大家帮忙解释下。

解决方案 »

  1.   


    如果是浏览器不兼容的话,怎么办呀?
    div或table能不能设置个什么属性能解决这个问题呢?
      

  2.   

    只能说说我的想法了,做页面最好选择用div+css,最好不要用table标签,这样的兼容性会比较好,同时选择不同内核的浏览器做一下测试,包括FireFox、Chrome、Opera、还有IE的各个版本,其中FireFoex是最支持W3C标准的,最恶心的是IE6,很多都不兼容,但也有解决的办法,同时针对于不同内核的IE的问题可以使用IETest进行测试
      

  3.   


    谢谢帮助!我用的css+div不熟,麻烦呀。
      

  4.   


    谢谢关心帮助,这个问题解决了。div中套table是不好的,我把table去掉了,为了使<p>标签的内容不换行,我给他加了个属性inline。