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

toctan · December 04, 2013 · Last by boliang0508 replied at January 04, 2015 · 4616 hits

如图,在 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 里不显示,未启用时显示

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

You need to Sign in before reply, if you don't have an account, please Sign up first.