在弹出框 bootstrap 中插入带有 ruby 的图像
Insert an image with ruby in popover bootstrap
这是图像 ruby 我尝试放入 popover
的代码
<div class="idea">
<i class="fa fa-lightbulb-o fa-lg popover-img" data-content="<%= cl_image_tag(@hiragana.upload, :width => 260, :height => 340) %>"></i>
</div>
这是js弹窗代码
<script >
$(document).ready(function(){
$(".popover-img").popover({
html: true,
trigger: "hover",
content: "",
placement:'bottom'
});
})
</script>
<div type="button" class="fa fa-lightbulb-o fa-lg popover-img" data-toggle="popover" title="" data-content=<%=cl_image_tag(@hiragana.upload, :width => 260, :height => 340)%> > contenu de ce que je dois cliquer dessu pour afficher le popover</div>
这是图像 ruby 我尝试放入 popover
的代码 <div class="idea">
<i class="fa fa-lightbulb-o fa-lg popover-img" data-content="<%= cl_image_tag(@hiragana.upload, :width => 260, :height => 340) %>"></i>
</div>
这是js弹窗代码
<script >
$(document).ready(function(){
$(".popover-img").popover({
html: true,
trigger: "hover",
content: "",
placement:'bottom'
});
})
</script>
<div type="button" class="fa fa-lightbulb-o fa-lg popover-img" data-toggle="popover" title="" data-content=<%=cl_image_tag(@hiragana.upload, :width => 260, :height => 340)%> > contenu de ce que je dois cliquer dessu pour afficher le popover</div>