如何自动固定图像尺寸? [英] How can i Automaticaly fixed the size of an image?
本文介绍了如何自动固定图像尺寸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我正在上传图像并将其显示为固定大小的图像(width =''728''height =''286'')图像框,但图像无法正确显示为实际图像,即使看到的大图像也变淡或变形,
有没有什么功能或任何属性或类似的东西,我可以通过它在图像框中显示适当的图像.
如果是,请分享任何链接或您的建议,
这是我正在使用的代码
Dear friends,
I am uploading a image and showing it to a fixed size(width=''728'' height=''286'')image box but images are not showing correctly as the actual image , even the large images seen faded or distort ,
is there any function or any property or something like this by which i can show a proper image in the image box.
If yes then pls share any link or your suggestion to do this,
This the code what i am using
<div class="profile-page-fimlay-banner"><?php echo "<a class='fancybox' href='pic/".$family_photo."' data-fancybox-group='gallery'>";?> <?php echo "<img src='pic/".$family_photo."' width='728' height='286' border='0' />" ."</a>";?>
</div>
感谢
thanks
推荐答案
家庭照片." ; ?> <? php echo " .
family_photo."' data-fancybox-group='gallery'>";?> <?php echo "<img src='pic/".
家庭照片." . </a>" ; ?> < /div >
family_photo."' width='728' height='286' border='0' />" ."</a>";?> </div>
谢谢
thanks
尝试下面给出的插件
http://www.garralab.com/nailthumb.php [
Try given below plug in
http://www.garralab.com/nailthumb.php[^]
On your web page use like code given below:
jQuery('.ImageClass').imgpreload({
each: function () {
这篇关于如何自动固定图像尺寸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文