html
Код: Выделить всё
Код: Выделить всё
let config = {
attributes: true,
// attributeFilter: ["style"],
};
let mutationCallback = function(mutationsList) {
mutationsList.forEach((mutation, i) => {
console.log(mutation);
});
};
let observer = new MutationObserver(mutationCallback);
observer.observe(document.querySelector('.exampleClass'), config);
Код: Выделить всё
document.querySelector(‘exampleClass’).style.top = '10px'
Подробнее здесь: https://stackoverflow.com/questions/699 ... esheet-css
Мобильная версия