B
B
B0nG2015-07-06 17:52:38
css
B0nG, 2015-07-06 17:52:38

Correct display of SVG in OPERA12?

Hello everyone, there is a problem with SVG in older browsers. The whole site was laid out, SVG was included in CSS using background-image, and the desired element from SVG was selected through background-position. When the check for cross-browser compatibility began, SVG fell off. It was decided to use, but how to use it is not clear. How to select the desired element from the entire SVG through this object?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-07-06
@IonDen

If you really need it.
Checking for the old opera:

if (window.opera) {
    $("html").addClass("oldOpera");
}

Instead of svg for icons, we use, for example, a sprite of png icons only for the old opera:
.oldOpera .icon {
    background: url(...);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question