【问题标题】:Some website images don't work?某些网站图像不起作用?
【发布时间】:2016-09-20 02:59:48
【问题描述】:

http://astrobri.com/ - 对于这个网站,有些图片无法使用。 是一个 wordpress 网站,对于缓存,我使用 WP Fastest Cache 和这个设置和这个 .htaccess 规则:

# Image and Flash content Caching for One Month
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>

会是这个规则吗? 任何建议表示赞赏。 先感谢您。

【问题讨论】:

  • 添加 style.css .post img { opacity: 1 !important;}
  • 我投票决定搁置这个问题。但是,如果您可以删除链接并在问题本身中说明问题,那么我将撤回该投票。请记住,即使在问题得到解决后,我们仍希望此处的问题有意义 - 在这种情况下,只要您修复了网站,问题也可能会被删除。
  • 标签:黑色,白色,一栏,两栏,固定布局 */ .wpb_row, .wpb_content_element, ul.wpb_thumbnails-fluid > li, .last_toggle_el_margin, .wpb_button { margin-bottom : 0; } .meta-info .td-post-author-name,.td-module-meta-info .td-post-author-name { 显示:无; } .td-pb-row { margin-left: 0 !important; }
  • 上面我已经放了我的 style.css 内容..你能告诉我我应该放哪里吗:post img { opacity: 1 !important;}

标签: php wordpress image caching


【解决方案1】:

图像实际上正在加载。 CSS 防止它们被看见。可能在图像上执行动画的脚本没有正确加载。

@vrajesh 已经提出了一种解决方法:

.post img {
    opacity: 1 !important;
}

将此添加到style.css 以使图像可见。

【讨论】:

    【解决方案2】:

    通过禁用 WP Fastest Cache 插件的“Combine JS”选项解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多