0

i m using the bootstrap popover in my wordpress site and its working well.but i want that in my popover i want to show 4 links but it doesn't showing any link instead of that its removing my image from where i want to open popover.

Here is my code for popover:

<ul class="thumbnails">
<li class="span2"><a data-original-title="Create" data-placement="top" rel="popover" data-html="true" data-content="<a>Hello</a> |<a>Hello</a> |<a>Hello</a> |<a>Hello</a> "><img src="http://placehold.it/170x170" class="img-circle" /></a>
</li>
</ul>

Here is my java script:

<script>
$('[rel="popover"]').popover();
</script>
4

2 に答える 2

1
<script type='text/javascript'>
Galleria.configure({ debug : false, // debug is now off for deployment
    ...
    showCounter : true,
    lightbox : true,
    imagePan : false, 
    width : auto,
}); width   : auto,

発生するエラーは「autoが定義されていません」と表示され、幅が迷っています:auto、閉じ角かっこの後}); それが問題だと思います。その幅を削除します:自動、

*上記のスニペットを投稿して場所を示しましたが、コードの一部を削除したため、投稿したコードに置き換えないでください。幅を削除するだけです:auto、

于 2013-01-30T09:40:52.093 に答える
1

ドキュメントの準備ができたら電話してみてください。また、WordPressはのjQuery代わりにを使用し$ます。

これを試して:

<script>
jQuery(document).ready(function($){
   $('[rel="popover"]').popover();
});
</script>
于 2013-01-29T11:33:47.317 に答える