如何仅更改博主第一篇文章的CSS

How to change CSS of blogger's first post only?

本文关键字:一篇 文章 CSS 何仅更      更新时间:2023-09-26

我想只更改我博客第一篇文章的CSS(digitalsorify),使其看起来像赫芬顿邮报而不使用jquery。

回答标题(使用 CSS):

.wrapfullpost:first-child {
    /* put first post style here */
}

你可以做这样的事情:

#content-wrapper { padding-top: 400px;}
.wrapfullpost:first-child { position: absolute;margin-top: -400px;}

这看起来像这样 https://i.stack.imgur.com/lFWQA.png 经过我的操纵。