SVG模式的替代方法,因为mPDF不支持

时间:2019-12-03 13:14:21

标签: svg design-patterns mpdf

我有这段代码:

  <svg
        width='350px'
        height='54px'
        xmlns='http://www.w3.org/2000/svg'
        version='1.1'
      >
        <defs>
          <pattern
            id='wireframe'
            x='0'
            y='0'
            width='54px'
            height='50px'
            patternUnits='userSpaceOnUse'
          >
            <rect
              x='2px'
              y='2px'
              width='46px'
              height='46px'
              fill='transparent'
              stroke='#e0e5ee'
              stroke-width='4'
            />
            <rect x='50' y='0' width='4px' height='50' fill='white' />
          </pattern>
        </defs>
        <rect x='0' y='0' width='324px' height='50' fill='grey' />
        <rect x='0' y='0' width='232px' height='50' fill='#f2b134' />
        <rect x='0' y='0' width='324px' height='50' fill='url(#wireframe)' />
      </svg>   

但是,由于mPDF脚本中没有模式标签的支持,是否有其他优雅的方法来制作进度正方形网格?

0 个答案:

没有答案
相关问题