0
내 알림 대화 상자에서 매개 변수 대화 상자 유형으로 지정하려고합니다. 하지만 테마는 결국 관리하지 않습니다. 그래서 입력과 다른 사람들은 내 자바 스크립트 기능에서 CSS로 테마를 arent합니다.jQuery Mobile // 내 동적 대화 상자 테마
HTML :
<div id="notification" data-role="page" >
<div data-role="header" data-theme="c">
<h1></h1>
</div>
<div data-role="content" data-theme="c">
</div>
</div>
JAVASCRIPT :.
function notification(title, text, notification_transition){
$.mobile.changePage("#notification", {
transition: notification_transition,
role: "dialog"
});
$("#notification h1").html(title);
$("#notification p.message").html(text);
$("#notification div[data-role=content]").html('<p class="message"></p>'+
'<p>Identifiant</p>'+
'<input type="text" value="" data-theme="a">');
try
{
navigator.notification.vibrate(500);
}
catch(error) {}
}
방법 재발 $ 후 jaquery 모바일 테마를 ("# 통지 DIV [데이터 역할 = 내용]") HTML(); 사전에 감사 METOS
다음과 같은 시도 할 수