0

私は次のコードを使用しており、IE 7 を除くすべてのブラウザーで動作しています。が原因で Internet Explorer の実行が遅くなります。ご協力ありがとうございます。ありがとうございます。これは私が使用しているコードです。

   <html xmlns="http://www.w3.org/1999/xhtml">

   <head>

           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

           <link href="http://select-box.googlecode.com/svn/tags/0.2/jquery.selectbox.css"type="text/css" rel="stylesheet" />

           <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

           <script type="text/javascript" src="http://select-box.googlecode.com/svn/tags/0.2/jquery.selectbox-0.2.min.js"></script>

         <title>Untitled Document</title>

      </head>



      <body> 

       <SCRIPT Language="JavaScript">

           <!-- 

           document.write('<select id="language">')

           for(i = 0; i < 2500; i++){

           document.write('<option value="javascript">'+i+'</option>') 

             }

            document.write('</select>')

           //-->

           </SCRIPT>

         </body> 

     <script type="text/javascript">

         $(function () {

         $("#language").selectbox();


       });

   </script>



    </html>
4

1 に答える 1

0

数字のテキスト入力を試しましたか?2500 の数字をスクロールする意味がわかりません... もちろん、最初の 1250 のオプション用に 1 つ、その他のオプション用に 1 つの 2 つの選択を使用できます

于 2012-12-02T08:19:48.297 に答える