Разбираемся в CSS
1715703008
Anonymous
Меня действительно беспокоят следующие проблемы:
[code] {{value}}
[/code]
И мой JS-код:
[code] {'background':'style="background-color:red;"' }
[/code]
Это приводит к тому, что [b]не удается выполнить 'setAttribute' для 'Element': 'style="background-color:red;"' не является допустимым именем атрибута .[/b]
Я пробовал вставлять только значения (style={{data{{) и т. д., но это даже невозможно запустить.
Подробнее здесь: [url]https://stackoverflow.com/questions/78479291/why-is-it-not-possible-to-use-spacebars-to-insert-a-style-for-an-html-element[/url]