input時彈出帶有搜索按鈕的鍵盤

首先說說如何在用戶點擊input時彈出帶有搜索按鈕的鍵盤,其實很簡單,加上 type="search"即可。 示例: [html]  view plain  copy <input id="keyword" placeholder="輸入關鍵字搜索"  type="search" />   效果圖: 然後如何獲取搜索按鈕的點擊事件呢,代碼如下: [html]  view plain  copy $
相關文章
相關標籤/搜索