我一直在尝试制作一个wordpress主题,并希望它更好。我已经在"style“属性中添加了一个背景图像,但Wordpress不显示它。下面是我的代码:
<p align='center' id='intro' style='align-content:center center;
font- size:5vh;padding-top:40vh;height:100vh; width:100vw; color:white;
font-family:"Times New Roman"; background-attachment:fixed;
background-image: url("images/jazz_lounge_intro.jpg");
background-color: #cccccc; background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed; background-size:cover;'>
Lorem Ipsum
</p>
发布于 2018-06-11 00:25:42
就像约翰尼斯评论的那样。
设置镜像的完整路径:
background-image: url("http://example.com/.../.../images/jazz_lounge_intro.jpg");
https://stackoverflow.com/questions/50785207
复制相似问题