Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • Нет ответов
  • 1 имеет эту проблему
  • 12 просмотров
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