【发布时间】:2016-11-21 21:30:30
【问题描述】:
我已将图像上传到服务器。图片地址是http://localhost:8080/wordpress/wp-content/uploads/2016/07/radio.png
我已经使用了这个 CSS :
input[type=radio]:not(old) + label:after{
content: '';
position: absolute;
top: 0;
left: 23px;
width: 100%;
height: 100%;
z-index: -1;
background : url('radio.png') no-repeat 0 0;
}
但图像未显示在 WordPress 页面上。它在我的简单 HTML 页面中工作,但在 wordpress 上不起作用?有什么想法吗?
在单选按钮 Js fiddle 中使用:https://jsfiddle.net/sjx84jf8/
它在这里工作,但不在 wordpress 上
【问题讨论】:
-
你能分享你的 url 在哪里构建 wordpress 项目吗?
-
@MukeshRam 它没有上传到服务器上。我正在我的本地主机上工作
-
@MukeshRam 请检查此链接s31.postimg.org/ui9ho34qj/zzzzzzzzz.png
-
我认为这可能是
z-index问题。请尝试在 .input[type=radio]:not(old) + label:after class... 中添加z-index:1或更多内容...可能是它的工作.. -
@MukeshRam 我已经更新了完整的 CSS,请检查
标签: css wordpress html radio-button