简体   繁体   English

在网络应用程序摄像头上覆盖透明png

[英]Overlay transparent png on web app camera

I am creating a web app using the mobile devices camera. 我正在使用移动设备摄像头创建一个Web应用程序。 Specifically a ipad mini. 特别是ipad mini。

I'm using the code: 我正在使用代码:

So the full screen pop up with a camera, but I want to overlay a transparent image on top of the camera. 因此,用相机弹出了全屏,但是我想在相机顶部叠加一个透明图像。 So for example a sun in the top right hand corner so when the photo is taken the sun also appears in the camera. 因此,例如,右上角有太阳,因此在拍摄照片时,照相机中也会出现太阳。

Can anyone help me out how to add a overlay. 任何人都可以帮助我如何添加叠加层。

Thanks so much. 非常感谢。

Maybe you can use this: 也许你可以使用这个:

#IdOfImage{
    background: url('YourImageHere')
    opacity: 0.5;
    z-index: 100;
}

All the other classes / id's have to be a lower z-index to make this image pop up over all the other ones. 所有其他类/ id必须具有较低的z-index,以使此图像在所有其他类/ id上弹出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM