Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
顶部和左侧站点上的svg阴影不存在_Svg_Shadow - Fatal编程技术网

顶部和左侧站点上的svg阴影不存在

顶部和左侧站点上的svg阴影不存在,svg,shadow,Svg,Shadow,我有一个svg,它包含一个大的D,我想要一个css文本阴影效果而不使用css。只有svg。我使用过滤器创建阴影,但它位于顶部,左侧站点不存在。我怎样才能解决这个问题 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 744 810"> <g id="d.svg" transform="matrix(

我有一个svg,它包含一个大的D,我想要一个css文本阴影效果而不使用css。只有svg。我使用过滤器创建阴影,但它位于顶部,左侧站点不存在。我怎样才能解决这个问题

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 744 810">
  <g id="d.svg" transform="matrix(5.0625,0,0,5.0625,-572.7171,-1538.5939)">
    <defs>
      <filter id="shadow" x="0" y="0" width="200%" height="200%">
        <feOffset result="offOut" in="SourceGraphic" dx="0" dy="0" />
        <feColorMatrix result="matrixOut" in="offOut" type="matrix"
        values="0.2 0 0 0 0 0 0.2 0 0 0 0 0 0.2 0 0 0 0 0 1 0" />
        <feGaussianBlur result="blurOut" in="matrixOut" stdDeviation="10" />
        <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
      </filter>
    </defs>
    <path filter="url(#shadow)"
       d="m 239.92578,383.47837 q 0,31.72851 -18.10547,48.60351 -18.01758,16.875 -52.11914,16.875 l -36.38672,0 0,-128.49609 40.3418,0 q 31.46484,0 48.86719,16.61133 17.40234,16.61132 17.40234,46.40625 z m -28.30078,0.70312 q 0,-41.39648 -36.5625,-41.39648 l -14.50195,0 0,83.67187 11.68945,0 q 39.375,0 39.375,-42.27539 z" />
  </g>
</svg>

请参阅此代码笔:

将过滤器x和y属性设置为负数,例如-20%,即