所以,我使用 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"
关于html - 您如何修改帖子的 wordpress css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11356215/