我正在使用h3标签并在该h3上调用:before伪元素。在:before伪元素中我使用的是content属性。在该内容属性中,我有一个指向我在文件中使用的svg的链接。
是否有可能或不可能控制内容属性中使用的svg的宽度?
html看起来像这样:
<h3>A Thank You Email and Postcard</h3>
<div>
<p>
Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
</p>
</div>
css看起来像这样:
h3:before {
content: url("somesvg.svg");
/* Is it possible to change the width of the svg above without using an actual img tag before the element? */
}