Squarespace iframe导致不显示横幅图像。

问题描述 投票:1回答:1

所以我有一个banner图片作为squarespace的模板的一部分,我也在我的文章中使用了iframe,但是当我这样做的时候,它导致图片不显示。我看到img元素上有一个data-src属性,但是src属性没有被设置。

<img data-src="http://static1.squarespace.com/static/52f67893e4b087ee0883a2e0/t/5500dd5ce4b0a4b6b53c65d3/1426120064231/IMG_2466.jpg" data-image="http://static1.squarespace.com/static/52f67893e4b087ee0883a2e0/t/5500dd5ce4b0a4b6b53c65d3/1426120064231/IMG_2466.jpg" data-image-dimensions="2500x1339" data-image-focal-point="0.5,0.5" alt="IMG_2466.jpg">

有谁知道为什么会发生这种情况,为什么iframe会导致这种情况?在其他没有iframe的页面上也能正常工作。

受影响的页面在这里。

http:/www.typeatrips.combarcelona-spain

html css iframe squarespace
1个回答
0
投票

试着把宽度换成'width="99%',我本来是100%的,也遇到了同样的问题(页面上没有出现imagescontent,但当我删除iframe后又重新出现了),把宽度缩小1%就解决了!不知道为什么,但确实如此。

© www.soinside.com 2019 - 2024. All rights reserved.