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
Patricia ArquetteOriginal
2024-12-24 14:41:15740browse

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;

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!

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