【发布时间】:2013-05-23 14:13:34
【问题描述】:
我是 bootstrap 新手,想在悬停时放大所有具有 img-rounded 类的图像
我是这样实现的:
<div class="container">
<div class="row">
<div class="span4">
<div class="well">
<img src="MyImage.png" class="img-rounded">
</div>
</div>
</div>
</div>
<script>
$( document ).ready(function() {
$('.img-rounded').popover({
html: true,
trigger: 'hover',
placement: 'bottom',
content: function () {
return
'<img class="img-rounded" style="float:right;width:500px;max-width:500px;" src="
+$(this)[0].src + '" />';
}
});
});
</script>
不幸的是,放大图像周围的边界框没有放大。如何解决这个问题?
【问题讨论】:
-
你有演示吗?
标签: javascript jquery twitter-bootstrap popover