当我们在网页中如下使用其“装饰”组件时:
<div id="tophead">
<dv-decoration-3 style="width:250px;height:30px;" />
<dv-decoration-6 style="width:300px;height:30px;" />
<dv-decoration-3 style="width:250px;height:30px;" />
</div>
就会出现以下的结果:
查看F12时会发现只有一个生效
其出现的原因为:Empty tag doesn't work in some browsers
解决的办法为:补全标签
<div id="tophead">
<dv-decoration-3 style="width:250px;height:30px;"></dv-decoration-3>
<dv-decoration-6 style="width:300px;height:30px;"></dv-decoration-6>
<dv-decoration-3 style="width:250px;height:30px;"></dv-decoration-3>
</div>
这样即可得到想要的结果: