# 无论 \<del\> 元素是作为块级还是内联元素使用，其 CSS 都应保持一致

**URL:** <https://meta.discourse.org/t/the-del-elements-css-should-be-consistent-irrespective-of-whether-it-is-acting-as-a-block-level-or-inline-element/416000>\
**Category:** Feature\
**Tags:** css\
**Created:** [2026 年10 月 28 日 16:43 UTC](https://meta.discourse.org/t/the-del-elements-css-should-be-consistent-irrespective-of-whether-it-is-acting-as-a-block-level-or-inline-element/416000 "2026-10-28T16:43:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)\
发布日期： [2026 年10 月 28 日 16:43 UTC](https://meta.discourse.org/t/the-del-elements-css-should-be-consistent-irrespective-of-whether-it-is-acting-as-a-block-level-or-inline-element/416000/1 "2026-10-28T16:43:08Z")

</div>

```html
<del>

This is content.

</del>

```

…变成了：

> ~~ 
> 
> This is content.
> 
> ~~

> ****
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/9/6/5/965687c4f39412e80d97d6d544138ead77610478.png)

……而我希望它等效于：

```html
<del>This is content.</del>

```

……其渲染效果为：

> ~~This is content.~~

> ****
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/4/6/f/46fe233fcac87ab897007be55031bb0ad9bba562.png)

我不知道为什么它的 CSS 的某些方面并不总是生效。这是预期的行为吗？

> ****
>
> [https://stackoverflow.com/questions/14398556/is-it-possible-for-an-inline-element-to-validly-have-a-block-level-element-desce#comment85955512\_16112295](https://stackoverflow.com/questions/14398556/is-it-possible-for-an-inline-element-to-validly-have-a-block-level-element-desce#comment85955512_16112295)
> 
> > ****
> >
> > > [@Stack Exchange 的 URI 预览在所有 Discourse 实例上均失败](https://meta.discourse.org/t/uri-previews-for-stack-exchange-have-failed-across-all-discourse-instances/415999?u=roke_julian_lockhart):
> > >
> > > 这是 Stack Exchange 方面的问题吗？我这样问是因为： [https://meta.stackexchange.com/questions/420226/external-websites-have-recently-become-unable-to-generate-hyperlink-previews-for#comment1391493\_420226](https://meta.stackexchange.com/questions/420226/external-websites-have-recently-become-unable-to-generate-hyperlink-previews-for#comment1391493_420226)
