使用z-index将透明图像放到另一个图像上。 [英] putting an transparent image onto another image using z-index.

查看:123
本文介绍了使用z-index将透明图像放到另一个图像上。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我是css和z-index的新手。我的问题是,我有一个我必须放入iframe的图像,我有一个100%透明的第二个空白图像。我必须将该透明图像放在iframe中的图像上。因此,当用户看到图像并尝试下载图像时,他们将下载空白图像而不是他们看到的图像。我试用了z-index,iframe,但没有解决我的主要目的。我正在使用visual studio和c#。

hello. I am completely new into css and z-index. My question is, I have an image which I have to put in iframe, and I have a second blank image which is 100% transparent. I have to put that transparent image on the image in iframe. So that when users see the image and try to download it, they will be downloading the blank image rather than the image they see. I tried out with z-index , iframe, but not solving my main purpose. I am using visual studio and c#.

推荐答案

尝试在给出z-index:-1的背景图层div中并给出z-index:9到upper图层div。我认为它会解决你的问题。
try that in give z-index:-1 in background layer div and give z-index:9 to upper layer div. i think it will solve your this problem.


这篇关于使用z-index将透明图像放到另一个图像上。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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