Flying Saucer不会为以下HTML示例提供删除线:
<s><span style="color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 0);">This is a test </span></span>
</s>
但是,不使用背景颜色时,删除线会正确呈现。
当与背景颜色结合时,如何让飞碟渲染删除线?
6月6日更新
如果我在span标记内移动了标记<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 :(得分: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>
结果: