我有一个ID页面为“ 68”的页面,我想更改此页面的背景。
我已经尝试过,但是不起作用...
.page-id-68 > img#fsb_image {
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
z-index: 0;
}
或此
.page-id-68 {
background-image:url(https://laportedessecrets.fr/wpcontent/uploads/202003/Photo-escalier-livre.jpg);
background-repeat: no-repeat;
}
你有什么想法吗?
您可以使用此代码:
.post-id-68 {
background: #000000;
}
或如果您想在背景中添加图像,则可以使用:
.post-id-68 {
background: url('image path');
}
or
.post-id-68 {
background-image: url('image path');
}
也尝试一下吗?
body.post-id-68 {
background: url('image path');
}