Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 FF 和 IE 时,我可以看到图库中的所有图像。但是当我使用谷歌浏览器时,我看不到任何图像。我想这个问题起源于 jquery 和 xml 文件。有我的config.xml有什么问题,我该如何解决这个问题?
首先,作为健全性检查:不,您的 XML 配置文件没有任何明显错误。
检查 Chrome 和 Safari 中提供的页面显示(a)您的问题是可重现的(哇!)和(b)在 Chrome 中,img图库中的第一个元素带有一个属性读取
img
style="width: 0px; height: 0px; opacity: 0.6;"
我看到第二个img没有opacity设置,但确实有widthandheight设置为 0px。
opacity
width
height
找到为图像设置高度和宽度的代码;它似乎很可能是罪魁祸首。