【发布时间】:2020-06-07 04:00:28
【问题描述】:
所以我试图在 WordPress 中通过我的主页显示图像。我可以通过 css,通过小部件显示它,但不能通过将其作为代码添加到我的主页。
我已经尝试应用 z-index,因为我有一个在该部分显示文本图像的元素,但什么都不会显示。
图片html
<div class="fbfp"><img src="http://4309.co.uk/wp-content/uploads/2020/06/IMG_20200601_134623-300x279.jpg" alt="" width="300" height="279" class="size-medium wp-image-16023" /></div>
和html控制主页。
<section class="content-
area pt0 "><div id="main"
class="" role="main">
<div
id="shapely_home_parallax-
2" class="widget
shapely_home_parallax">
<section class="cover
fullscreen image-bg">
<div class="parallax-window
fullscreen" data-
parallax="scroll" data-
image-
src="http://4309.co.uk/wp-
content/uploads/2019/0
8/download-2.png" data-ios-
fix="true" data-over-
scroll-fix="true" data-
android-fix="true">
<div class="align-
transform">
<div class="row">
<div class="top-parallax-
section">
页面here
在 WordPress 中应该是直截了当的,因为您只需将代码添加到页面上的文本编辑器中。
CSS
.fbfp {position:relative; bottom:300px;z-index: 100;}
parallax-window 是我认为的操作部分。
【问题讨论】:
-
在您的网页代码 HTML 中看不到此图像
-
在此处和现场更新代码并重新发布。现在?
-
请澄清您的问题。您的代码中有 IMG_20200601_134623-300x279.jpg。
-
应该有。我刚刚发布了它,但它不会显示。为什么不呢?
-
刷新页面,页面,尝试不同的浏览器 - 仍然没有