久久久久久久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网站免费观看 | 一区二区三区四区电影视频在线观看 | 久久高清精品 | 亚洲国产一区二区三区 | 草草视频在线观看 | 在线免费观看成人 | 亚洲一区视频在线 | 亚洲精品在线免费观看视频 | 国产视频在线观看一区二区三区 | 国产精品九九九 | 欧美日韩亚洲一区 | 亚洲欧美日韩在线不卡 | 一级毛片视频在线观看 | 日韩视频国产 | 91社区在线观看高清 | 国产精品日韩欧美一区二区 | 紧缚调教一区二区三区视频 | 99一级毛片 | h小视频| 美女黄色在线观看 | 99re热这里只有精品视频 | 日韩一区不卡 | 欧美成人激情 | 一区二区三区高清不卡 | 91精品国产91久久久久久最新 | 91精品国产综合久久精品图片 | 日韩高清一区 | 国产一区二区在线视频 | 日韩免费激情视频 | 国产欧美在线一区二区 | 亚洲精品一区二区 | 久久国产精品99久久久久久丝袜 | 日韩成人在线视频 | 羞羞色网站 | a级毛片基地 | 精品国产精品三级精品av网址 | 欧美国产视频 | 欧美日本在线观看 | 国产在线1区 | 一级看片免费视频囗交动图 |