<iframe class="KJ-IFRAME" src="am003.html" width="100%" height="138" frameborder="0" scrolling="no"></iframe> 我要在这个iframe层的上面偏右侧的位置,加一个层,覆盖掉原来的文字, html要怎么写?
<p>您可以在iframe标记的后面添加一个div标记,设置其样式为绝对定位,并指定top和right属性来定位它在iframe的右上角。然后在这个div标记中添加您想显示的内容,如下所示:</p>
<iframe class="KJ-IFRAME" src="am003.html" width="100%" height="138" frameborder="0" scrolling="no"></iframe>
<div style="position:absolute; top:0; right:0;">
<!-- 这里放您想显示的内容 -->
</div>
原文地址: http://www.cveoy.top/t/topic/tNP 著作权归作者所有。请勿转载和采集!