2012-04-14 40 views
0

此圖顯示輸入類型=文本不會由統一庫設計。 enter image description hereJquery uniform不會設計輸入類型=文本元素

這裏是代碼:

<html> 
<head> 
    <meta charset="utf-8" /> 
    <title>Log On</title> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script> 
    <script src="/Scripts/jquery.uniform.min.js" type="text/javascript"></script> 
    <link href="/Content/JqueryUniform/Aristo/css/uniform.aristo.css" rel="stylesheet" type="text/css" /> 
    <script type="text/javascript" charset="utf-8"> 

     $(document).ready(function() { 

      $("input, textarea, select, button").uniform(); 

     }); 

    </script> 
    </head> 
<body> 
<form action="/Affiliates/LogOn" method="post"> <div id="login"> 
      <div class="editor-label"> 
       <label>User Name</label> 
      </div> 
      <div class="editor-field"> 
       <input style="width:90%" type="text" name="UserName" id="UserName" /> 
       <br /><br /> 
      </div> 
      <div class="editor-label"> 
       <label>Password</label> 
      </div> 
      <div class="editor-field"> 
       <input style="width:90%" type="password" name="Password" id="Password" /> 
      </div> 
      <div class="editor-label"> 
       <label style="padding-top:3px;" >Remember Me</label> 
       <input type="checkbox" name="RememberMe" id="RememberMe" /> 
      </div> 
    </div> 
</form> 
</body> 

回答

0

利用這一點,它可能工作:

也許沒有加載
input[type=password] 
$("input, input[type=password], textarea, select, button").uniform(); 
+0

謝謝,它不工作。甚至沒有經常輸入 – SexyMF 2012-04-14 20:40:02

0

劇本,嘗試的路徑改寫到庫:

<script src="Scripts/jquery.uniform.min.js" type="text/javascript"></script> 
2

統一不會在版本1.5中進行文本輸入或文本區域。寫這篇文章的時間。統一風格:選擇(下拉菜單),複選框,單選按鈕,文件上傳輸入。

+0

現在從版本2.1.1開始看起來像Uniform。好極了! – user1367101 2013-12-20 03:12:35