具有ui-lightness / ui-darkness主题结果列表的jQuery自动完成功能太宽

时间:2013-09-06 02:39:17

标签: jquery html css jquery-ui autocomplete

我有一个使用ui-lightness主题的jQuery自动完成,但是当结果列表出现时,它比自动完成宽得多,即使最大结果文本宽度小于自动完成的宽度。

<html>
 <head>
  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/ui-lightness/jquery-ui.css"/>
  <script>
   $(function(){
    $("#search").autocomplete({source:"search.php"})
   });
  </script>
 </head>
 <body>
  <table width="100%" height="100%">
   <tr>
    <td align="center" valign="middle">
     <input id="search" style="width:50%;"/>
    </td>
   </tr>
  </table>
 </body>
</html>

这是IE8。

由于

0 个答案:

没有答案