如何显示大于原始屏幕的图像 [英] How to show an image larger than the original screen

查看:75
本文介绍了如何显示大于原始屏幕的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图片标签。我需要在屏幕中间显示更大的图像,如点击图像时弹出javascript。

请帮助我。我将非常感谢。

解决方案

问题是你可能在客户端完全完成了这一切。



我建议使用HTML5 Canvas元素。请参阅此最低限度手册: http://www.html5canvastutorials.com/tutorials/html5-canvas-image-裁剪 [ ^ ]。



您的解决方案需要更多,但处理图像是关键。解释此类行为的所有方面需要太多时间和空间来适应快速问题和解答论坛格式。



-SA

I have an image tag. I need to show the image larger in the middle of the screen like popup in javascript when click on the image.
Please help me.I will highly appreciate.

解决方案

The problem is that you probably doing it all fully on the client side.

I would advise to use HTML5 Canvas element. Please see this minimal manual: http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop[^].

Your solution will require a lot more, but handling the images is the key. Explaining all the aspects of such behavior would require too much time and space to fit this Quick Questions and Answers forum format.

—SA


这篇关于如何显示大于原始屏幕的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆