# 页面发布

**URL:** https://meta.discourse.org/t/page-publishing/151971
**Category:** Site Management
**Tags:** how-to, page-publishing, content
**Created:** [2020年五月19日 18:56 UTC](https://meta.discourse.org/t/page-publishing/151971 "2020-05-19T18:56:39Z")
**Posts on this page:** 1
**Showing post:** 149

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [2023年二月8日 01:31 UTC](https://meta.discourse.org/t/page-publishing/151971/149 "2023-02-08T01:31:27Z")

</div>

感谢 @Canapin 💖 我已修复代码中的拼写错误。

类别和子类别也可以通过使用 **category-** 在 CSS 中使用

例如…

```plaintext
.category-books .main-content,
.category-my-great-book .main-content {
    width:100% !important;
}

```

我还在我的网站上广泛使用了这个技巧，用于在编辑器中即时设置内容和嵌入内容的样式…

> [@Custom css inside a post / adding custom classes](https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072/3):
>
> Styles/classes are stripped out, but you can use data-theme-\* attributes to target things in posts: \<div data-theme-bot\> Content here \</div\> For example, this paragraph is wrapped in a data-theme-bot div And then in a theme, target it like: div[data-theme-bot] { background-color: red; }

我的网站有一个部分记录我的开发（主要是为了让我未来的自己能够回忆起并找到我已经完成的工作，这样我就不必继续重复发明轮子了！）但欢迎任何人访问或订阅该类别，如果你愿意…

> **[Site Development](https://noobish.me/c/site-development/2)**
>
> Here I document and share my daily process as I organize and build this site.

---

_[View the full topic](https://meta.discourse.org/t/page-publishing/151971)._
