是一个成形的iframe可能吗? [英] Is a shaped iframe possible?
本文介绍了是一个成形的iframe可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可能有一个六边形或菱形或除矩形或正方形以外的iframe?
Is it possible to have an iframe in the shape of a hexagon or diamond or anything other than a rectangle or square?
或者甚至可能是div?
Or possibly even a div?
推荐答案
您可以使用CSS掩码来伪装。
You could fake it with a CSS mask.
它会被它遮蔽。您不能让 iframe
将其内容呈现在这些形状之一内。
But portions of it will be obscured by it. You can't make the iframe
render its contents inside of one of these shapes.
这篇关于是一个成形的iframe可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文