开发者

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>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜