开发者

How do you link to an image on a page using jQuery Mobile?

I have a page with a normal link to an image. When jQuery Mobile is loaded and you click on the link, all that is returned is 'undefined'.

How can you link to an image and have the image loaded when clicked?

edit: It's just a normal link with an image:

&开发者_开发问答lt;a href="picture.jpg" class="image"><img src="picture_thumbnail.jpg" /></a>


Seems to work when adding rel="external" to the <a> tag.

<a href="picture.jpg" class="image" rel="external">
  <img src="picture_thumbnail.jpg" />
</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜