在此块中,
[details="Summary"]
This text will be hidden
[/details]
有两个 CSS 规则会使每个子元素或同级元素显示为 display: block:
details[open] > *, details[open] .lightbox-wrapper {
display: block;
}
details[open] > summary:first-of-type ~ *,
details.open > summary:first-of-type ~ * {
display: block;
}
这是一个问题,因为每个本应内联显示的元素都会显示为块级元素,占据所有宽度。例如 span 或链接。这些规则的目的是什么? ![]()
示例:
[details="Hidden"]
Enhanced image and comparison with the same halo on Earth:


Though Mars's atmosphere is composed of 95% of carbon dioxide (CO<sub>2</sub>), the halo was produced by water (H<sub>2</sub>O) ice crystal, hence the similarity with the common Earth 22° [halo](https://en.wikipedia.org/wiki/22%C2%B0_halo?oldformat=true). It's exactly the same, in fact.
[/details]
↓
Hidden
Enhanced image and comparison with the same halo on Earth:
Though Mars’s atmosphere is composed of 95% of carbon dioxide (CO2), the halo was produced by water (H2O) ice crystal, hence the similarity with the common Earth 22° halo. It’s exactly the same, in fact.
这里有 3 个内联元素:<sub> 和一个链接:
如果我们启用安全模式并禁用所有插件,即使我们没有安装自定义插件,问题也会消失:

try.discourse.org 的视频示例:



