3

例えば:

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

このマークアップを使用すると、内側の roundrect の背景が見えません。

何か案は?

4

1 に答える 1

5

VML シェイプを相互にネストすることはできません。それらが正しく重なるように配置する必要があります。

<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>
于 2010-03-21T21:08:31.763 に答える