# 使用您自己的样式自定义帖子的内容

**URL:** https://meta.discourse.org/t/customize-posts-contents-with-your-own-styles/257738
**Category:** Developer Guides
**Tags:** css
**Created:** [2023年三月10日 18:18 UTC](https://meta.discourse.org/t/customize-posts-contents-with-your-own-styles/257738 "2023-03-10T18:18:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2023年三月10日 18:34 UTC](https://meta.discourse.org/t/customize-posts-contents-with-your-own-styles/257738/2 "2023-03-10T18:34:21Z")

</div>

感谢 @Canapin

一个使用这些概念的主题组件的优秀示例是这个：

> [@Discourse Coloured Text](https://meta.discourse.org/t/discourse-coloured-text/218111?u=merefield):
>
> “BBCode-lite” without the need to install a plugin … Adds a simple control (palette icon) to the Composer to facilitate colouring of the foreground and background of text Select a word or text Hit the palette control It will be wrapped like so: [wrap=color color=# bgcolor=#]word[/wrap] Replace the #s with html-compatible colour names, e.g. “red”, “grey” … experiment.biohazard NB Same caveats apply as to BBCode: can be used to hide text. Credits Uses @j.jaffeux’s [Generic bbco…](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)

---

_[View the full topic](https://meta.discourse.org/t/customize-posts-contents-with-your-own-styles/257738)._
