css - 在单页wordpress上更改图像背景
问题描述
我有一个 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');
}
推荐阅读
- sql - sql server中数值改变精度时如何解决问题
- bash - 计算每列中非空条目的数量,例如 comm 输出
- amazon-s3 - 在 GStreamer 中,我使用“s3src”将 mp4 从 Amazon S3 获取到我的计算机。为什么文件大小发生了变化?
- javascript - 从子文件夹导入动态 Vue
- asp.net-core - 如何读取字符串数据并仅从中获取数字并将其存储在列表中
- c - 重新排序双精度类型数据
- sql - 如何在 SWITCH 语句中设置范围?
- python - 用 Python 替换 JSON 文件中的字符。由于大文件(超过 1 GB)而导致编辑问题
- ios - NWConnection 发送多个数据报
- python - 比 iterrows 迭代 df 并设置另一个列值的更好方法