严格来说应该是可以的吧,将jpg转化成base64的格式,再套用svg的image元素 <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="612px" height="792px" viewBox="0 0 612 792" enable-background="new 0 0 612 792" xml:space="preserve"> <image overflow="visible" width="313" height="89" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATkAAABZBAMAAAC3TE4sAAAAJFBMVEUAAADzNkHzNkHzNkHzNkHz NkHzNkHzNkHzNkHzNkHzNkHzNkFiJUmrAAAAC3RSTlMAdy1EwWCUEdXprC7H6w8AAAaNSURBVGje 7Zk5j9NAFMcd5wLSxCzh2DQGRIHSOEQIUBqOCAFplkOAlCZc4nBjxCEQDVCAhJulACTSAAJRpMHO 5eR9Od6bsePYHgjYi9jCf60SKR57fvOueeOVUqVKlSpVqlSpUqXaPJIPSZtYW+GdtHmVAXgtbV61 YbZsyH5D+l/qgLVsiDnTpP+kJkyWL2D0pznWumVsMF1Xkh6t3vrNkGcwFSB/EQ3tL3qieH4lOV05 ewcAymJT0FdJZLuq8I4nAMclV/U2wFhNSncPUENRaBVNltA5mIisNBatB9yV7N/ZBpKVCO6ADqQX wTXmlSvs+yl7+hboCnJdbO4a3bGjxRZ8jZ69FhvtAV+g8/lI6EIe4Db/tphnVbkRjnYAEbMk0x0m sa0wS8KnuHDbgDS9ILikg8MZON0OHFYOOh1whEg19Oz9s6e3u4+B+DlcV5RD1aHoSsF1SX+Ao3RB BGUBBlJYY0SRtYCfx1IiVcVxq0OZX13tIVnrs6JsD++Ax6OxGM7tEi4hifgTzytq2HhIJ9fRo/Cm Yq4Lo0KL1sBwDuTgRzI605b29gXBe9OoAkzbFmKLkrMEjihhn28wHVh3QVw18/3P6rMBJa4h3N1E yMc3lC57GVCnL/yy/UO6giiyddG8Od/KipqULrNK5e5V5Te7TQ6fvmUiMrkHIqY7CtM1miEBXbYP 5/aA9tsF4NNLa5LcUCPl2hDRIVJdk+Td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wf/1FvVf/tmCeV/RKTruOoRMe8WXaDaq+iVBqEBbBOE1v7 yE+269F1Ybsg8yWxM3Em0pFk49E95kGbGzca1LQHjjBE1yUui7lO5QHGKsTBoRrNfK73Bo4ZhItW LDrZ5N1azjUFDAQv76p0MWO7HiTgPAVlxDxcrwzB+7AMZftfq3bK7ZM8Ot8l/u7ep4t5deHll2yI Xu8qqIYRffu9Y0V6Gitn93k+9Ois0GmVfc5/PGxIvWVGiJ5ea0CS4ovo5MauLKML13zd8neo1T/Z kmT4FEkYJwFdbXz+DADUQ3T5EWMcLM5jSctlaqGSConeGzdheFq5eEw8d+H5wjgMqeU6EHnJB6PE r7QzSx+SifdfkQItKr5421sEsJf5zIrXfEM5Ad2zgeuB9SUD76vxDi6OlECZiV/M/oWKyZ6rekV5 E0vWpFSpUqVKlSpVqlSpEusnAfUKw6seqLQAAAAASUVORK5CYII=" transform="matrix(1 0 0 1 150 351)"> </image> </svg>
严格来说应该是可以的吧,将jpg转化成base64的格式,再套用svg的image元素