Render HTML as an Image

前端 未结 9 2123
遥遥无期
遥遥无期 2020-11-27 18:19

I\'m generating a coupon based on dynamic input and a cropped image, and I\'m displaying the coupon using ntml and css right now, the problem is, printing this has become an

9条回答
  •  盖世英雄少女心
    2020-11-27 18:43

    Just set up your css properly, so that you have a css file targeted at the print medium. It is pretty easy to guarantee that the coupon will always be legible, without worrying about whether they have bg images on or not. Needlesly moving to an image doesn't make any sense, unless there is some reason you don't want it to be machine readable.

提交回复
热议问题