久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <i id='ATWjv'><tr id='ATWjv'><dt id='ATWjv'><q id='ATWjv'><span id='ATWjv'><b id='ATWjv'><form id='ATWjv'><ins id='ATWjv'></ins><ul id='ATWjv'></ul><sub id='ATWjv'></sub></form><legend id='ATWjv'></legend><bdo id='ATWjv'><pre id='ATWjv'><center id='ATWjv'></center></pre></bdo></b><th id='ATWjv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ATWjv'><tfoot id='ATWjv'></tfoot><dl id='ATWjv'><fieldset id='ATWjv'></fieldset></dl></div>
    <tfoot id='ATWjv'></tfoot>

    <legend id='ATWjv'><style id='ATWjv'><dir id='ATWjv'><q id='ATWjv'></q></dir></style></legend>
      <bdo id='ATWjv'></bdo><ul id='ATWjv'></ul>

    1. <small id='ATWjv'></small><noframes id='ATWjv'>

    2. 數字輸入滾動的 HTML5 事件監聽器 - 僅限 Chrome

      HTML5 event listener for number input scroll - Chrome only(數字輸入滾動的 HTML5 事件監聽器 - 僅限 Chrome)
    3. <i id='CyfOD'><tr id='CyfOD'><dt id='CyfOD'><q id='CyfOD'><span id='CyfOD'><b id='CyfOD'><form id='CyfOD'><ins id='CyfOD'></ins><ul id='CyfOD'></ul><sub id='CyfOD'></sub></form><legend id='CyfOD'></legend><bdo id='CyfOD'><pre id='CyfOD'><center id='CyfOD'></center></pre></bdo></b><th id='CyfOD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CyfOD'><tfoot id='CyfOD'></tfoot><dl id='CyfOD'><fieldset id='CyfOD'></fieldset></dl></div>
          <tbody id='CyfOD'></tbody>

          <small id='CyfOD'></small><noframes id='CyfOD'>

          <tfoot id='CyfOD'></tfoot>
          <legend id='CyfOD'><style id='CyfOD'><dir id='CyfOD'><q id='CyfOD'></q></dir></style></legend>

              <bdo id='CyfOD'></bdo><ul id='CyfOD'></ul>
              1. 本文介紹了數字輸入滾動的 HTML5 事件監聽器 - 僅限 Chrome的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在玩一些 HTML5 元素,并遇到了一個有趣的行為.這僅適用于 Chrome.

                I'm playing around with some HTML5 elements, and ran into a fun behavior. This only works in Chrome.

                使用數字輸入類型,您可以設置最小值、最大值和步長,并通過上下箭頭來控制輸入.<input type="number" min="0" max="100" step="5"/>

                Using an input type of number, you can set the min, max, and step, and get up and down arrows to control the input. <input type="number" min="0" max="100" step="5" />

                我發現綁定單擊事件偵聽器會捕獲箭頭上的按下,因為在字段模糊之前不會真正發生更改.您還可以使用鍵盤上的向上和向下箭頭鍵在限制范圍內更改值,并且按鍵綁定可以獲取這些值.

                I've found that binding a click event listener captures presses on the arrows, as a change won't actually occur until the field is blurred. You can also use the up and down arrow keys on your keyboard to change the value within the limits, and a keypress bind can pick these up.

                但是,在 Chrome 中,您也可以使用鼠標滾輪來更改輸入,方法是將鼠標懸停在輸入上并滾動.但是,我一直無法找到監聽此事件的方法.

                In Chrome, however, you can also use your mouse wheel to change the input, by hovering over the input and scrolling. I have not been able to find a way to listen for this event, however.

                jsfiddle 示例

                HTML:

                <input type="number" min="0" max="100" step="5" id="test" />
                

                JavaScript(使用 jQuery):

                JavaScript (using jQuery):

                $( '#test' ).click(function(){
                   $( this ).after( '<br />click' ); 
                });
                
                $( '#test' ).change(function(){
                   $( this ).after( '<br />change' ); 
                });
                
                $( '#test' ).keypress(function(){
                   $( this ).after( '<br />keypress' ); 
                });
                

                關于如何監聽滾動變化的任何想法?同樣,在撰寫本文時,這僅適用于 Chrome.

                Any ideas on how to listen for that scroll change? Again, this only works in Chrome as of this writing.

                推薦答案

                jQuery 鼠標滾輪插件似乎可以解決問題.http://plugins.jquery.com/project/mousewheel

                The jQuery Mouse Wheel plugin seems to do the trick. http://plugins.jquery.com/project/mousewheel

                $( '#test' ).mousewheel(function(){
                   $( this ).after( '<br />mouse wheel' ); 
                });
                

                這篇關于數字輸入滾動的 HTML5 事件監聽器 - 僅限 Chrome的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                Input validation with pattern Angular 2(使用模式 Angular 2 進行輸入驗證)
                How to change the css class name dynamically in angular 2(如何在角度2中動態更改css類名)
                How to remove default color in input type?(如何刪除輸入類型中的默認顏色?)
                How to add click event to dynamically added html element in typescript(如何將點擊事件添加到打字稿中動態添加的html元素)
                XPath one of multiple attribute values with condition(XPath 具有條件的多個屬性值之一)
              2. <small id='8N3ly'></small><noframes id='8N3ly'>

                    <bdo id='8N3ly'></bdo><ul id='8N3ly'></ul>

                      <tbody id='8N3ly'></tbody>
                    1. <legend id='8N3ly'><style id='8N3ly'><dir id='8N3ly'><q id='8N3ly'></q></dir></style></legend>

                          <i id='8N3ly'><tr id='8N3ly'><dt id='8N3ly'><q id='8N3ly'><span id='8N3ly'><b id='8N3ly'><form id='8N3ly'><ins id='8N3ly'></ins><ul id='8N3ly'></ul><sub id='8N3ly'></sub></form><legend id='8N3ly'></legend><bdo id='8N3ly'><pre id='8N3ly'><center id='8N3ly'></center></pre></bdo></b><th id='8N3ly'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8N3ly'><tfoot id='8N3ly'></tfoot><dl id='8N3ly'><fieldset id='8N3ly'></fieldset></dl></div>
                          <tfoot id='8N3ly'></tfoot>
                          主站蜘蛛池模板: 亚洲一区二区视频 | 欧美人人 | 精品免费国产一区二区三区四区 | 久久久成人动漫 | 激情久久av一区av二区av三区 | 日日干天天操 | 久久久国产精品入口麻豆 | 亚洲看片| 中文字幕在线一区二区三区 | 国产精品美女久久久久久免费 | 午夜视频在线 | 国产情侣啪啪 | 蜜桃av鲁一鲁一鲁一鲁 | 欧美激情一区二区 | 色天天综合 | 国产精品久久久久久久久久三级 | 日韩视频在线观看中文字幕 | 国产一区二区久久 | av黄色免费在线观看 | 亚洲精品一二三 | 天天操天天摸天天干 | 欧美久久精品一级c片 | 成人三级网址 | 国产乱码高清区二区三区在线 | 欧美一a | 国产婷婷综合 | 婷婷色在线 | www.com久久久| 国产精品久久久久久久久久免费看 | 一二三四在线视频观看社区 | 中文字幕人成乱码在线观看 | 日韩精品在线观看网站 | 精品伊人 | 久久精品男人的天堂 | 日韩精品 电影一区 亚洲 | 亚洲一区二区在线播放 | 欧美黄在线观看 | 欧美视频一区 | 欧美日韩视频在线 | 精品欧美乱码久久久久久1区2区 | 91私密视频 |