Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Overwriting <img> "src" attribute with css "content" does not work

  • Žiadne odpovede
  • 1 má tento problém
  • 10 zobrazení
more options

Hello,

Seems there is some difference between Firefox and other browsers.

If you want to overwritethe src of an image, you can use "content" from css. In my case this is used for customerspecific styling, being done via CSS only, while the default image is provided directly over src attribute inside html.

https://jsfiddle.net/atXoR/qn4he25v/

This Problem appears in Firefox for Windows and Firefox for Android This Problem doesnt appear for Chromium', Firefox on IOs, Safari on IOs


Greetings, Stephan

Hello, Seems there is some difference between Firefox and other browsers. If you want to overwritethe src of an image, you can use "content" from css. In my case this is used for customerspecific styling, being done via CSS only, while the default image is provided directly over src attribute inside html. https://jsfiddle.net/atXoR/qn4he25v/ This Problem appears in '''Firefox for Windows''' and '''Firefox for Android''' This Problem doesnt appear for Chromium', Firefox on IOs, Safari on IOs Greetings, Stephan