Bootstrap tooltips and popover do not seem to ever work on anything i develop -
i developed bootstrap site , wanted use tooltip or popover images.
but ive met failures. tooltip never customized, comes out raw text. dont know why.
i stopped doing , went on http://reecegeorge.com/bootstrap-popovers.html learn tooltips/popover scratch.
i ended same result after copying examples word word.
see screen shots of outputs , pleas me.
ive hosted site @ http://digitex.ovh may open , hover on top images, shame. can check source code directly too.
i want know im doing wrong.
i use easyphp local server. (though work bootstrap + js)
thank you
check 2 images here, remove spaces inbetween , add http:// front
i. stack. imgur. com/2sydp. jpg i. stack. imgur. com/dfyby. jpg
you can have popover containing valid html.
html: <div class="container"> <button type="button" class="btn btn-lg btn-danger" data-toggle="popover" title="popover title"> custom popover (hover on me) </button>
js: $(document).ready(function(){ var options = { html: true, trigger: 'hover', placement: 'bottom', content: "<div style='text-align:center;'> <img src='http://placehold.it/200x100'> <div>this popover content image. can have valid html :-) </div> </div>" }; $('[data-toggle="popover"]').popover(options); });
here fiddle this:
https://jsfiddle.net/callicoder/hvwh75nl/
for more information, refer http://getbootstrap.com/javascript/#popovers
Comments
Post a Comment