使用dtree.js在页面中显示一个树形目录,如果是(open all,即所有节点展开)则显示正常,如果是(close all,即所有节点折叠)则浏览器下方(一般是树形目录的第5行左右)显示空白,必须将鼠标移到该空白位置才能显示
求解决方法
求解决方法
解决方案 »
- js web游戏人物移动
- javascript 调用 web server
- 急!在线等!有没有延时函数setTimeout不好用
- 急求树形菜单,有check框的,选取check框的值能存储到数据库中,或者能从check中取值
- 如何在子窗体中访问父窗体的Form中的东西,和让父窗体Submit()????急急急急急急急
- 救命啊,ScriptX打印报错,项目后天马上要实施了!!!
- 大家好看看关于网页在线编辑器的问题???
- 用javascript能显示ActiveX控件下载的进度吗?
- jquery通过另一个frame修改元素内容时,如何捕获变更事件change
- link media 事件有人可以帮帮解答吗??
- |zyciis| Js有没有像C#的 decimal.ToString("#.0000"); 这样格式化金额的,谢谢
- Jquery能实现对文本自动识别么?
Chrome和FireFox都显示正常
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666;
white-space: nowrap;
}
.dtree img {
border: 0px;
vertical-align: middle;
}
.dtree a {
color: #333;
text-decoration: none;
}
.dtree a.node, .dtree a.nodeSel {
white-space: nowrap;
padding: 1px 2px 1px 2px;
}
.dtree a.node:hover, .dtree a.nodeSel:hover {
color: #333;
text-decoration: underline;
}
.dtree a.nodeSel {
background-color: #c0d2ec;
}
.dtree .clip {
overflow: hidden;
}
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<link rel="StyleSheet" href="dtree.css" type="text/css" />
<script type="text/javascript" src="dtree.js"></script>
</head>
<?php
/**
* Template Name: document
*/
?><!--PHP部分开始-->
<?php get_header();
?>
<div id="content">
<?php get_sidebar();
?> <div id="contentwrapper"> <div id="header"> </div> <div id="subheader"> <h1><?php bloginfo('description');
?></h1> </div> <?php include(TEMPLATEPATH . '/right_sidebar.php');
?><!--树形结构开始-->
<div id="centercontent">
<h2>文档中心</h2>
<p align=RIGHT><a href="javascript: d.openAll();">全部展开</a> | <a href="javascript: d.closeAll();">全部折叠</a></p> <script type="text/javascript"> d = new dTree('d'); /*中间的树形结构部分省略*/
document.write(d);
d.openAll(); </script>
</div> <!--树形结构结束--> </div><!-- end of contentwrapper -->
</div><!-- end of content --><?php get_footer();
?>
而且网上可以找到的,参见这里http://destroydrop.com/javascripts/tree/
是float:right在该死的IE6下显示不正常,导致超出浮动显示的部分文本自动隐藏