繁体   English   中英

Highslide无法在颜色框(iframe模式)中扩展图像(全屏尺寸)

[英]Highslide cannot expand image(full screen size) in colorbox (iframe mode)

我使用Colorbox(iframe模式)制作了弹出层,并且Colorbox的iframe具有HTML页面。
我在HTML页面中添加了Highslide。

这是Colorbox的代码

$("a.colorbox_photo_view").colorbox({
  iframe:true, 
  width:"600",
  height:"800",
  scrolling:true,
  overlayClose:false,
  escKey:false,
  opacity:0.7
});

HTML页面(在Colorbox的iframe中)具有此HTML代码。

<a href="photo.jpg" class="highslide" onclick="return hs.expand(this)">
  <img src="photo.jpg" width="550px"></img>
</a>

实际上,photo.jpg的宽度为3648px,高度为2056px

当我单击照片时,无法在监视器的全屏(1280x1024)上扩展照片。
只是在iframe尺寸中扩展为width(600px)。

如何在Colorbox弹出图层中使照片扩展到显示器的全屏显示?

这是不可能的。 iframe中的页面不能扩展到该iframe的大小以外。 尝试使用另一种加载颜色框的方法-例如在div中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM