日期:2014-05-16  浏览次数:20471 次

急求,vml动态画组织结构图形
我这里需要一个用vml+xml画组织结构图。 

动态读xml。 
如下图:
  总经理
  |
  ----------------------------
  | | |
   经理     财务    技术总监

  非常感谢。分数不够再加

------解决方案--------------------
呵呵,不是CSDN木有高手,高手没时间给你做这个...

HTML code

<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
    <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
    <style type="text/css">
        v\:*{
            behavior:url(#default#VML);
        }
        
        v\:RoundRect{
            text-align:center;
            position:relative;
        }
        
        v\:TextBox{
            vertical-align:middle;
            font-size:13px;
        }
    </style>
</head>

<body>

<center>
<v:group coordsize="500,500" style="width:500px;height:500px;">
    <v:RoundRect style="width:100px;height:25px;left:200px;" align="center">
        <v:shadow on="True" type="single" color="#b3b3b3" offset="5px,5px"/>
        <v:TextBox >总经理</v:TextBox>
    </v:RoundRect>
    
    <v:line from="250,25" to="250,50" />
        
    <v:line from="50,50" to="450,50" />
        
    <v:line from="50,50" to="50,75" />
    <v:RoundRect style="width:100px;height:25px;left:0px;top:75px;" align="center">
        <v:shadow on="True" type="single" color="#b3b3b3" offset="5px,5px"/>
        <v:TextBox >经理</v:TextBox>
    </v:RoundRect>    
        
    <v:line from="250,50" to="250,75" />
    <v:RoundRect style="width:100px;height:25px;left:200px;top:75px;" align="center">
        <v:shadow on="True" type="single" color="#b3b3b3" offset="5px,5px"/>
        <v:TextBox >财务</v:TextBox>
    </v:RoundRect>
    
    <v:line from="450,50" to="450,75" />
    <v:RoundRect style="width:100px;height:25px;left:400px;top:75px;" align="center">
        <v:shadow on="True" type="single" color="#b3b3b3" offset="5px,5px"/>
        <v:TextBox >技术总监</v:TextBox>
    </v:RoundRect>
        
</v:group>
</center>

</body>
</html>