跳到主要内容

💥 iframe

内联框架

场景用例

<!-- HTML 代码 -->

属性

属性(Attribute)说明(Description)值(Value)
src--
srcdocA document to render in the iframeThe source of an iframe srcdoc document*
name--
sandboxSecurity rules for nested contentUnordered set of unique space-separated tokens, ASCII case-insensitive, consisting of "allow-downloads"、"allow-forms"、"allow-modals"、"allow-orientation-lock"、"allow-pointer-lock"、"allow-popups"、"allow-popups-to-escape-sandbox"、"allow-presentation"、"allow-same-origin"、"allow-scripts"、"allow-top-navigation"、"allow-top-navigation-by-user-activation"、"allow-top-navigation-to-custom-protocols"
allowPermissions policy to be applied to the iframe's contentsSerialized permissions policy
allowfullscreenWhether to allow the iframe's contents to use requestFullscreen()Boolean attribute
width--
height--
referrerpolicy--
loadingUsed when determining loading deferral"lazy"; "eager"

事件

事件(Event)说明(Description)值(Value)接口(Interface)
----

参考