2017-05-31 52 views
0

飛碟不會呈現以下HTML樣本刪除線:飛碟不渲染背景顏色和刪除線

<s><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 0);">This is a test </span></span> 
</s> 

只有背景色和彩色文本顯示在生成的PDF: enter image description here

但是,不使用背景顏色時可正確呈現刪除線。

如何將飛碟與背景顏色結合使用時顯示刪除線?

更新6月6日

如果我提出罷工標籤<s>跨度標籤內,然後它的工作原理:

<span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 0);"><s>This is a test</s></span></span> 
+0

難道這是與舊版本的CSS支持的? –

回答

0

有可能是在你的CSS問題。

這裏是顯示刪除線與飛碟工作(9.1.1)的例子:

<html> 
<head> 
    <style> 
     span { 
      color: rgb(255, 0, 0); 
      background-color: rgb(255, 255, 0); 
     } 
     span.decorated { text-decoration: line-through;} 
    </style> 
</head> 
<body> 
    <span>Without strikethrough</span> 
    <span class="decorated">With strikethrough</span> 
</body> 
</html> 

結果:

Result with thrikethrough

+0

謝謝,但在我的情況下,輸入只是內聯CSS。請參閱我的問題中的示例代碼 –