如何在div中设置文章样式?

问题描述 投票:-2回答:1

如何在div中设置文章样式?

边框现在跨越3列div的整个宽度,但我希望三篇文章中的每一篇都有一个单独的边框。

我试过这个,但没有运气。

#bloghomesection article {
    border-radius: .3125em;
    border: 0 solid #D8D8D8;
    border-bottom-width: 3px;
    min-height: 400px;
}
html css wordpress
1个回答
0
投票

尝试使用此样式设置CSS: -

.fusion-posts-container > article

所以你的CSS看起来像:

.fusion-posts-container > article {
    border-radius: .3125em;
    border-bottom: 3px solid #D8D8D8;
    min-height: 400px;
}

这将针对每篇文章。

谢谢,斯科特

© www.soinside.com 2019 - 2024. All rights reserved.