Home >Web Front-end >CSS Tutorial >Why Doesn't My SVG Background-Image Display in Firefox's Pseudo-Element?

Why Doesn't My SVG Background-Image Display in Firefox's Pseudo-Element?

Susan Sarandon
Susan SarandonOriginal
2024-12-24 11:18:10281browse

Why Doesn't My SVG Background-Image Display in Firefox's Pseudo-Element?

SVG Data Image not Displaying as Background-Image in Pseudo Element on Firefox

When assigning an SVG as a background-image for a pseudo element, as demonstrated below:

content: '';
position: absolute;
 right: 0;
bottom: 0;
  left: 0;
width: 100%;
height: 12px;

The above is the detailed content of Why Doesn't My SVG Background-Image Display in Firefox's Pseudo-Element?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn