यहां मेरे पास बूटस्ट्रैप 3 पॉपओवर का एक उदाहरण दिखा रहा है जब माउस कुछ पाठ पर होवर करता है तो उसके ऊपर टिटल के साथ एक छवि दिखाती है। मैंने कुछ इनलाइन स्टाइल में रखा है कि आप बाहर लेना या बदलना चाहते हैं .....
यह मोबाइल उपकरणों पर भी बहुत अच्छा काम करता है क्योंकि छवि पहली टैप पर पॉपअप करेगी और लिंक चालू होगा दूसरा। एचटीएमएल:
<h5><a href="#" title="Solid Tiles Template" target="_blank" data-image-url="http://s29.postimg.org/t5pik8lyf/tiles1_preview.jpg" class="preview" rel="popover" style="color: green; font-style: normal; font-weight: bolder; font-size: 16px;">Template Preview 1 <i class="fa fa-external-link"></i></a></h5>
<h5><a href="#" title="Clear Tiles Template" target="_blank" data-image-url="http://s9.postimg.org/rdonet7jj/tiles2_2_preview.jpg" class="preview" rel="popover" style="color: red; font-style: normal; font-weight: bolder; font-size: 16px;">Template Preview 2 <i class="fa fa-external-link"></i></a></h5>
<h5><a href="#" title="Clear Tiles Template" target="_blank" data-image-url="http://s27.postimg.org/8scrcdu9v/tiles3_3_preview.jpg" class="preview" rel="popover" style="color: blue; font-style: normal; font-weight: bolder; font-size: 16px;">Template Preview 3 <i class="fa fa-external-link"></i></a></h5>
js:
$('.preview').popover({
'trigger':'hover',
'html':true,
'content':function(){
return "<img src='"+$(this).data('imageUrl')+"'>";
}
});
https://jsfiddle.net/pepsimax_uk/myk38781/3/
कृपया इस लिंक को देखें। इसका उपयोग करके मुझे लगता है कि आपको छवि भी प्रदर्शित करने में सक्षम होना चाहिए। [http://stackoverflow.com/questions/8494291/can-i-use-html-tags-in-twitter-bootstrap-popover- डेटा-सामग्री] (http://stackoverflow.com/questions/8494291/can -आई-यूज-एचटीएमएल-टैग-इन-ट्विटर-बूटस्ट्रैप-पॉपओवर-डेटा-कंटेंट) – Vins