在比萨的桌子边界

5 css django pisa css-tables

我正在尝试使用pisa在我的PDF中使用表格边框从我的html页面生成PDF.根据文档,我应该使用CSS在我的表中显示边框.然而,这没有成功.我可以在我的网页上看到边框,但是在生成的PDF上没有.有什么我错过或做错了吗?我在表中使用以下样式:

table { border: 1px solid #666666;  border-collapse:collapse; border-color:#ccc; }
td, th { border: 1px solid #666666; font-size:11px; line-height:13px; border-bottom:1px solid #666666; vertical-align:top; padding:5px; font-family:"Lucida Grande", Verdana, Arial, sans-serif; }
Run Code Online (Sandbox Code Playgroud)

小智 6

我得到答案之后忘记更新这个问题.... CSS应该在比萨将使用的HTML页面中.显然外部CSS样式表不起作用.希望有一天能帮到别人