CSS-Referenz
Nutzen Sie diese CSS-Referenz, um einen alphabetischen Index aller standardisierten CSS Eigenschaften, Pseudoklassen, Pseudo-Elemente, Datentypen, funktionalen Notationen und At-Rules zu durchsuchen. Sie können auch wichtige CSS-Konzepte und eine Liste von Selektoren, die nach Typ organisiert sind durchsuchen. Ebenfalls enthalten ist eine kurze DOM-CSS / CSSOM-Referenz.
Grundlegende Syntaxregeln
>Syntax der Stilregel
style-rule ::=
selectors-list {
properties-list
}
Wo:
selectors-list ::=
selector[:pseudo-class] [::pseudo-element]
[, selectors-list]
properties-list ::=
[property : value] [; properties-list]
Siehe den Index der Selektoren, Pseudoklassen und Pseudo-Elemente unten. Die Syntax für jeden angegebenen Wert hängt von dem Datentyp ab, der für jede angegebene Eigenschaft definiert ist.
Beispiele für Stilregeln
strong {
color: red;
}
div.menu-bar li:hover > ul {
display: block;
}
Für eine grundlegende Einführung in die Syntax von Selektoren sehen Sie sich unseren Leitfaden zu CSS-Selektoren an. Beachten Sie, dass jeder Syntaxfehler in einer Regeldefinition die gesamte Regel ungültig macht. Ungültige Regeln werden vom Browser ignoriert. Beachten Sie, dass CSS-Regeldefinitionen vollständig (Unicode-) textbasiert sind, während DOM-CSS / CSSOM (das Regelverwaltungssystem) objektbasiert ist.
Syntax der At-Rules
Da die Struktur von At-Rules stark variieren kann, schauen Sie bitte unter At-rule, um die Syntax der spezifischen Regel zu finden, die Sie benötigen.
Index
Hinweis: Dieser Index schließt SVG-exklusive Präsentationsattribute nicht ein, die als CSS-Eigenschaften auf SVG-Elementen verwendet werden können.
Hinweis: Die Eigenschaftsnamen in diesem Index enthalten nicht die JavaScript-Namen, die sich von den CSS-Standardnamen unterscheiden.
-
-webkit-text-fill-color CSS property-webkit-text-stroke CSS property-webkit-text-stroke-color CSS property-webkit-text-stroke-width CSS property
A
Attribute selectorsabs() CSS function<absolute-size> CSS typeaccent-color CSS propertyacos() CSS function:active CSS pseudo-class:active-view-transition CSS pseudo-class:active-view-transition-type() CSS pseudo-classadditive-symbols CSS at-rule descriptor (@counter-style)::after CSS pseudo-elementalign-content CSS propertyalign-items CSS propertyalign-self CSS propertyalignment-baseline CSS propertyall CSS property<alpha-value> CSS typeanchor() CSS functionanchor-name CSS propertyanchor-scope CSS propertyanchor-size() CSS function<angle-percentage> CSS type<angle> CSS typeanimation CSS propertyanimation-composition CSS propertyanimation-delay CSS propertyanimation-direction CSS propertyanimation-duration CSS propertyanimation-fill-mode CSS propertyanimation-iteration-count CSS propertyanimation-name CSS propertyanimation-play-state CSS propertyanimation-range CSS propertyanimation-range-end CSS propertyanimation-range-start CSS propertyanimation-timeline CSS propertyanimation-timing-function CSS property:any-link CSS pseudo-classappearance CSS propertyascent-override CSS at-rule descriptor (@font-face)asin() CSS functionaspect-ratio CSS propertyatan() CSS functionatan2() CSS functionattr() CSS function:autofill CSS pseudo-class<axis> CSS type
B
::backdrop CSS pseudo-elementbackdrop-filter CSS propertybackface-visibility CSS propertybackground CSS propertybackground-attachment CSS propertybackground-blend-mode CSS propertybackground-clip CSS propertybackground-color CSS propertybackground-image CSS propertybackground-origin CSS propertybackground-position CSS propertybackground-position-x CSS propertybackground-position-y CSS propertybackground-repeat CSS propertybackground-repeat-x CSS propertybackground-repeat-y CSS propertybackground-size CSS propertybase-palette CSS at-rule descriptor (@font-palette-values)<baseline-position> CSS typebaseline-shift CSS propertybaseline-source CSS property<basic-shape> CSS type::before CSS pseudo-element:blank CSS pseudo-class<blend-mode> CSS typeblock-size CSS propertyblur() CSS functionborder CSS propertyborder-block CSS propertyborder-block-color CSS propertyborder-block-end CSS propertyborder-block-end-color CSS propertyborder-block-end-style CSS propertyborder-block-end-width CSS propertyborder-block-start CSS propertyborder-block-start-color CSS propertyborder-block-start-style CSS propertyborder-block-start-width CSS propertyborder-block-style CSS propertyborder-block-width CSS propertyborder-bottom CSS propertyborder-bottom-color CSS propertyborder-bottom-left-radius CSS propertyborder-bottom-right-radius CSS propertyborder-bottom-style CSS propertyborder-bottom-width CSS propertyborder-collapse CSS propertyborder-color CSS propertyborder-end-end-radius CSS propertyborder-end-start-radius CSS propertyborder-image CSS propertyborder-image-outset CSS propertyborder-image-repeat CSS propertyborder-image-slice CSS propertyborder-image-source CSS propertyborder-image-width CSS propertyborder-inline CSS propertyborder-inline-color CSS propertyborder-inline-end CSS propertyborder-inline-end-color CSS propertyborder-inline-end-style CSS propertyborder-inline-end-width CSS propertyborder-inline-start CSS propertyborder-inline-start-color CSS propertyborder-inline-start-style CSS propertyborder-inline-start-width CSS propertyborder-inline-style CSS propertyborder-inline-width CSS propertyborder-left CSS propertyborder-left-color CSS propertyborder-left-style CSS propertyborder-left-width CSS propertyborder-radius CSS propertyborder-right CSS propertyborder-right-color CSS propertyborder-right-style CSS propertyborder-right-width CSS propertyborder-spacing CSS propertyborder-start-end-radius CSS propertyborder-start-start-radius CSS propertyborder-style CSS propertyborder-top CSS propertyborder-top-color CSS propertyborder-top-left-radius CSS propertyborder-top-right-radius CSS propertyborder-top-style CSS propertyborder-top-width CSS propertyborder-width CSS propertybottom CSS propertybox-decoration-break CSS property<box-edge> CSS typebox-shadow CSS propertybox-sizing CSS propertybreak-after CSS propertybreak-before CSS propertybreak-inside CSS propertybrightness() CSS function:buffering CSS pseudo-class
C
Class selectorsCustom properties (--*): CSS variablescalc() CSS function<calc-keyword> CSS typecalc-size() CSS function<calc-sum> CSS typecaption-side CSS propertycaret CSS propertycaret-animation CSS propertycaret-color CSS propertycaret-shape CSS property@charset CSS at-rule:checked CSS pseudo-class::checkmark CSS pseudo-elementcircle() CSS functionclamp() CSS functionclear CSS propertyclip-path CSS propertyclip-rule CSS propertycolor CSS propertycolor() CSS functioncolor-interpolation CSS propertycolor-interpolation-filters CSS property<color-interpolation-method> CSS typecolor-mix() CSS function@color-profile CSS at-rulecolor-scheme CSS property<color> CSS type::column CSS pseudo-elementcolumn-count CSS propertycolumn-fill CSS propertycolumn-gap CSS propertycolumn-height CSS propertycolumn-rule CSS propertycolumn-rule-color CSS propertycolumn-rule-style CSS propertycolumn-rule-width CSS propertycolumn-span CSS propertycolumn-width CSS propertycolumn-wrap CSS propertycolumns CSS propertyconic-gradient() CSS functioncontain CSS propertycontain-intrinsic-block-size CSS propertycontain-intrinsic-height CSS propertycontain-intrinsic-inline-size CSS propertycontain-intrinsic-size CSS propertycontain-intrinsic-width CSS property@container CSS at-rulecontainer CSS propertycontainer-name CSS propertycontainer-type CSS propertycontent CSS property<content-distribution> CSS type<content-position> CSS typecontent-visibility CSS propertycontrast() CSS functioncontrast-color() CSS functioncorner-block-end-shape CSS propertycorner-block-start-shape CSS propertycorner-bottom-left-shape CSS propertycorner-bottom-right-shape CSS propertycorner-bottom-shape CSS propertycorner-end-end-shape CSS propertycorner-end-start-shape CSS propertycorner-inline-end-shape CSS propertycorner-inline-start-shape CSS propertycorner-left-shape CSS propertycorner-right-shape CSS propertycorner-shape CSS property<corner-shape-value> CSS typecorner-start-end-shape CSS propertycorner-start-start-shape CSS propertycorner-top-left-shape CSS propertycorner-top-right-shape CSS propertycorner-top-shape CSS propertycos() CSS functioncounter() CSS functioncounter-increment CSS propertycounter-reset CSS propertycounter-set CSS property@counter-style CSS at-rulecounters() CSS functioncross-fade() CSS functioncubic-bezier() CSS function::cue CSS pseudo-element:current CSS pseudo-classcursor CSS property<custom-ident> CSS type@custom-media CSS at-rulecx CSS propertycy CSS property
D
d CSS property<dashed-function> CSS type<dashed-ident> CSS type:default CSS pseudo-class:defined CSS pseudo-classdescent-override CSS at-rule descriptor (@font-face)::details-content CSS pseudo-elementdevice-cmyk() CSS function<dimension> CSS type:dir() CSS pseudo-classdirection CSS property:disabled CSS pseudo-classdisplay CSS property<display-box> CSS type<display-inside> CSS type<display-internal> CSS type<display-legacy> CSS type<display-listitem> CSS type<display-outside> CSS typedominant-baseline CSS propertydrop-shadow() CSS functiondynamic-range-limit CSS propertydynamic-range-limit-mix() CSS function
E
<easing-function> CSS typeelement() CSS functionellipse() CSS function:empty CSS pseudo-classempty-cells CSS property:enabled CSS pseudo-classenv() CSS functionexp() CSS function
F
fallback CSS at-rule descriptor (@counter-style)field-sizing CSS property::file-selector-button CSS pseudo-elementfill CSS propertyfill-opacity CSS propertyfill-rule CSS propertyfilter CSS property<filter-function> CSS type:first CSS pseudo-class:first-child CSS pseudo-class::first-letter CSS pseudo-element::first-line CSS pseudo-element:first-of-type CSS pseudo-classfit-content CSS keywordfit-content() CSS functionflex CSS propertyflex-basis CSS propertyflex-direction CSS propertyflex-flow CSS propertyflex-grow CSS propertyflex-shrink CSS propertyflex-wrap CSS property<flex> CSS typefloat CSS propertyflood-color CSS propertyflood-opacity CSS property:focus CSS pseudo-class:focus-visible CSS pseudo-class:focus-within CSS pseudo-classfont CSS propertyfont-display CSS at-rule descriptor (@font-face)font-display CSS at-rule descriptor (@font-feature-values)@font-face CSS at-rulefont-family CSS at-rule descriptor (@font-face)font-family CSS at-rule descriptor (@font-palette-values)font-family CSS propertyfont-feature-settings CSS at-rule descriptor (@font-face)font-feature-settings CSS property@font-feature-values CSS at-rulefont-kerning CSS propertyfont-language-override CSS propertyfont-optical-sizing CSS propertyfont-palette CSS property@font-palette-values CSS at-rulefont-size CSS propertyfont-size-adjust CSS propertyfont-stretch CSS at-rule descriptor (@font-face)font-stretch CSS propertyfont-style CSS at-rule descriptor (@font-face)font-style CSS propertyfont-synthesis CSS propertyfont-synthesis-position CSS propertyfont-synthesis-small-caps CSS propertyfont-synthesis-style CSS propertyfont-synthesis-weight CSS propertyfont-variant CSS propertyfont-variant-alternates CSS propertyfont-variant-caps CSS propertyfont-variant-east-asian CSS propertyfont-variant-emoji CSS propertyfont-variant-ligatures CSS propertyfont-variant-numeric CSS propertyfont-variant-position CSS propertyfont-variation-settings CSS at-rule descriptor (@font-face)font-variation-settings CSS propertyfont-weight CSS at-rule descriptor (@font-face)font-weight CSS propertyfont-width CSS at-rule descriptor (@font-face)font-width CSS propertyforced-color-adjust CSS property<frequency-percentage> CSS type<frequency> CSS type:fullscreen CSS pseudo-class@function CSS at-rule:future CSS pseudo-class
G
gap CSS property<generic-family> CSS type<gradient> CSS type::grammar-error CSS pseudo-elementgrayscale() CSS functiongrid CSS propertygrid-area CSS propertygrid-auto-columns CSS propertygrid-auto-flow CSS propertygrid-auto-rows CSS propertygrid-column CSS propertygrid-column-end CSS propertygrid-column-start CSS propertygrid-row CSS propertygrid-row-end CSS propertygrid-row-start CSS propertygrid-template CSS propertygrid-template-areas CSS propertygrid-template-columns CSS propertygrid-template-rows CSS property
H
hanging-punctuation CSS property:has() CSS pseudo-class:has-slotted CSS pseudo-class:heading CSS pseudo-class:heading() CSS pseudo-classheight CSS property<hex-color> CSS type::highlight() CSS pseudo-element:host CSS pseudo-class:host() CSS pseudo-class:hover CSS pseudo-classhsl() CSS function<hue-interpolation-method> CSS typehue-rotate() CSS function<hue> CSS typehwb() CSS functionhyphenate-character CSS propertyhyphenate-limit-chars CSS propertyhyphens CSS propertyhypot() CSS function
I
ID selectors<ident> CSS typeif() CSS functionimage() CSS functionimage-orientation CSS propertyimage-rendering CSS propertyimage-resolution CSS propertyimage-set() CSS function<image> CSS type@import CSS at-rule!important CSS keyword:in-range CSS pseudo-class:indeterminate CSS pseudo-classinherit CSS keywordinherits CSS at-rule descriptor (@property)initial CSS keywordinitial-letter CSS propertyinitial-value CSS at-rule descriptor (@property)inline-size CSS propertyinset CSS propertyinset() CSS functioninset-block CSS propertyinset-block-end CSS propertyinset-block-start CSS propertyinset-inline CSS propertyinset-inline-end CSS propertyinset-inline-start CSS property<integer> CSS typeinteractivity CSS propertyinterest-delay CSS propertyinterest-delay-end CSS propertyinterest-delay-start CSS property:interest-source CSS pseudo-class:interest-target CSS pseudo-classinterpolate-size CSS property:invalid CSS pseudo-classinvert() CSS function:is() CSS pseudo-classisolation CSS property
J
K
L
lab() CSS function:lang() CSS pseudo-class:last-child CSS pseudo-class:last-of-type CSS pseudo-class@layer CSS at-rulelayer() CSS functionlch() CSS functionleft CSS property:left CSS pseudo-class<length-percentage> CSS type<length> CSS typeletter-spacing CSS propertylight-dark() CSS functionlighting-color CSS propertyline-break CSS propertyline-clamp CSS propertyline-gap-override CSS at-rule descriptor (@font-face)line-height CSS propertyline-height-step CSS property<line-style> CSS typelinear() CSS functionlinear-gradient() CSS function:link CSS pseudo-classlist-style CSS propertylist-style-image CSS propertylist-style-position CSS propertylist-style-type CSS property:local-link CSS pseudo-classlog() CSS function
M
margin CSS propertymargin-block CSS propertymargin-block-end CSS propertymargin-block-start CSS propertymargin-bottom CSS propertymargin-inline CSS propertymargin-inline-end CSS propertymargin-inline-start CSS propertymargin-left CSS propertymargin-right CSS propertymargin-top CSS propertymargin-trim CSS propertymarker CSS property::marker CSS pseudo-elementmarker-end CSS propertymarker-mid CSS propertymarker-start CSS propertymask CSS propertymask-border CSS propertymask-border-mode CSS propertymask-border-outset CSS propertymask-border-repeat CSS propertymask-border-slice CSS propertymask-border-source CSS propertymask-border-width CSS propertymask-clip CSS propertymask-composite CSS propertymask-image CSS propertymask-mode CSS propertymask-origin CSS propertymask-position CSS propertymask-repeat CSS propertymask-size CSS propertymask-type CSS propertymath-depth CSS propertymath-shift CSS propertymath-style CSS propertymatrix() CSS functionmatrix3d() CSS functionmax() CSS functionmax-block-size CSS propertymax-content CSS keywordmax-height CSS propertymax-inline-size CSS propertymax-width CSS property@media CSS at-rulemin() CSS functionmin-block-size CSS propertymin-content CSS keywordmin-height CSS propertymin-inline-size CSS propertymin-width CSS propertyminmax() CSS functionmix-blend-mode CSS propertymod() CSS function:modal CSS pseudo-class:muted CSS pseudo-class
N
Namespace separator<named-color> CSS type@namespace CSS at-rulenegative CSS at-rule descriptor (@counter-style)& nesting selector:not() CSS pseudo-class:nth-child() CSS pseudo-class:nth-last-child() CSS pseudo-class:nth-last-of-type() CSS pseudo-class:nth-of-type() CSS pseudo-class<number> CSS type
O
object-fit CSS propertyobject-position CSS propertyobject-view-box CSS propertyoffset CSS propertyoffset-anchor CSS propertyoffset-distance CSS propertyoffset-path CSS propertyoffset-position CSS propertyoffset-rotate CSS propertyoklab() CSS functionoklch() CSS function:only-child CSS pseudo-class:only-of-type CSS pseudo-classopacity CSS propertyopacity() CSS function:open CSS pseudo-class:optional CSS pseudo-classorder CSS propertyorphans CSS property:out-of-range CSS pseudo-classoutline CSS propertyoutline-color CSS propertyoutline-offset CSS propertyoutline-style CSS propertyoutline-width CSS propertyoverflow CSS propertyoverflow-anchor CSS propertyoverflow-block CSS propertyoverflow-clip-margin CSS propertyoverflow-inline CSS property<overflow-position> CSS typeoverflow-wrap CSS propertyoverflow-x CSS propertyoverflow-y CSS property<overflow> CSS typeoverlay CSS propertyoverride-colors CSS at-rule descriptor (@font-palette-values)overscroll-behavior CSS propertyoverscroll-behavior-block CSS propertyoverscroll-behavior-inline CSS propertyoverscroll-behavior-x CSS propertyoverscroll-behavior-y CSS property
P
pad CSS at-rule descriptor (@counter-style)padding CSS propertypadding-block CSS propertypadding-block-end CSS propertypadding-block-start CSS propertypadding-bottom CSS propertypadding-inline CSS propertypadding-inline-end CSS propertypadding-inline-start CSS propertypadding-left CSS propertypadding-right CSS propertypadding-top CSS property@page CSS at-rulepage CSS propertypage-orientation CSS at-rule descriptor (@page)paint() CSS functionpaint-order CSS propertypalette-mix() CSS function::part() CSS pseudo-element:past CSS pseudo-classpath() CSS function:paused CSS pseudo-class<percentage> CSS typeperspective CSS propertyperspective() CSS functionperspective-origin CSS property::picker() CSS pseudo-element::picker-icon CSS pseudo-element:picture-in-picture CSS pseudo-classplace-content CSS propertyplace-items CSS propertyplace-self CSS property::placeholder CSS pseudo-element:placeholder-shown CSS pseudo-class:playing CSS pseudo-classpointer-events CSS propertypolygon() CSS function:popover-open CSS pseudo-classposition CSS propertyposition-anchor CSS propertyposition-area CSS property<position-area> CSS type@position-try CSS at-ruleposition-try CSS propertyposition-try-fallbacks CSS propertyposition-try-order CSS propertyposition-visibility CSS property<position> CSS typepow() CSS functionprefix CSS at-rule descriptor (@counter-style)print-color-adjust CSS propertyprogress() CSS function@property CSS at-rule
Q
R
r CSS propertyradial-gradient() CSS functionrandom() CSS functionrange CSS at-rule descriptor (@counter-style)<ratio> CSS typeray() CSS function:read-only CSS pseudo-class:read-write CSS pseudo-classreading-flow CSS propertyreading-order CSS propertyrect() CSS function<relative-size> CSS typerem() CSS functionrepeat() CSS functionrepeating-conic-gradient() CSS functionrepeating-linear-gradient() CSS functionrepeating-radial-gradient() CSS function:required CSS pseudo-classresize CSS property<resolution> CSS typerevert CSS keywordrevert-layer CSS keywordrevert-rulergb() CSS functionright CSS property:right CSS pseudo-class:root CSS pseudo-classrotate CSS propertyrotate() CSS functionrotate3d() CSS functionrotateX() CSS functionrotateY() CSS functionrotateZ() CSS functionround() CSS functionrow-gap CSS propertyruby-align CSS propertyruby-overhang CSS propertyruby-position CSS property<rule-list> CSS typerx CSS propertyry CSS property
S
Selector listsaturate() CSS functionscale CSS propertyscale() CSS functionscale3d() CSS functionscaleX() CSS functionscaleY() CSS functionscaleZ() CSS function@scope CSS at-rule:scope CSS pseudo-classscroll() CSS functionscroll-behavior CSS property::scroll-button() CSS pseudo-elementscroll-initial-target CSS propertyscroll-margin CSS propertyscroll-margin-block CSS propertyscroll-margin-block-end CSS propertyscroll-margin-block-start CSS propertyscroll-margin-bottom CSS propertyscroll-margin-inline CSS propertyscroll-margin-inline-end CSS propertyscroll-margin-inline-start CSS propertyscroll-margin-left CSS propertyscroll-margin-right CSS propertyscroll-margin-top CSS property::scroll-marker CSS pseudo-elementscroll-marker-group CSS property::scroll-marker-group CSS pseudo-elementscroll-padding CSS propertyscroll-padding-block CSS propertyscroll-padding-block-end CSS propertyscroll-padding-block-start CSS propertyscroll-padding-bottom CSS propertyscroll-padding-inline CSS propertyscroll-padding-inline-end CSS propertyscroll-padding-inline-start CSS propertyscroll-padding-left CSS propertyscroll-padding-right CSS propertyscroll-padding-top CSS propertyscroll-snap-align CSS propertyscroll-snap-stop CSS propertyscroll-snap-type CSS propertyscroll-target-group CSS propertyscroll-timeline CSS propertyscroll-timeline-axis CSS propertyscroll-timeline-name CSS propertyscrollbar-color CSS propertyscrollbar-gutter CSS propertyscrollbar-width CSS property::search-text CSS pseudo-element:seeking CSS pseudo-class::selection CSS pseudo-element<self-position> CSS typesepia() CSS functionshape() CSS functionshape-image-threshold CSS propertyshape-margin CSS propertyshape-outside CSS propertyshape-rendering CSS propertysibling-count() CSS functionsibling-index() CSS functionsign() CSS functionsin() CSS functionsize CSS at-rule descriptor (@page)size-adjust CSS at-rule descriptor (@font-face)skew() CSS functionskewX() CSS functionskewY() CSS function::slotted() CSS pseudo-elementspeak-as CSS at-rule descriptor (@counter-style)speak-as CSS property::spelling-error CSS pseudo-elementsqrt() CSS functionsrc CSS at-rule descriptor (@font-face):stalled CSS pseudo-class@starting-style CSS at-rule:state() CSS pseudo-classsteps() CSS functionstop-color CSS propertystop-opacity CSS property<string> CSS typestroke CSS propertystroke-dasharray CSS propertystroke-dashoffset CSS propertystroke-linecap CSS propertystroke-linejoin CSS propertystroke-miterlimit CSS propertystroke-opacity CSS propertystroke-width CSS propertysuffix CSS at-rule descriptor (@counter-style)superellipse() CSS function@supports CSS at-rulesymbols CSS at-rule descriptor (@counter-style)symbols() CSS functionsyntax CSS at-rule descriptor (@property)system CSS at-rule descriptor (@counter-style)<system-color> CSS type
T
Type selectorstab-size CSS propertytable-layout CSS propertytan() CSS function:target CSS pseudo-class:target-after CSS pseudo-class:target-before CSS pseudo-class:target-current CSS pseudo-class::target-text CSS pseudo-elementtext-align CSS propertytext-align-last CSS propertytext-anchor CSS propertytext-autospace CSS propertytext-box CSS propertytext-box-edge CSS propertytext-box-trim CSS propertytext-combine-upright CSS propertytext-decoration CSS propertytext-decoration-color CSS propertytext-decoration-inset CSS propertytext-decoration-line CSS propertytext-decoration-skip-ink CSS propertytext-decoration-style CSS propertytext-decoration-thickness CSS property<text-edge> CSS typetext-emphasis CSS propertytext-emphasis-color CSS propertytext-emphasis-position CSS propertytext-emphasis-style CSS propertytext-indent CSS propertytext-justify CSS propertytext-orientation CSS propertytext-overflow CSS propertytext-rendering CSS propertytext-shadow CSS propertytext-size-adjust CSS propertytext-spacing-trim CSS propertytext-transform CSS propertytext-underline-offset CSS propertytext-underline-position CSS propertytext-wrap CSS propertytext-wrap-mode CSS propertytext-wrap-style CSS property<time-percentage> CSS type<time> CSS type<timeline-range-name> CSS typetimeline-scope CSS propertytop CSS propertytouch-action CSS propertytransform CSS propertytransform-box CSS property<transform-function> CSS typetransform-origin CSS propertytransform-style CSS propertytransition CSS propertytransition-behavior CSS propertytransition-delay CSS propertytransition-duration CSS propertytransition-property CSS propertytransition-timing-function CSS propertytranslate CSS propertytranslate() CSS functiontranslate3d() CSS functiontranslateX() CSS functiontranslateY() CSS functiontranslateZ() CSS functiontype() CSS function
U
Universal selectorsunicode-bidi CSS propertyunicode-range CSS at-rule descriptor (@font-face)unset CSS keywordurl() CSS function<url> CSS type:user-invalid CSS pseudo-classuser-select CSS property:user-valid CSS pseudo-class
V
:valid CSS pseudo-classvar() CSS functionvector-effect CSS propertyvertical-align CSS propertyview() CSS functionview-timeline CSS propertyview-timeline-axis CSS propertyview-timeline-inset CSS propertyview-timeline-name CSS property@view-transition CSS at-rule::view-transition CSS pseudo-elementview-transition-class CSS property::view-transition-group() CSS pseudo-element::view-transition-image-pair() CSS pseudo-elementview-transition-name CSS property::view-transition-new() CSS pseudo-element::view-transition-old() CSS pseudo-elementvisibility CSS property:visited CSS pseudo-class:volume-locked CSS pseudo-class
W
:where() CSS pseudo-classwhite-space CSS propertywhite-space-collapse CSS propertywidows CSS propertywidth CSS propertywill-change CSS propertyword-break CSS propertyword-spacing CSS propertywriting-mode CSS property
X
Y
Z
Selektoren
Die folgenden sind die verschiedenen Selektoren, die es ermöglichen, dass Stile bedingt auf verschiedenen Merkmalen von Elementen innerhalb des DOM basieren.
Grundlegende Selektoren
Grundlegende Selektoren sind fundamentale Selektoren; dies sind die einfachsten Selektoren, die häufig kombiniert werden, um andere, komplexere Selektoren zu erstellen.
- Universeller Selektor
* - Typselektor
elementname - Klassenselektor
.classname - ID-Selektor
#idname - Attributselektor
[attr=value]
Gruppierungsselektoren
- Selektorenliste
A, B -
Gibt an, dass sowohl
Aals auchBElemente ausgewählt werden. Dies ist eine Methode zur Gruppierung, um mehrere übereinstimmende Elemente auszuwählen.
Kombinatoren
Kombinatoren sind Selektoren, die eine Beziehung zwischen zwei oder mehr einfachen Selektoren herstellen, wie "A ist ein Kind von B" oder "A ist neben B", wodurch ein komplexer Selektor entsteht.
- Nachbarschafts-Kombinator
A + B -
Gibt an, dass die von
AundBausgewählten Elemente denselben Elternteil haben und dass das vonBausgewählte Element dem vonAausgewählten Element horizontal unmittelbar folgt. - Folge-Kombinator
A ~ B -
Gibt an, dass die von
AundBausgewählten Elemente denselben Elternteil teilen und dass das vonAausgewählte Element vor dem vonBausgewählten kommt, aber nicht unbedingt unmittelbar davor. - Kind-Kombinator
A > B -
Gibt an, dass das von
Bausgewählte Element das direkte Kind des vonAausgewählten Elements ist. - Nachfahr-Kombinator
A B -
Gibt an, dass das von
Bausgewählte Element ein Nachfahre des vonAausgewählten Elements ist, aber nicht unbedingt ein direktes Kind. - Spalten-Kombinator
A || BExperimentell -
Gibt an, dass das von
Bausgewählte Element innerhalb der vonAangegebenen Tabellenspalte liegt. Elemente, die sich über mehrere Spalten erstrecken, gelten als Mitglieder all dieser Spalten.
Pseudo
- Pseudoklassen
: -
Gibt einen speziellen Zustand der ausgewählten Elemente an.
- Pseudo-Elemente
:: -
Repräsentiert Entitäten, die nicht in HTML enthalten sind.
Siehe auch Selektoren in der Selektoren-Spezifikation und die Pseudo-Element-Spezifikation.
Konzepte
>Syntax und Semantik
Werte
Layout
DOM-CSS / CSSOM
>Wichtige Objekttypen
Wichtige Methoden
Siehe auch
- Mozilla CSS-Erweiterungen (mit dem Präfix
-moz-) - WebKit CSS-Erweiterungen (meistens mit dem Präfix
-webkit-)