开发者

How to change the top left margin of Jquery dynatree?

开发者 https://www.devze.com 2023-04-02 04:58 出处:网络
In the ui.dynatree.js, what is the property/value that needs to be changed for the tree to appear at top l开发者_如何学运维eft corner of the page? i.e. there should be no left and right margin. I am u

In the ui.dynatree.js, what is the property/value that needs to be changed for the tree to appear at top l开发者_如何学运维eft corner of the page? i.e. there should be no left and right margin. I am unable to find that one value that needs to changed. Can anyone please help.


This should move the tree container to an absolute position:

<html>
<head>
    [...]

<style type="text/css">
#tree {
    position: absolute;
    top: 50px;
    left: 100px;
}
</style>
<script type="text/javascript">
$(function(){
    $("#tree").dynatree({
        [...]
    });
});
</script>
</head>

<body>
    [...]
    <div id="tree"> </div>
</body>
</html>
0

精彩评论

暂无评论...
验证码 换一张
取 消