1

I have customized theme have downloaded theme, added as reference but my mobile UI is not displaying me my custom theme :

Here is the custom theme:ThemeRoller Custom Theme and added it as in phonegap Android but no result:

     <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Insert title here</title>
        <link rel="stylesheet" href="themes/converterThemeFinald.min.css" />
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile.structure-1.3.2.min.css" />
        <link rel="stylesheet" href="themes/converterThemeFinald.min.css" />
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
        <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>

        <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
</head>
<body>
 <div data-role="page" id="converterListPage">

   <div data-role="header">
    <h1>UNIT CONVERTER</h1>
   </div>
   <div data-role="content">
      <ul data-role="listview" data-inset="true">
       <li><a href="#"  id="tempButton">TEMPERATURE</a></li>
       <li><a href="#" id="weightButton">WEIGHT</a></li>
       <li><a href="#" id="currencyButton">CURRENCY CONVERTER</a></li>
       <li><a href="#" id="speedButton">SPEED CONVERSION</a></li>
      </ul>


   </div>
 </div>

How can I get my custom theme of theme Roller in my App please help me SCREEN SHOTS AFTER FOLLOWING ANSWER of Gajorates: screen shots

4

1 に答える 1

1

あなたの問題は、新しいテーマを適用する方法について、jQuery Mobile テーマ ローラー チュートリアルをやみくもに従っていることです。2 つの新しいテーマ スウォッチ A と B があります。元の A と B スウォッチもある完全な jQuery Mobile CSS を初期化する前に、それらを含めます。完全な jQuery Mobile CSS は最後に初期化されているため、その CSS がカスタムの CSS に適用されます。

この問題は、次の 2 つの方法で解決できます。

  1. 次の行を削除します。

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
    

    HTML の例:

    <!DOCTYPE html>
    <html>
        <head>
            <title>jQM Complex Demo</title>
            <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
            <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi"/>
            <link rel="stylesheet" href="test.css" />
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile.structure-1.3.2.min.css" /> 
            <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
            <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>    
        </head>
        <body>
            <div data-role="page" id="index">
                <div data-role="header">
                    <h1>Index page</h1>
                </div>
    
                <div data-role="content">
    
                </div>
            </div>    
        </body>
    </html>   
    

    これをテストするには、test.css をカスタム CSS に置き換えます。

  2. または、最後に CSS を初期化する必要があります。

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile.structure-1.3.2.min.css" />
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
    <link rel="stylesheet" href="themes/converterThemeFinald.min.css" />
    
于 2013-08-02T10:45:14.143 に答える