如何最大化图像类似于使用img标签的效果?

时间:2014-08-23 13:04:42

标签: javascript html css image

如何使用像<img src="image.jpg" width="1000" height="1000">这样的CSS在浏览器中最大化整个页面的图像,而不必依赖于用户浏览器放大/缩小的程度,以便在图像时覆盖整个页面,右键单击将显示它给出的选项:

save image as, copy image url, copy image, open image in new tab, search google for this image, print

而不是back,forward,reload,save as,print,translate to english,view source code (disabled),view page info。 前面的选项是右键单击http://i.imgur.com/WARB0ma.jpg等图像时给出的选项,我想以某种方式提供这些选项,无论用户右键单击的位置/放大/缩放内容的页面是多少所需的图像,包括背景中的一些html(用户不可见)。 感谢。

1 个答案:

答案 0 :(得分:0)

<style>img{position:fixed; height:100%: width:100%;}</style>
<img src="image.jpg">
相关问题