所以我试图将CSS应用于wordpress中的单个页面,如果任何人都可以指导我以正确的方向工作,那将会很棒。在Wordpress上为单个页面编辑CSS
我有这样的主旋律css文件夹
.content h3 {
background-position: left top;
background-repeat: no-repeat;
border-bottom: 1px solid #e8e8e8;
color: #444;
font-family: Arial,Helvetica,sans-serif !important;
font-size: 21px !important;
font-weight: bold;
letter-spacing: 0;
line-height: 100%;
margin-bottom: 4px;
padding-bottom: 14px;
padding-left: 0;
padding-top: 4px;
text-transform: capitalize;
}
和我在CSS文件的底部已经把这个以实现单页
.page-id-437 .h3.gv-field-3-1{
background-position: left top;
background-repeat: no-repeat;
border-bottom: 1px solid #e8e8e8;
color: #444;
font-family: Arial,Helvetica,sans-serif !important;
font-size: 21px !important;
font-weight: bold;
letter-spacing: 0;
line-height: 100%;
margin-bottom: 4px;
padding-bottom: 14px;
padding-left: 0;
padding-top: 4px;
text-transform: capitalize;
}
任何帮助,将不胜感激谢谢
编辑:我应该补充一点.h3.gv-field-3-1是我想要编辑的特定字段,437是我想要进入的页面编号
当您在样式表底部为.page-id-437 .h3.gv-field-3-1添加样式时,您没有碰巧将其添加到媒体查询中,是吗?另外,你是否说这些款式不适用?你能通过应用!测试它吗?重要的;在每一个的结尾?如果那不显示你的风格,那么你没有正确选择它们(可能是因为它们没有这些类)。 – chdltest 2014-11-20 18:17:43