gpt4 book ai didi

html - 如何将我想要的内容从 Inspect Element 转移到 CSS 面板?

转载 作者:行者123 更新时间:2023-11-28 06:33:04 25 4
gpt4 key购买 nike

我想更改此 Div 以将 margin-bottom 增加到 15px。我已经在 Inspect 元素中完成了它,但我不知道如何在我正在处理的 wordpress 网站上改变它。

这是检查元素中的 Div 和样式。如您所见,我已经将 margin-bottom 设置为 15px。我想我遇到的问题是我不确定要调用什么(div 或类)而且我不知道如何调用。

我试过 .vc_column-inner vc_custom_1453133443161{style}#vc_column-inner vc_custom_1453133443161{style} 但都没有用。

media="all"
#site #content div > :last-child, #site #content aside > :last-child, #site #content article > :last-child, #site #content div > p:last-of-type {
margin-bottom: 15px;
}
<div class="vc_column-inner vc_custom_1453133443161">

谢谢

最佳答案

.vc_column-inner.vc_custom_1453133443161 {margin-bottom: 15px;}

您缺少 vc_custom 上的第二个(点),这是一个单独的类。当您以具有多个类的元素为目标时,每个类应该一个接一个地直接进行

.vc_column-inner.vc_custom_1453133443161

类之间没有空格,否则您将以另一个元素为目标。

关于html - 如何将我想要的内容从 Inspect Element 转移到 CSS 面板?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34874742/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com