# How do I customise the styling of "solved topics" in the main list?

**URL:** <https://meta.discourse.org/t/how-do-i-customise-the-styling-of-solved-topics-in-the-main-list/58379>\
**Category:** Support\
**Tags:** solved\
**Created:** [2015年六月30日 10:02 UTC](https://meta.discourse.org/t/how-do-i-customise-the-styling-of-solved-topics-in-the-main-list/58379 "2015-06-30T10:02:46Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ggurbet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ggurbet/32/120188_2.png) [@ggurbet](https://meta.discourse.org/u/ggurbet)\
**Post date:** [2021年三月9日 10:11 UTC](https://meta.discourse.org/t/how-do-i-customise-the-styling-of-solved-topics-in-the-main-list/58379/8 "2021-03-09T10:11:52Z")

</div>

> [@sam](#):
>
> 我从未为此添加过支持，但在实际的主题页面上，你可以轻松通过以下方式修改它：
> 
> ```plaintext
> .topic-post.accepted-answer .topic-body {
> background-color: #E9FFE0;
> }
> 
> ```

我认为在某个时间点，`.accepted-answer` 类已从该 `div` 中移除。能否将其加回来，以便我们可以为已采纳的答案帖子设置不同的样式？

在另一个主题中，@awesomerobot 提到该类已添加到首帖的引用中。但我未在帖子主体中找到它：

> [@Can we get a class added for styling?](https://meta.discourse.org/t/can-we-get-a-class-added-for-styling/111509/4?u=ggurbet):
>
> I agree that a class would be nice (I think we used to have something at some point in the past). I have a PR open to add the class .accepted-answer to the quote. update: this was merged and the class is available

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-customise-the-styling-of-solved-topics-in-the-main-list/58379)._
