我一定遗漏了一些明显的东西,但我无法<text>
显示出来。有关HTML + CSS,请参阅http://jsfiddle.net/ydaLh/
<svg style="width: 320px; height: 200px; top: 0px; left: 0px; position: relative;">
<g class="depth">
<g class="children">
<rect class="child" x="99" y="0" width="47" height="30">
<text dy=".75em" x="105" y="6">PRIMARY</text>
</rect>
<rect class="child" x="90" y="0" width="8" height="30">
<text dy=".75em" x="96" y="6">MASTER</text>
</rect>
<rect class="parent" x="90" y="0" width="56" height="30"></rect>
</g>
</g>
</svg>