허용 대답에 다음 줄이 잘못되었습니다 :
는
자손 상자의 모든 텍스트 장식 설정은 조상 상자의 텍스트 장식을 "취소하지"않을 수 있습니다.
결코 절대로 말하지 마시시겠습니까? 그러나 그것은 다른 브라우저 가능한이다 (당신은 취소 선이 <TD>
에 설정되어있는 시나리오로 작업 할 일이없는 한)은 측면 전투를해야합니다 있지만
나는 아직 IE에 대한 해결책을 발견하지 않았습니다 - 솔루션의 효과.
은 한마디로 http://result.dabblet.com/gist/3713284/
에서 자신에 대한 참조 : 바로 아이의 스타일에 display:table;
을 추가합니다. 어떤 이유로 FF로 table
, block
, list-item
또는 table-caption
중 하나를 사용할 수 있지만 Safari/Chrome에서는 작동하지 않습니다.
: 블록 절대, 그것은 모두 크롬과 FF 작동합니다
<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>
어. 그것이 내가 두려워했던 것입니다. 대답과 링크를 주셔서 감사합니다. – JPero
사실, 특정 상황 하에서는 * 가능합니다! 아래에 내 대답에 대한 자세한 설명을 추가했습니다 :-) – Potherca