简体   繁体   中英

jsreport with external css file

I'm using jsreport to render my html files to pdf. In these files, I refer to external css files. But it looks like that the phantom js doesn't like it and the css styling is not applied.
Any reason or idea on how to fix this problem?

Please check following:

  • is it working when you switch to html recipe?
  • is it a full absolute path to the external css?
  • isn't the css behind some authentication and your browser just has valid cookie which phantomjs doesn't?
  • isn't the css served over https? this should work, but could be a problem in some minor circumstances

Here you see it works in playground: https://playground.jsreport.net/#playground/bkHyoe7fle/3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM