问题
In my JQuery Mobile(1.3.2) application used <a data-role="button" > and set the button text dynamically using jquery. The problem is when start scrolling the page the button text is collapsed like the below image. I didn't use any extra styles.
回答1:
I faced similar issue before like your's. I did like the following. After adding dynamic rows you need set like
$(".yourinsertedbutton").trigger("pagecreate");
it resolves my issue.
Try this one
$(".yourbtn").button('refresh');
OR try like this:
$('#yourbtn').parent().find('span').html("your text here");
check this Fiddle line number 10 in script.
来源:https://stackoverflow.com/questions/26094484/set-text-in-anchor-tagdata-role-button-the-text-is-collapsed