::-moz-focus-inner
::-moz-focus-inner
CSS 伪元素是用于表示 <button>
元素以及 button、submit、reset 和 color 类型的 <input>
元素的 Mozilla 扩展。
备注:
使用 ::-moz-focus-inner
时,除了支持它的按钮外,其他按钮都不匹配,也没有任何效果。
语法
css
::-moz-focus-inner {
/* ... */
}
示例
HTML
html
<input type="submit" value="输入" /> <button type="submit">按钮</button>
CSS
css
button::-moz-focus-inner,
input[type="color"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner {
padding-block-start: 0px;
padding-inline-end: 2px;
padding-block-end: 0px;
padding-inline-start: 2px;
border: 2px dotted red;
}
结果
规范
不属于任何规范。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
::-moz-focus-inner |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Non-standard. Check cross-browser support before using.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
参见
-
相关 CSS 属性:
-
相关 CSS 选择器: