Jquery Mobile升级到标题上的1.4链接按钮

时间:2014-01-15 01:54:36

标签: jquery jquery-mobile

我使用jquery mobile 1.3创建了一个应用程序,但当时我想在标题的右侧放置一个小按钮图像。所有我需要它使用jquery移动版本1.3是这个

<a data-role="none" href="#ThisMap"><img src="../locaimages/System-Map-icon.png"  style="float:right;display:inline" /></a> 

所以在此之前看起来像这样 enter image description here

但现在更改为1.4后,它看起来像这样。 enter image description here

我尝试做他们在这篇文章中建议的内容。 Custom Header Buttons in JQuery Mobile 但这似乎不起作用。有人可以请我直截了当。 我想做的就是将一个小图像作为按钮。

1 个答案:

答案 0 :(得分:0)

看来,为了完成我想要完成的任务,我需要做一些与众不同的事情。我实际上将图像创建为一个按钮,然后监听图像按钮的click事件并执行下一段代码。 你可以在这篇文章中找到更多信息。 Create image buttons in jquery mobile