简体   繁体   English

带有浏览器大小的 Highslide 收缩弹出窗口

[英]Highslide shrink popup with browser size

Am using Highslide with liquid layout.我正在使用具有液体布局的 Highslide。 How can I change code to have popup size to a percentage of browser window?如何更改代码以将弹出窗口大小设置为浏览器窗口的百分比?

You can't use percentage for the size of a Highslide popup.您不能使用百分比作为 Highslide 弹出窗口的大小。

  • A regular Highslide image popup will show the image in its full size, but the image will shrink to fit the viewport if the image is larger than the viewport and allowSizeReduction is true (default setting).常规的 Highslide 图像弹出窗口将显示完整尺寸的图像,但如果图像大于视口且allowSizeReduction为 true(默认设置),则图像将缩小以适应视口。
  • If useBox is true, you need a fixed width and height (in px) for the image area.如果useBox为 true,则图像区域需要固定的宽度高度(以 px 为单位)。
  • HTML popups needs a fixed width. HTML 弹出窗口需要固定的宽度。 Default width is 400px.默认宽度为 400 像素。

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

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