標籤:
今天給大家分享一款基於jQuery的圖片情境標註提示彈窗特效,這款執行個體適合在圖片上標註某個物件,單擊彈出詳情說明,相容360、FireFox、Chrome、Safari、Opera、傲遊、搜狗、世界之窗,不支援IE8及以下瀏覽器。效果非常不錯。效果如下:
線上預覽 源碼下載
實現的過程。
這款執行個體要引用jquery和jquery ui庫,還有一個實現的main.js庫。需上的朋友可以點擊上現的下載按鈕下載來看看。
html代碼部分:
Html代碼
- <div class="container">
- <div class="labels">
- <a id="label1" class="label" href="#">Sofa
- <p>
- A sofa, is an item of furniture designed to seat more than one person, and providing
- support for the back and arms.</p>
- <span /></a><a id="label2" class="label" href="#">Television
- <p>
- Television (TV) is a telecommunication medium for transmitting and receiving moving
- images that can be monochrome (black-and-white) or colored, with or without accompanying
- sound.</p>
- <span /></a><a id="label3" class="label" href="#">Carpet
- <p>
- Carpet is a textile floor of an upper layer attached to a backing.</p>
- <span /></a><a id="label4" class="label" href="#">Chair
- <p>
- Chair is an item of furniture designed to seat one person, and providing support
- for the back and arms.</p>
- <span /></a><a id="label5" class="label" href="http://www.5icool.org/">Showcase
- <p>
- Showcase is used to showcase things at home</p>
- <span /></a>
- </div>
- <div class="description">
- <p>
- </p>
- <a class="close">X</a></div>
- </div>
一款基於jQuery的圖片情境標註提示彈窗特效