我读过几个论坛,但我必须错过一些东西。我基本上只是试图让我的CSS在某些页面上有某些东西。基本上我想改变主页为图片的全宽。如何让CSS只在特定的WordPress页面上工作?
我的孩子主题是我的CSS是这样的。
.site-content,
.fl-builder.home .page-section,
.front-page-widgets,
.breadcrumbs {
width: 1640px;
max-width: 100%;
margin: 0 auto;
}
.site-footer-area {
width: 1640px;
max-width: 80%;
margin: 0 auto;
}
现在的问题是我所有的网页,因为max-width
是100%,一切都触摸屏幕的边缘。我只想要这个主页。我检查了主页,并从该
<body id="top" class="admin-bar home is-singular logged-in page page-id-481 page-template page-template-_fullwidth page-template-page-template page-template-page-template_fullwidth-php customize-support">
我假设我page-id
是481的主页。
什么是最好的方法来解决这个问题,以便我的其他网页是正常的?
班'家'不是一个更好的候选人吗? – Boaz
尝试添加一个包含div的类到您想要更改的每个页面 – pQuestions123