Home > Web Front-end > CSS Tutorial > Why Isn't My SVG Data URI Displaying as a Background Image in My Pseudo-element?

Why Isn't My SVG Data URI Displaying as a Background Image in My Pseudo-element?

Patricia Arquette
Release: 2024-12-24 14:41:15
Original
771 people have browsed it

Why Isn't My SVG Data URI Displaying as a Background Image in My Pseudo-element?

SVG Data Image Not Behaving as Background Image in Pseudo Element

When attempting to set an SVG as a background image for a pseudo element using the following code, it fails to display in Firefox:

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

The above is the detailed content of Why Isn't My SVG Data URI Displaying as a Background Image in My Pseudo-element?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template