如何将图像宽度调整为计算机屏幕宽度 [英] How to Adapt the Image Width to a Computer Screen Width
本文介绍了如何将图像宽度调整为计算机屏幕宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要显示宽度与计算机屏幕宽度相同的图像.
任何人都可以给我提示如何操作吗?
谢谢.
I want to display an image with its width to the computer screen width.
Can anyone give me a hint on how to do so?
Thank you.
推荐答案
使用javascriptscreen.width / screen.height
.
您可以设置img.width和img.height [竖起大拇指]
use javascriptscreen.width / screen.height
.
you can set img.width and img.height[thumbs up]
这篇关于如何将图像宽度调整为计算机屏幕宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文