dhtmlxtree div 滚动条 overflow
在div中放置了一个dhtmlxtree,div的overflow设置为auto,加载完树后展开所有节点,树的宽度已经超过div的宽度了但是不出现滚动条:
<script></script>
<script></script>
<script> <br /> window.onload = function () { <br /> var tree = new dhtmlXTreeObject("treeBox", "100%", "100%", 0); <br /> tree.setImagePath("imgs/"); <br /> tree.enableCheckBoxes(true, true); <br /> tree.enableTreeImages(false); <br /> tree.loadXMLString("……"); <br /> } <br /> </script>
回复讨论(解决方案)
你把height,width设成10px就看到滚动条了
少了 rel="stylesheet"