从任何组件中删除默认浏览器样式。
¥API Reference
重置组件用于主动重置特定元素的浏览器样式。
¥Reset component is used to aggressively reset browser styles on a specific element.
它渲染的 插槽基础组件 具有以下特性:
¥It renders a Slot primitive that:
接受单个 React 元素作为其子元素
¥Accepts a single React element as its child
移除自以为是的浏览器样式
¥Removes opinionated browser styles
设置惯用的布局默认值,例如图片的 display: block
或输入的 width: stretch
¥Sets idiomatic layout defaults, like display: block
for images or width: stretch
for inputs
根据你的主题设置设置 cursor 样式
¥Sets the cursor style according to your theme settings
添加 box-sizing: border-box
¥Adds box-sizing: border-box
¥Examples
¥Anchor
¥Abbreviation
¥Address
¥Article
¥Aside
¥Bold
¥Bi-directional isolation
¥Bi-directional override
¥Block quote
¥Button
¥Citation
¥Code
¥Data
¥Deleted text
¥Details
¥Definition
¥Emphasized text
¥Fieldset
¥Figure
¥Figure caption
¥Footer
¥Form
¥Heading
¥Header
¥Italic text
¥Inline frame
重置时,<iframe>
元素将获得 display: block
和 width: stretch
。
¥When reset, <iframe>
elements get display: block
and width: stretch
.
¥Image
重置时,<img>
元素将获得 display: block
和 max-width: 100%
。
¥When reset, <img>
elements get display: block
and max-width: 100%
.
¥Input
重置时,文本 <input>
类型将获得 display: block
和 width: stretch
。
¥When reset, textual <input>
types get display: block
and width: stretch
.
¥Inserted text
¥Keyboard input
¥Label
¥Legend
¥List item
¥Main
¥Marked text
¥Navigation
¥Ordered list
¥Output
¥Paragraph
¥Preformatted text
¥Quote
¥Strikethrough text
¥Sample output
¥Section
¥Select
¥Small text
¥Span
¥Strong text
¥Subscript text
¥Superscript text
重置时,<svg>
元素将获得 display: block
、max-width: 100%
和 flex-shrink: 0
。
¥When reset, <svg>
elements get display: block
, max-width: 100%
, and flex-shrink: 0
.
¥Table
¥Text area
¥Time
¥Unarticulated annotation
¥Unordered list
¥Variable