Home  >  Article  >  Web Front-end  >  承载dhtmlxtree的div设置了overflow但不见滚动条_html/css_WEB-ITnose

承载dhtmlxtree的div设置了overflow但不见滚动条_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:23:001168browse

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"

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn