A
A
Anton2017-03-22 12:49:37
JavaScript
Anton, 2017-03-22 12:49:37

how to change class in svg?

Good day everyone!
Tell me how to change the class inside the object svg, no matter what, js or (css if possible).

<div class="panel-image-svg">
    <div class="panel-image-item">
        <object type="image/svg+xml" data="theme/images/svg/figura_22.svg" class="test"></object>
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tvsjke, 2017-03-22
@Ooos

https://benfrain.com/selecting-svg-inside-tags-wit...
Features: when our object is loaded, we write its context to a variable, and work with it as with an inline esvege

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question