René's URL Explorer Experiment


Title: :Web 组件插槽元素 - HTML(超文本标记语言) | MDN

Open Graph Title: :Web 组件插槽元素 - HTML(超文本标记语言) | MDN

Description: HTML 元素是——Web 组件技术套件的一部分——它是一个在 web 组件内部的占位符,你可以使用自己的标记来填充该占位符,从而创建单独的 DOM 树并将其一起呈现。

Open Graph Description: HTML 元素是——Web 组件技术套件的一部分——它是一个在 web 组件内部的占位符,你可以使用自己的标记来填充该占位符,从而创建单独的 DOM 树并将其一起呈现。

Opengraph URL: https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/slot

direct link

Domain: developer.mozilla.org

og:localezh_CN
og:imagehttps://developer.mozilla.org/mdn-social-image.46ac2375.png
og:image:typeimage/png
og:image:height1024
og:image:width1024
og:image:altThe MDN logo
og:site_nameMDN Web Docs
twitter:cardsummary
twitter:creatorMozDevNet
position5

Links:

Skip to main contenthttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#content
Skip to searchhttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#search
MDN https://developer.mozilla.org/zh-CN/
HTML: Markup languagehttps://developer.mozilla.org/zh-CN/docs/Web/HTML
Elementshttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements
Global attributeshttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes
Attributeshttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Attributes
See all…https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference
Responsive imageshttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Responsive_images
HTML cheatsheethttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Cheatsheet
Date & time formatshttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Date_and_time_formats
See all…https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides
SVGhttps://developer.mozilla.org/zh-CN/docs/Web/SVG
MathMLhttps://developer.mozilla.org/zh-CN/docs/Web/MathML
XMLhttps://developer.mozilla.org/zh-CN/docs/Web/XML
CSS: Styling languagehttps://developer.mozilla.org/zh-CN/docs/Web/CSS
Propertieshttps://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties
Selectorshttps://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Selectors
At-ruleshttps://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules
Valueshttps://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Values
See all…https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference
Box modelhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/Guides/Box_model/Introduction
Animationshttps://developer.mozilla.org/zh-CN/docs/Web/CSS/Guides/Animations/Using
Flexboxhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/Guides/Flexible_box_layout/Basic_concepts
Colorshttps://developer.mozilla.org/zh-CN/docs/Web/CSS/Guides/Colors/Applying_color
See all…https://developer.mozilla.org/zh-CN/docs/Web/CSS/Guides
Column layoutshttps://developer.mozilla.org/zh-CN/docs/Web/CSS/How_to/Layout_cookbook/Column_layouts
Centering an elementhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/How_to/Layout_cookbook/Center_an_element
Card componenthttps://developer.mozilla.org/zh-CN/docs/Web/CSS/How_to/Layout_cookbook/Card
See all…https://developer.mozilla.org/zh-CN/docs/Web/CSS/How_to/Layout_cookbook
JavaScript: Scripting languagehttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript
Standard built-in objectshttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects
Expressions & operatorshttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators
Statements & declarationshttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements
Functionshttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions
See all…https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference
Control flow & error handinghttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Control_flow_and_error_handling
Loops and iterationhttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Loops_and_iteration
Working with objectshttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Working_with_objects
Using classeshttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Using_classes
See all…https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide
Web APIs: Programming interfaceshttps://developer.mozilla.org/zh-CN/docs/Web/API
File system APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/File_System_API
Fetch APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API
Geolocation APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/Geolocation_API
HTML DOM APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/HTML_DOM_API
Push APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/Push_API
Service worker APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/Service_Worker_API
See all…https://developer.mozilla.org/zh-CN/docs/Web/API
Using the Web animation APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API
Using the Fetch APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API/Using_Fetch
Working with the History APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/History_API/Working_with_the_History_API
Using the Web speech APIhttps://developer.mozilla.org/zh-CN/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API
Using web workershttps://developer.mozilla.org/zh-CN/docs/Web/API/Web_Workers_API/Using_web_workers
All web technologyhttps://developer.mozilla.org/zh-CN/docs/Web
Accessibilityhttps://developer.mozilla.org/zh-CN/docs/Web/Accessibility
HTTPhttps://developer.mozilla.org/zh-CN/docs/Web/HTTP
URIhttps://developer.mozilla.org/zh-CN/docs/Web/URI
Web extensionshttps://developer.mozilla.org/zh-CN/docs/Mozilla/Add-ons/WebExtensions
WebAssemblyhttps://developer.mozilla.org/zh-CN/docs/WebAssembly
WebDriverhttps://developer.mozilla.org/zh-CN/docs/Web/WebDriver
See all…https://developer.mozilla.org/zh-CN/docs/Web
Mediahttps://developer.mozilla.org/zh-CN/docs/Web/Media
Performancehttps://developer.mozilla.org/zh-CN/docs/Web/Performance
Privacyhttps://developer.mozilla.org/zh-CN/docs/Web/Privacy
Securityhttps://developer.mozilla.org/zh-CN/docs/Web/Security
Progressive web appshttps://developer.mozilla.org/zh-CN/docs/Web/Progressive_web_apps
Learn web developmenthttps://developer.mozilla.org/zh-CN/docs/Learn_web_development
Getting started moduleshttps://developer.mozilla.org/zh-CN/docs/Learn_web_development/Getting_started
Core moduleshttps://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core
MDN Curriculumhttps://developer.mozilla.org/en-US/curriculum/
Structuring content with HTML modulehttps://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Structuring_content
CSS styling basics modulehttps://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Styling_basics
CSS layout modulehttps://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/CSS_layout
Dynamic scripting with JavaScript modulehttps://developer.mozilla.org/zh-CN/docs/Learn_web_development/Core/Scripting
Playgroundhttps://developer.mozilla.org/en-US/play
HTTP Observatoryhttps://developer.mozilla.org/en-US/observatory
Border-image generatorhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_backgrounds_and_borders/Border-image_generator
Border-radius generatorhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_backgrounds_and_borders/Border-radius_generator
Box-shadow generatorhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_backgrounds_and_borders/Box-shadow_generator
Color format converterhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_colors/Color_format_converter
Color mixerhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_colors/Color_mixer
Shape generatorhttps://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_shapes/Shape_generator
About MDNhttps://developer.mozilla.org/en-US/about
Advertise with ushttps://developer.mozilla.org/en-US/advertising
Communityhttps://developer.mozilla.org/en-US/community
MDN on GitHubhttps://github.com/mdn
Bloghttps://developer.mozilla.org/en-US/blog/
面向开发者的 Web 技术https://developer.mozilla.org/zh-CN/docs/Web
HTML(超文本标记语言)https://developer.mozilla.org/zh-CN/docs/Web/HTML
HTML 参考https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference
HTML 元素参考https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements
https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/slot
https://github.com/orgs/mdn/discussions/739
https://developer.mozilla.org/de/docs/Web/HTML/Reference/Elements/slot
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/slot
https://developer.mozilla.org/es/docs/Web/HTML/Reference/Elements/slot
https://developer.mozilla.org/fr/docs/Web/HTML/Reference/Elements/slot
https://developer.mozilla.org/ja/docs/Web/HTML/Reference/Elements/slot
https://developer.mozilla.org/ko/docs/Web/HTML/Reference/Elements/slot
https://developer.mozilla.org/ru/docs/Web/HTML/Reference/Elements/slot
https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/slot
了解更多并加入 MDN Web Docs 社区。https://developer.mozilla.org/zh-CN/docs/MDN/Community/Contributing/Translated_content#活跃语言
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/slot
Learn more https://developer.mozilla.org/zh-CN/docs/Glossary/Baseline/Compatibility
See full compatibility https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#浏览器兼容性
Report feedback https://survey.alchemer.com/s3/7634825/MDN-baseline-feedback?page=%2Fzh-CN%2Fdocs%2FWeb%2FHTML%2FReference%2FElements%2Fslot&level=high
HTMLhttps://developer.mozilla.org/zh-CN/docs/Web/HTML
Web 组件https://developer.mozilla.org/zh-CN/docs/Web/API/Web_components
属性https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#属性
示例https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#示例
技术概要https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#技术概要
规范https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#规范
浏览器兼容性https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#浏览器兼容性
参见https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#参见
属性https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#属性
全局属性https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Global_attributes
namehttps://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#name
示例https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#示例
element-detailshttps://github.com/mdn/web-components-examples/tree/main/element-details
在线演示https://mdn.github.io/web-components-examples/element-details/
使用模板和插槽https://developer.mozilla.org/zh-CN/docs/Web/API/Web_components/Using_templates_and_slots
技术概要https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#技术概要
内容分类https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories
流式内容https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories#流式内容
短语内容https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories#短语内容
透明内容https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories#透明内容模型
slotchangehttps://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/slotchange_event
短语内容https://developer.mozilla.org/zh-CN/docs/Web/HTML/Guides/Content_categories#短语内容
没有对应的角色https://www.w3.org/TR/html-aria/#dfn-no-corresponding-role
HTMLSlotElementhttps://developer.mozilla.org/zh-CN/docs/Web/API/HTMLSlotElement
规范https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#规范
HTML# the-slot-elementhttps://html.spec.whatwg.org/multipage/scripting.html#the-slot-element
DOM# shadow-tree-slotshttps://dom.spec.whatwg.org/#shadow-tree-slots
浏览器兼容性https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#浏览器兼容性
参见https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/slot#参见