HTML/CSS background-image 图片加载成功但在 Chrome 里不显示,怀疑和 turbolinks 有关?

toctan · 2013年12月04日 · 最后由 boliang0508 回复于 2015年01月04日 · 4614 次阅读

如图,在 Chrome (Version 31.0.1650.57) 里,加载完成后刷新,在地址栏直接访问这个网址,或者禁用 JS 图片都能正常显示。另外,在 Safari 和另外一台 Ubuntu 上的 Chrome 28 图片能够正常显示。这是为什么啊?

不知道... 看一下 display, z-index 和 position ?

#1 楼 @luikore

display: block;
position: relative;

z-index 没设,也没有 overlap 的元素,我部署到 Heroku 上去又能正常显示啦,玄幻。 http://fora.herokuapp.com

同样问题,启用 turbolinks 后在 chrome 里不显示,未启用时显示

我觉得是没有宽高属性的问题

需要 登录 后方可回复, 如果你还没有账号请 注册新账号