dousuize3082 2012-05-15 17:55
浏览 23

试图将php文件(带有图片标签)加载到fancybox中

I recently needed to load images into a Fancybox and count them as they were displayed so I could know how many times each one was viewed. I was able to find an answer through here but when looking at it again today it looks like the width is not autosizing. Yesterday it must have been cached thats why it seemed ok. I look at the source through firebug and can clearly see that the width is 0, the odd thing is the height adjusts each time I click next or previous going through the gallery. The answer yesterday was to load a php file into the fancybox, count the image and then display the image. Any ideas on how to get the autosize width to work with this method?

  • 写回答

1条回答 默认 最新

  • duanqu9292 2012-05-19 03:59
    关注

    Is the php file loading the image and sending the image headers after you count the image or ae you using html code to display? ie '' If it is the latter you should be sending the image headers and fancybox should read them then adjust the window size automatically.

    评论

报告相同问题?

悬赏问题

  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 Macbookpro 连接热点正常上网,连接不了Wi-Fi。
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程