Movatterモバイル変換


[0]ホーム

URL:


  1. Tecnología web para desarrolladores
  2. CSS
  3. Referencia CSS
  4. Properties
  5. -moz-appearance (-webkit-appearance)

Esta página ha sido traducida del inglés por la comunidad.Aprende más y únete a la comunidad de MDN Web Docs.

View in EnglishAlways switch to English

-moz-appearance (-webkit-appearance)

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨marzo de 2022⁩.

* Some parts of this feature may have varying levels of support.

No estándar: Esta función no está estandarizada. No recomendamos usar funciones no estándar en producción, ya que tienen un soporte limitado en los navegadores y pueden cambiar o eliminarse. Sin embargo, pueden ser una alternativa adecuada en casos específicos donde no exista una opción estándar.

La propiedad CSS-moz-appearance se utiliza en Gecko (Firefox) para visualizar un elemento utilizando una plataforma nativa basada en el estilo del tema del sistema operativo.

Esta propiedad es frecuentemente utilizada en hojas de estiloXUL para diseñar widgets personalizados con un estilo apropiado a la plataforma. También se utiliza en las implementacionesXBL de los widgets que se arman en la plataforma Mozilla.

Nota:No utilizar esta propiedad en sitios Web: no sólo porque no es estándar, sinó porque su comportamiento cambia de un navegador a otro. Incluso la palabra clavenone no tiene el mismo comportamiento en cada elemento de formulario a través de diferentes navegadores, y alguno no la soporta en absoluto.

Valor inicialnone
Applies toall elements
Heredableno
Valor calculadocomo se especifica
Animation typediscrete

Síntaxis

css
/* Lista parcial de valores válidos en Gecko */-moz-appearance: none;-moz-appearance: button;-moz-appearance: checkbox;-moz-appearance: scrollbarbutton-up;/* Lista parcial de valores válidos en WebKit/Blink */-webkit-appearance: none;-webkit-appearance: button;-webkit-appearance: checkbox;-webkit-appearance: scrollbarbutton-up;

Valores

<appearance> es una de las siguientes palabras clave:

ValueDescription
noneNo special styling is applied. This is the default. Note, however,error 649849 anderror 605985.
buttonThe element is drawn like a button.
button-arrow-down
button-arrow-next
button-arrow-previous
button-arrow-up
button-bevel
button-focus
caret
checkboxThe element is drawn like a checkbox, including only the actual "checkbox" portion.
checkbox-containerThe element is drawn like a container for a checkbox, which may include a prelighting background effect under certain platforms. Normally it would contain a label and a checkbox.
checkbox-label
checkmenuitem
dualbutton
groupbox
listbox
listitem
menuarrow
menubar
menucheckbox
menuimage
menuitemThe element is styled as menu item, item is highlighted when hovered.
menuitemtext
menulist
menulist-buttonThe element is styled as a button that would indicate a menulist can be opened.
menulist-text
menulist-textfieldThe element is styled as the text field for a menulist. (Not implemented for the Windows platform)
menupopup
menuradio
menuseparator
meterbarNew in Fx 16.
meterchunkNew in Fx 16
progressbarThe element is styled like a progress bar.
progressbar-vertical
progresschunk
progresschunk-vertical
radioThe element is drawn like a radio button, including only the actual "radio button" portion.
radio-containerThe element is drawn like a container for a radio button, which may include a prelighting background effect under certain platforms. Normally it would contain a label and a radio button.
radio-label
radiomenuitem
range
range-thumb
resizer
resizerpanel
scale-horizontal
scalethumbend
scalethumb-horizontal
scalethumbstart
scalethumbtick
scalethumb-vertical
scale-vertical
scrollbarbutton-down
scrollbarbutton-left
scrollbarbutton-right
scrollbarbutton-up
scrollbarthumb-horizontal
scrollbarthumb-vertical
scrollbartrack-horizontal
scrollbartrack-vertical
searchfield
separator
sheet
spinner
spinner-downbutton
spinner-textfield
spinner-upbutton
splitter
statusbar
statusbarpanel
tab
tabpanel
tabpanels
tab-scroll-arrow-back
tab-scroll-arrow-forward
textfield
textfield-multiline
toolbar
toolbarbutton
toolbarbutton-dropdown
toolbargripper
toolbox
tooltip
treeheader
treeheadercell
treeheadersortarrow
treeitem
treeline
treetwisty
treetwistyopen
treeview
-moz-mac-unified-toolbarMac OS X only. This causes the toolbar and title bar to render using the unified toolbar style common to Mac OS X 10.4 and later applications.
-moz-win-borderless-glassWindows Vista and later only. This style applies the Aero Glass effect — but without a border — to the element.
-moz-win-browsertabbar-toolboxWindows Vista and later only. This toolbox style is meant to be used for the tab bar in a browser.
-moz-win-communicationstext
-moz-win-communications-toolboxWindows Vista and later only. This toolbox style is meant to be used in communications and productivity applications. Corresponding foreground color is-moz-win-communicationstext.
-moz-win-exclude-glassWindows Vista and later only. This styles is used to exclude the Aero Glass effect on the element.
-moz-win-glassWindows Vista and later only. This style applies the Aero Glass effect to the element.
-moz-win-mediatext
-moz-win-media-toolboxWindows Vista and later only. This toolbox style is meant to be used in applications that manage media objects. Corresponding foreground color is-moz-win-mediatext.
-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-frame-bottom
-moz-window-frame-left
-moz-window-frame-right
-moz-window-titlebar
-moz-window-titlebar-maximized

Síntaxis formal

appearance =
none|
auto|
base|
base-select|
<compat-auto>|
<compat-special>|
base

<compat-auto> =
searchfield|
textarea|
checkbox|
radio|
menulist|
listbox|
meter|
progress-bar|
button

<compat-special> =
textfield|
menulist-button

Ejemplos

css
.exampleone {  -moz-appearance: toolbarbutton;}

Especificaciones

La propiedadappearance no se encuentra actualmente presente en ninguna nueva especificación CSS.

Compatibilidad con navegadores

Ver también

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp