?
This document uses PHP Chinese website manual Release
已廢棄
此功能已過時。雖然它可能在某些瀏覽器中仍然有效,但由于可以在任何時候刪除它,所以不鼓勵使用它。盡量避免使用。
HTML<strike>
元素(或者 HTML 刪除線元素)在文本上放置刪除線。
使用注解:這個元素在 HTML4 和 XHTML1 中廢除了,并且在 HTML5 中移除。如果語義上合適的話(也就是如果表示刪除的內容),使用 <del>
來代替。在所有其它的情況中,使用<s>
。
這個元素僅僅包含 全局屬性
這個元素實現(xiàn)了 HTMLElement
接口。
實現(xiàn)注解:直到 Gecko 1.9.2(包含),F(xiàn)irefox 為這個元素實現(xiàn)了 HTMLSpanElement
接口。
<strike>Today's Special: Salmon</strike> SOLD OUT<br /><s>Today's Special: Salmon</s> SOLD OUT
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes)1 | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes)1 | (Yes) | (Yes) | (Yes) |