【发布时间】:2011-08-06 05:30:32
【问题描述】:
我用过
<%= wicked_pdf_stylesheet_link_tag "pdf" %>
它在 html 中显示以下输出
<link href="/stylesheets/pdf.css?1302860585" media="screen" rel="stylesheet" type="text/css">
<link href="file:///home/likewise-open/NEXTBRIDGE/nazar.hussain/osd/development/atlantis/public/stylesheets/pdf" media="screen" rel="stylesheet" type="text/css">
但是在创建 pdf 时它没有任何样式。如果我将文件中的所有 css 复制到页面的标题,它包括所有样式。问题是什么以及如何解决。
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 ruby-on-rails-plugins wicked-pdf