我正在使用 qTip 2 在悬停时显示更大的图像,并且它可以正常工作。图像显示但不是全宽。如何让它显示全宽?
代码:
HTML
<img src="img.jpg" usemap="#Map" class="center" style="width:900px;"
border="0" />
<map name="Map" id="Map">
<area class="1" shape="rect" coords="4,3,225,150" />
</map>
JS
var $j = jQuery.noConflict();
$j('.1').qtip({
content: '<img src="img1.jpg" width="600" />',
position: {
my: 'left top',
at: 'right top',
target: $j('.1')
},
style: {
classes:
'ui-tooltip-tipsy'
}
});
我应该怎么做才能让图像显示全宽?
我尝试添加此代码,但它不起作用:
tip: {
width: 600
}