一个树形结构tree 先展开的时候显示滚动条
一个树形结构tree 先展开的时候显示滚动条 css 的树形里写了overflow:auto;
页面上也写了 <style type="text/css">
body
{
height: 96%;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.body
{
height: 96%;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="tree" style="height: 100%; width: 240px">
<div style="background: url('../images/btn/left_bar.jpg') repeat-x; height: 22px;
padding-left: 10px; padding-top: 5px; font-weight: bold;">
路线警卫</div>
</div>
<script type="text/javascript">
treeObj = new dhtmlXTreeObject('tree', "100%", "100%", 0);
treeObj.setSkin('dhx_skyblue');
treeObj.setImagePath('../dhtmlxTree/imgs/bluebooks/');
treeObj.setOnClickHandler(ItemClick);
treeObj.loadXMLString("<%=GetTree() %>");
</script>
</form>
</body>
可是不知道为啥 只有Ie6有滚动条 ,其他浏览器没有,求解答
------解决方案--------------------宽度不够
------解决方案--------------------mark
------解决方案--------------------
我光测了Firfox 跟IE
C# code
<div style="border-style: solid; border-color: inherit; border-width: 1px; width:100%; height:530px; overflow:scroll; ">
<asp:TreeView ID="TreeView1" runat="server" Width="8px">
</asp:TreeView>
</div>