# 为帖子部分创建自定义CSS样式的最佳实践？

**URL:** <https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904>\
**Category:** Development\
**Created:** [2024 年6 月 27 日 03:02 UTC](https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904 "2024-06-27T03:02:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![Isaac.Eiland-Hall](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac.eiland-hall/32/427514_2.png) [@Isaac.Eiland-Hall](https://meta.discourse.org/u/Isaac.Eiland-Hall)\
发布日期： [2024 年7 月 3 日 02:33 UTC](https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904/4 "2024-07-03T02:33:02Z")

</div>

> [@david](#):
>
> I’d recommend looking at [Generic bbcode wrapper for theme components](https://meta.discourse.org/t/generic-bbcode-wrapper-for-theme-components/123516)

哦，看起来很不错。谢谢你的指点！

> [@david](#):
>
> Can’t think of anything based on what you’ve shared here.

我本来就没指望能有什么答案。但以防万一有什么显而易见的问题。哈哈。

> [@Alteras](#):
>
> Checking the embed code

我……真是傻得谷歌……哎呀。我一直纠结于组件的方向，确保我正确地输入了包括大写字母在内的名称，但我甚至没有想到去检查谷歌实际使用的名称。哎呀。

为了记录，加载正确的字体名称并引用正确的字体名称会产生最初预期的结果。

现在我可以“签名”我的帖子了：

 ![](https://global.discourse-cdn.com/meta/original/4X/5/3/a/53a8be2aad51c146d8711cac5373bcbc9be55039.png)  
谢谢 🙂

---

_[View the full topic](https://meta.discourse.org/t/best-practices-for-creating-custom-css-styles-for-sections-of-posts/313904)._
