例如:
<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>
使用此标记时,我看不到内部圆形矩形的背景。
有任何想法吗?
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>