如何在CSS 3中放置另一个图像? [英] How to place one image over another in CSS 3?

查看:143
本文介绍了如何在CSS 3中放置另一个图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建如下所示的box阴影效果。阴影是使用纯CSS3代码开发的:





但由于背景图片,阴影不会出现,如下所示。



>



如何将阴影放在顶部?

解决方案

图像作为背景。然后像上面提到的方法将是一种方法。如果你使用纯色,你可以使用CSS3。



这里有一些很棒的教程。希望它服务。
http:/ /www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow
http://www.paulund.co.uk/creating-different-css3-box-shadows-effects


I am trying to create the box- shadow effect as given below .The shadow is developed using pure CSS3 code:

But due to background image ,shadow is not appearing as shown below.

How can i place the shadow on the top?

解决方案

If you must have an image as a background. Then an approach like the one mentioned above will be one way to go. If you are using a plain color you can use CSS3.

Here are some 2 great tutorials. Hope it serves. http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow http://www.paulund.co.uk/creating-different-css3-box-shadows-effects

这篇关于如何在CSS 3中放置另一个图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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