html - 您如何修改帖子的 wordpress css?

标签 html wordpress css

所以,我使用 wordpress.com 来运行我的博客。我已经用自定义 CSS 支付了升级费用。现在我想更改首页上帖子的格式。我一直在 Chrome 上使用类似于 Firebug 的“检查元素”来查看所有内容的类别并更改 CSS。

除了帖子之外,它非常简单。每个帖子,显然都有自己的类(class)。

我最新的帖子属于 class="post-190"

然而,它之前的帖子是class="post-188" ETC... 你如何编写一个 CSS 来包含所有后-##

最佳答案

您可以使用这些属性选择器

[class|=post]
an element whose "class" attribute has a hyphen-separated list of values beginning (from the left) with "post"

[class^=post]
an element whose "class" attribute value begins exactly with the string "post"

Source

关于html - 您如何修改帖子的 wordpress css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11356215/

相关文章:

javascript - 剪裁动画的绝对 child

jquery - 点击链接后如何向下滑动?

css - 更改 RStudio 编辑器主题

css - openweb 图标与 font awesome 图标冲突

javascript - Fabricjs在 Canvas 中复制html

html - CSS 下拉菜单在 iPad 上无法正常运行

php - 更新wordpress sql中的两行

php - Wordpress - 使用媒体库获取图像

html - CSS 位置加载错误

css等高div block