स्वीकार किए जाते हैं जवाब में निम्न पंक्ति गलत है:
एक वंशज बॉक्स पर कोई भी पाठ सजावट सेटिंग "पूर्ववत करें" कभी नहीं कर सकते हैं एक पूर्वज बॉक्स के पाठ सजावट।
कभी कभी नहीं, सही कहा?
मुझे नहीं है, फिर भी IE के लिए एक समाधान मिल गया है, लेकिन यह अन्य ब्राउज़र के लिए संभव है (जब तक आप एक परिदृश्य में जहाँ स्ट्राइकथ्रू एक <TD>
पर सेट किया गया है के साथ काम करने के लिए हो) यद्यपि आप पक्ष लड़ाई के लिए होगा समाधान के प्रभाव।
http://result.dabblet.com/gist/3713284/
संक्षेप में खुद के लिए देखें: सिर्फ बच्चे की शैली के लिए display:table;
जोड़ें। एफएफ में किसी कारण से आप table
, block
, list-item
या table-caption
लेकिन इनमें से किसी का उपयोग सफारी/क्रोम में काम नहीं करते कर सकते हैं।
<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