css content

✔️ content CSS Style Property

המאפיין content משמש עם רכיבי ה-:before ו-:after פסאודו, כדי להוסיף תוכן שנוצר.

דוגמא: הגדרת תוכן

Demo Panel:
Lorem ipsum dolor sit amet
CSS: 111
HTML: 222
Syntax:

content: normal | none | counter | attr | string | open-quote | close-quote | no-open-quote | no-close-quote | url | initial | inherit;

Valid values:
  • normal, none, open-quote, close-quote, no-open-quote, no-close-quote, revert, revert-layer, unset, inherit, initial

Js Syntax: element.style.content

תאימות דפדפנים

content
הערך שנבדקChromeFirefoxEdgeCOpera
'⛅ '✔️✔️✔️✔️
normal✔️✔️✔️✔️
none✔️✔️✔️✔️
open-quote✔️✔️✔️✔️
close-quote✔️✔️✔️✔️
no-open-quote✔️✔️✔️✔️
no-close-quote✔️✔️✔️✔️
revert✔️✔️✔️✔️
revert-layer✔️✔️✔️✔️
unset✔️✔️✔️✔️
inherit✔️✔️✔️✔️
initial✔️✔️✔️✔️