Mozilla CSS extensions - CSS: Cascading Style Sheets 编辑

Mozilla applications such as Firefox support a number of special Mozilla extensions to CSS, including properties, values, pseudo-elements and pseudo-classes, at-rules, and media queries. These extensions are prefixed with -moz-.

Mozilla-only properties and pseudo-classes (avoid using on websites)

Note: These properties and pseudo-classes will only work in Mozilla applications such as Firefox, and are not on a standards track. Some of them apply only to XUL elements.

B

C–I

O

S–Z

Formerly proprietary properties that are now standard

Note: To maximize the compatibility of your CSS, you should use the unprefixed standard properties instead of the prefixed ones listed below. Once a given property is standardized and implemented without the prefix, the prefixed version is typically dropped after a while.

Values

Global values

-moz-appearance

  • button
  • button-arrow-down
  • button-arrow-next
  • button-arrow-previous
  • button-arrow-up
  • button-bevel
  • checkbox
  • checkbox-container
  • checkbox-label
  • checkmenuitem
  • dialog
  • groupbox
  • listbox
  • menuarrow
  • menucheckbox
  • menuimage
  • menuitem
  • menuitemtext
  • menulist
  • menulist-button
  • menulist-text
  • menulist-textfield
  • menupopup
  • menuradio
  • menuseparator
  • -moz-mac-unified-toolbar
  • -moz-win-borderless-glass
  • -moz-win-browsertabbar-toolbox
  • -moz-win-communications-toolbox
  • -moz-win-glass
  • -moz-win-media-toolbox
  • -moz-window-button-box
  • -moz-window-button-box-maximized
  • -moz-window-button-close
  • -moz-window-button-maximize
  • -moz-window-button-minimize
  • -moz-window-button-restore
  • -moz-window-titlebar
  • -moz-window-titlebar-maximized
  • progressbar
  • progresschunk
  • radio
  • radio-container
  • radio-label
  • radiomenuitem
  • resizer
  • resizerpanel
  • scale-horizontal
  • scalethumb-horizontal
  • scalethumb-vertical
  • scale-vertical
  • scrollbarbutton-down
  • scrollbarbutton-left
  • scrollbarbutton-right
  • scrollbarbutton-up
  • scrollbar-small
  • scrollbarthumb-horizontal
  • scrollbarthumb-vertical
  • scrollbartrack-horizontal
  • scrollbartrack-vertical
  • separator
  • spinner
  • spinner-downbutton
  • spinner-textfield
  • spinner-upbutton
  • statusbar
  • statusbarpanel
  • tab
  • tabpanels
  • tab-scroll-arrow-back
  • tab-scroll-arrow-forward
  • textfield
  • textfield-multiline
  • toolbar
  • toolbarbutton-dropdown
  • toolbox
  • tooltip
  • treeheadercell
  • treeheadersortarrow
  • treeitem
  • treetwisty
  • treetwistyopen
  • treeview
  • window

background-image

border-color

border-style and outline-style

  • -moz-bg-insetObsolete since Gecko 1.9
  • -moz-bg-outsetObsolete since Gecko 1.9
  • -moz-bg-solidObsolete since Gecko 1.9

<color> keywords

  • -moz-activehyperlinktext
  • -moz-hyperlinktext
  • -moz-visitedhyperlinktext
  • -moz-buttondefault
  • -moz-buttonhoverface
  • -moz-buttonhovertext
  • -moz-default-background-color
  • -moz-default-color
  • -moz-cellhighlight
  • -moz-cellhighlighttext
  • -moz-field
  • -moz-fieldtext
  • -moz-dialog
  • -moz-dialogtext
  • -moz-dragtargetzone
  • -moz-mac-accentdarkestshadow
  • -moz-mac-accentdarkshadow
  • -moz-mac-accentface
  • -moz-mac-accentlightesthighlight
  • -moz-mac-accentlightshadow
  • -moz-mac-accentregularhighlight
  • -moz-mac-accentregularshadow
  • -moz-mac-chrome-active
  • -moz-mac-chrome-inactive
  • -moz-mac-focusring
  • -moz-mac-menuselect
  • -moz-mac-menushadow
  • -moz-mac-menutextselect
  • -moz-menuhover
  • -moz-menuhovertext
  • -moz-win-communicationstext
  • -moz-win-mediatext
  • -moz-nativehyperlinktext

display

  • -moz-box This deprecated API should no longer be used, but will probably still work.
  • -moz-inline-block This is an obsolete API and is no longer guaranteed to work.
  • -moz-inline-box This deprecated API should no longer be used, but will probably still work.
  • -moz-inline-gridObsolete since Gecko 62
  • -moz-inline-stackObsolete since Gecko 62
  • -moz-inline-table This is an obsolete API and is no longer guaranteed to work.
  • -moz-gridObsolete since Gecko 62
  • -moz-grid-groupObsolete since Gecko 62
  • -moz-grid-lineObsolete since Gecko 62
  • -moz-groupboxThis is an obsolete API and is no longer guaranteed to work.
  • -moz-deckObsolete since Gecko 62
  • -moz-popupObsolete since Gecko 62
  • -moz-stackObsolete since Gecko 62
  • -moz-markerObsolete since Gecko 62

empty-cells

  • -moz-show-background (default value in quirks mode)

font

  • -moz-button
  • -moz-info
  • -moz-desktop
  • -moz-dialog (also a color)
  • -moz-document
  • -moz-workspace
  • -moz-window
  • -moz-list
  • -moz-pull-down-menu
  • -moz-field (also a color)

font-family

  • -moz-fixed

image-rendering

<length>

list-style-type

  • -moz-arabic-indic
  • -moz-bengali
  • -moz-cjk-earthly-branch
  • -moz-cjk-heavenly-stem
  • -moz-devanagari
  • -moz-ethiopic-halehame
  • -moz-ethiopic-halehame-am
  • -moz-ethiopic-halehame-ti-er
  • -moz-ethiopic-halehame-ti-et
  • -moz-ethiopic-numeric
  • -moz-gujarati
  • -moz-gurmukhi
  • -moz-hangul
  • -moz-hangul-consonant
  • -moz-japanese-formal
  • -moz-japanese-informal
  • -moz-kannada
  • -moz-khmer
  • -moz-lao
  • -moz-malayalam
  • -moz-myanmar
  • -moz-oriya
  • -moz-persian
  • -moz-simp-chinese-formal
  • -moz-simp-chinese-informal
  • -moz-tamil
  • -moz-telugu
  • -moz-thai
  • -moz-trad-chinese-formal
  • -moz-trad-chinese-informal
  • -moz-urdu

overflow

text-align

  • -moz-center
  • -moz-left
  • -moz-right

text-decoration

  • -moz-anchor-decoration

-moz-user-select

  • -moz-all
  • -moz-none

width, min-width, and max-width

  • -moz-min-content
  • -moz-fit-content
  • -moz-max-content
  • -moz-available

Pseudo-elements and pseudo-classes

At-rules

Media features

Other

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:145 次

字数:118339

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文