2013-05-15 5 views
-1

웹 페이지에 Plus (+) ICON을 삽입하려고했지만 표시되지 않습니다. 내가 왜 또는 어쩌면 내가 그것을 보여줄 수 있도록 그림이 필요할지 모르겠다?아이콘이있는 jQuery-Mobile 버튼을 삽입하는 방법은 무엇입니까?

<a data-role="button" data-theme="b" data-icon="plus" data-iconpos="right">Save</a> 

하지만 제대로 작동하지 않습니다.

나는 어떻게 나타나는지에 대한 제안이 있으십니까?

답변

2

근무 예 : http://jsfiddle.net/Gajotres/m4rjZ/

$('[data-role="content"]').append('<a data-role="button" data-theme="b" data-icon="plus" data-iconpos="right">Save</a>'); 
    // Enhance new button element 
    $('[data-role="button"]').button();  
+0

그것을 잘 고맙습니다 작동 –

관련 문제