久久久久久久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. 數(shù)字輸入滾動的 HTML5 事件監(jiān)聽器 - 僅限 Chrome

      HTML5 event listener for number input scroll - Chrome only(數(shù)字輸入滾動的 HTML5 事件監(jiān)聽器 - 僅限 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. 本文介紹了數(shù)字輸入滾動的 HTML5 事件監(jiān)聽器 - 僅限 Chrome的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

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

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

                使用數(shù)字輸入類型,您可以設(shè)置最小值、最大值和步長,并通過上下箭頭來控制輸入.<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" />

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

                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 中,您也可以使用鼠標滾輪來更改輸入,方法是將鼠標懸停在輸入上并滾動.但是,我一直無法找到監(jiān)聽此事件的方法.

                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' ); 
                });
                

                關(guān)于如何監(jiān)聽滾動變化的任何想法?同樣,在撰寫本文時,這僅適用于 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' ); 
                });
                

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

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

                相關(guān)文檔推薦

                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中動態(tài)更改css類名)
                How to remove default color in input type?(如何刪除輸入類型中的默認顏色?)
                How to add click event to dynamically added html element in typescript(如何將點擊事件添加到打字稿中動態(tài)添加的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>
                          主站蜘蛛池模板: 亚洲精品自拍视频 | 久久精品91久久久久久再现 | jlzzxxxx18hd护士| 91传媒在线观看 | 99亚洲综合 | 久久高清 | 中文字幕一区二区三区乱码在线 | 国产精品爱久久久久久久 | www.激情.com| 91精品一区 | 久久久久久亚洲精品不卡 | 国产精品99久久久久 | 97操操 | 久久蜜桃资源一区二区老牛 | 日韩精品一区二区三区中文在线 | 四虎成人精品永久免费av九九 | 91大神xh98xh系列全部 | 成人永久免费视频 | 视频在线一区 | 夜夜操天天艹 | 二区在线视频 | 九九热精品视频在线观看 | 国产精品一区二区三区久久 | 国产一区2区 | 在线视频国产一区 | 欧美老少妇一级特黄一片 | 在线伊人网| 国产999精品久久久 午夜天堂精品久久久久 | 性视频网| 欧美性久久久 | 欧洲精品一区 | 九九av| 亚洲成人精品国产 | 国产精品爱久久久久久久 | 日本高清不卡视频 | 久久久一区二区三区四区 | 亚洲精品久久久久久一区二区 | 国产欧美二区 | 搞黄网站在线观看 | 精品99在线| 欧美日韩一区二区在线观看 |