Is it possible to nest one VML roundrect within another?
For example:
<v:roundrect style="display:block;width:100px;height:100px;" fillcolor="#eee">
Hi
<v:roundrect style="display:block;width:50px;height:50px;" fillcolor="#c00">
Hey
</v:roundrect>
</v:roundrect>
I can't 开发者_开发技巧see the background of the inner roundrect when I use this markup.
Any ideas?
No VML shapes can be nested inside each other. You need to position them so they overlap correctly.
<div style="position:relative;">
<v:roundrect style="display:block;width:100px;height:100px;" fillcolor="#eee">
Hi
</v:roundrect>
<v:roundrect style="display:block;width:50px;height:50px; top: 25px; left:25px; position:absolute;" fillcolor="#c00">
Hey
</v:roundrect>
</div>
精彩评论