Problem while working with Jquery colorbox and dynamic images that reading via Aspx

前端 未结 2 612
悲哀的现实
悲哀的现实 2021-01-13 12:25

for showing full size images on my site I\'ve decided to use Jquery.colorbox , this pluging works well with static image location like :



        
相关标签:
2条回答
  • 2021-01-13 13:23

    Use colorbox's photo property. Example:

    $('a.example').colorbox({photo:true});

    The reason is that colorbox's regex to auto-detect image URLs is going to fail for that kind of URL (doesn't contain an image-type extension).

    0 讨论(0)
  • 2021-01-13 13:23

    Some ideas

    • Change the content type to "image/jpeg" (The caps might matter)

    • Add the following to the end of the url &thisisan.jpg (Some browsers will not create an image if they don't see this at the end of the url)

    • Test by putting the image url directly into the browser.

    0 讨论(0)
提交回复
热议问题