受け入れられた回答の次の行は正しくありません。
子孫ボックスのテキスト装飾設定は、祖先ボックスのテキスト装飾を「元に戻す」ことはできません。
決して言わないでくださいね。
IE の解決策はまだ見つかりません (取り消し線が に設定されているシナリオで作業している場合を除きます<TD>
)。ただし、解決策の副作用と戦う必要がありますが、他のブラウザーでも可能です。
http://result.dabblet.com/gist/3713284/で自分の目で確かめてください。
要するにdisplay:table;
、子供のスタイルに追加するだけです。何らかの理由で FFtable
では 、block
、list-item
またはのいずれかを使用できますtable-caption
が、これらは Safari/Chrome では機能しません。
以下のコードを使用します。
<span style="text-decoration:line-through;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red;">Undesired strikethrough</a>
</span>
<div style="text-decoration:line-through;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red; display: table;">display: table in a div</a>
</div>
<span style="text-decoration:line-through;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red; display: table;">display: table in a span</a>
</span>
<span style="text-decoration:line-through; display: block;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red; display: table;">display: table in a span with "display:block;"</a>
</span>
<span style="text-decoration:line-through; display: table-cell;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red; display: table;">display: table in a span with "display:table-cell;"</a>
</span>
<span style="text-decoration:line-through;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red; display: list-item;">display: list-item</a>
</span>
<span style="text-decoration:line-through;">
Dead Text
<a href="#" style="text-decoration:underline;color:Red; display: table-caption;">display: table-caption;</a>
</span>