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

如何在 HTML“選項"上顯示工具提示?標簽?

How can I display a tooltip on an HTML quot;optionquot; tag?(如何在 HTML“選項上顯示工具提示?標簽?)
本文介紹了如何在 HTML“選項"上顯示工具提示?標簽?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

無論是使用純 HTML 還是 jQuery 輔助 JavaScript,如何在單個 <option> 元素上顯示工具提示以幫助決策過程(沒有足夠的空間容納不同類型的控制和一些幫助將需要).

Either using plain HTML or jQuery assisted JavaScript, how do you display tooltips on individual <option> elements to aid the decision process (there is not enough room for a different kind of control and some help will be needed).

這可以通過插件或類似的方式完成嗎?

Can this be done though a plug-in or similar?

我嘗試了幾個用于 jQuery 的工具提示插件,但都沒有成功(包括一個叫做 Tooltip 的插件).

I have tried a few tooltip plugins for jQuery with no success (including the one called Tooltip).

這個解決方案應該:

  • 在 IE、WebKit 和 Gecko 中工作;
  • 利用標準 <select> 包裝的 <option> 元素.
  • work in IE, WebKit as well as Gecko;
  • utilizing standard <select> wrapped <option> elements.

因此,如果解決方案想要使用其他標簽,它應該將這些元素動態轉換為所需的內容(并且不要期望初始標記有任何不同).

So if the solution wants to use other tags it should convert those elements into what it needs dynamically (and not expect the initial mark-up to be any different).

可以在 here 找到此代碼,它位于 SafeSurf 部分下,我想在其中顯示關于選項含義的選項翻轉的一些幫助.目前只能事后"顯示.并且為用戶提供一些前期幫助將是有益的.

The code for this can be found here, it is under the SafeSurf section, where I want to display some help on rollover of the options as to the meaning of the choices. At present it can only be displayed "after the fact" and some upfront help for the user would be beneficial.

意識到這并不容易,并且可能需要創建一些東西 - 因此賞金將授予最完整的解決方案或使我最接近我可以創建的解決方案的特定鉤子.

推薦答案

似乎在被問到這個問題后的 2 年里,其他瀏覽器已經趕上了(至少在 Windows 上……不確定其他瀏覽器).您可以在選項標簽上設置標題"屬性:

It seems in the 2 years since this was asked, the other browsers have caught up (at least on Windows... not sure about others). You can set a "title" attribute on the option tag:

<option value="" title="Tooltip">一些選項</option>

這適用于 Windows 7 上的 Chrome 20、IE 9(及其 8 和 7 模式)、Firefox 3.6、RockMelt 16(基于 Chromium)

This worked in Chrome 20, IE 9 (and its 8 & 7 modes), Firefox 3.6, RockMelt 16 (Chromium based) all on Windows 7

這篇關于如何在 HTML“選項"上顯示工具提示?標簽?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

jQuery/JavaScript Library for avatar creation?(用于創建頭像的 jQuery/JavaScript 庫?)
How to do following mask input problem?(如何做以下掩碼輸入問題?)
Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 設置值/標簽的問題)
how to unit-test private methods in jquery plugins?(如何對 jquery 插件中的私有方法進行單元測試?)
stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 為垂直滾動網站配置偏移量/對齊元素?)
jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽輸入插件.當文本框獲得焦點時選擇所有內容)
主站蜘蛛池模板: 日韩一区中文字幕 | 久久久激情 | 欧美精品成人一区二区三区四区 | 三级国产三级在线 | 依人成人 | 天天干天天操天天看 | av大全在线观看 | 中文字幕一区二区三区乱码在线 | 九九九国产| 久久精品小短片 | 四虎最新视频 | 在线视频日韩 | 国产精品久久久久久久三级 | 久久久一区二区三区 | 国产小视频在线 | 国产一级电影网 | 色资源站 | 国产免费一级一级 | 国产综合久久久 | 日韩欧美精品一区 | 国产精品成人一区 | 羞羞网站在线免费观看 | 亚洲视频精品 | 日本成人午夜影院 | 午夜视频在线观看视频 | 精品蜜桃一区二区三区 | 波多野结衣一区二区三区 | 国产精品久久久久久久久图文区 | 亚洲欧美日韩精品久久亚洲区 | 黄色片a级 | 涩涩视频在线观看 | 卡通动漫第一页 | 久久国产精品视频 | 精品欧美一区二区精品久久 | 91精品一区二区三区久久久久久 | 久久国产高清 | 久久亚洲国产精品 | 欧美一区二区三区在线观看视频 | 久久久久久久久久久成人 | 日日操av| 中文字幕亚洲一区二区va在线 |