# 始终显示图像标题

**URL:** https://meta.discourse.org/t/always-display-image-title/255817
**Category:** Support
**Created:** [2023年二月21日 17:49 UTC](https://meta.discourse.org/t/always-display-image-title/255817 "2023-02-21T17:49:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [2023年二月21日 17:49 UTC](https://meta.discourse.org/t/always-display-image-title/255817/1 "2023-02-21T17:49:37Z")

</div>

我正在尝试清理图片的`.meta`，使它们更整洁并始终显示；我在所有方面都成功了，除了让标题始终显示。

这是我目前为止所做的，只有在鼠标悬停在图片上时才有效：

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/3/6/836b83ce820087fef0057ce513b5ae7e7d352aa3.jpeg)

使用此 CSS：

```css
.meta .informations {
    display: none;
}

.meta {
    background: rgba(0, 0, 0, 0);
    color: white;
    justify-content: center;
    position: relative;
}

.discourse-no-touch a.lightbox:hover {
    box-shadow: none;
}

.meta .d-icon {
    display: none;
}

.meta .filename {
    white-space: normal;
}

```

编辑：我解决了长标题换行的问题，并更新了代码，供其他想要这样做的人参考。
