【问题标题】:Remove arrow from the summary HTML从摘要 HTML 中删除箭头
【发布时间】:2020-07-16 19:49:14
【问题描述】:

有没有办法移除箭头,只留下我的自定义图像和 HTML 中的摘要代码?

这是我使用的代码:

<center>
<h1>
PASCAL LOTA</h1>
<details>
  <summary><img src="https://1.bp.blogspot.com/-Gqx6lkmLq_k/XoiKBHj5L9I/AAAAAAAAAi8/gohuLTm_RI8mHLSn5acQTeonA7RYSGyrwCLcBGAsYHQ/s1600/System%2Brequirements.png" /></summary>
   - by Refsnes Data. All Rights Reserved.<br />

  All content and graphics on this web site are the property of the company Refsnes Data.<br />

</details>
</center>

谢谢!

【问题讨论】:

标签: html


【解决方案1】:

您可以通过将标记的 CSS 属性更改为不显示来使其消失。所以箭头的名称是 details-marker,我们设置它的 display:none 以阻止它被绘制。 编辑:我添加了一些代码来阻止&lt;summary&gt; 在点击时突出显示蓝色,我认为它很难看所以我修复了它。

<style>
summary:focus {
outline:none !important
}
details > summary::-webkit-details-marker {
display:none;
}
</style>
<center>
<h1>
PASCAL LOTA</h1>
<details>
  <summary><img src="https://1.bp.blogspot.com/-Gqx6lkmLq_k/XoiKBHj5L9I/AAAAAAAAAi8/gohuLTm_RI8mHLSn5acQTeonA7RYSGyrwCLcBGAsYHQ/s1600/System%2Brequirements.png" /></summary>
   - by Refsnes Data. All Rights Reserved.<br />

  All content and graphics on this web site are the property of the company Refsnes Data.<br />

</details>
</center>

【讨论】:

  • 非常感谢朋友!是的,我也想删除蓝色突出显示!再次感谢!
  • Paolo,如果这回答了您的问题,请点击此答案箭头下方的透明复选标记,表示该帖子确实已得到回答。我很高兴我能帮忙:)
猜你喜欢
  • 2020-07-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-01-22
  • 2017-11-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多