0

I'm having this problem with buttons in the jquery mobile header bar.

They appear without style, only the text 'Back' is shown.

I already tried replacing the stylesheets with freshly downloaded ones.

This happens when I add the back button by placing <a href="index.html" data-icon="arrow-l" data-rel="back">Back</a> inside the header div and also when I set this attribute data-add-back-btn="true" to the page div.

The page on wich this happens is dynamicly loaded, but when I'm testing it on the index page it also happens.

Does anyone know what could be going wrong? I'm using jquery mobile 1.2.0 in combination with Cordova (PhoneGap).

4

1 回答 1

1

我认为您链接上的数据角色可能是错误的。尝试添加data-role="button"到您的链接,看看会发生什么。它应该看起来像这样。

<a href="index.html" data-role="button" data-icon="back">Back</a>
于 2013-01-30T22:51:15.047 回答