douzhang6176 2016-09-12 11:26
浏览 89

如何在样式表Wordpress中链接背景图像?

.jumbotron {
    margin-bottom: 0px;
    background-image: url(../img/desktop-urania.jpg);
    min-height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

This is the working CSS in HTML, but i am trying to convert HTML to WordPress, while converting I link my stylesheet in function.php (function urania_script_enqueue() { wp_enqueue_style('customstyle', get_template_directory_uri() . '/css/urania.css', array( '$handle', '$src', '$deps', '$ver', '$media'), '1.0.0', 'all');)

but image is not loading ...

Theme Name URANIA:: -> Css-> urania.css (Stylesheet) Theme Name URANIA:: -> img -> desktop-urania.jpg (image)

Please Help

  • 写回答

2条回答 默认 最新

  • dpqy77560 2016-09-12 12:27
    关注

    Please check your image color mode if your image color mode is CMYK then it will not display on IE-8 you need to change the color mode to RGB.

    If your image color mode is correct then It would be better if you can share the actual site URL so that we can see the structure of site properly.

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器