通过透明对象显示框阴影(div)

时间:2013-05-15 10:44:27

标签: html background show transparent css3

我正在研究一个css3 3D页面,我想通过一个透明的div显示阴影,但我无法让它工作......
我不能使用跨度或任何东西,因为它需要是相同的对象,因为jquery动画。

基本的div样式:

#Div3{
        position:absolute;
        border:1px solid white;
        border-radius:10px;        
        transition: all 1s;
        background:transparent;
        pointer-events: none;
    }

位置+阴影+变换的广告类:

.P3{
        top:22.5%;
        bottom:25%;
        right:25%;
        height:55%;
        width:20%;
        margin-right:-10%;
        box-shadow:10px 0px 15px rgba(255,255,255,0.6);
        transform: perspective( 1000px ) rotateY( 330deg );
        -webkit-transform: perspective( 1000px ) rotateY( 330deg );
    }

结果:
背景设置为透明,但不会显示背后的框阴影,

  • box-shadow是否仅为轮廓生成阴影 对象?
  • 有没有办法使用css使其可见?

2 个答案:

答案 0 :(得分:0)

他希望阴影(深色部分)也显示在轮廓的内部。也就是说,轮廓的两边都有阴影。

也许这会有所帮助:

df = df.withColumn(
        "column_normalized",
        F.regexp_replace(F.col("column_to_normalize"), "[^a-zA-Z0-9]+", ""))

答案 1 :(得分:-1)

我不知道为什么不适合你。框阴影确实在透明背景上显示,正如您在示例中看到的那样。

也许您应该尝试将阴影放在元素的第一类定义上,#Div3。

.cartContainer{
width:150px;
height:60px;
border-radius:10px;
background:transparent;
float:left;
margin:-10px 0 0 15px;
box-shadow:inset 0 0 5px  #FFFF99, #333 0 0 5px;

}

示例:Working fiddle

相关问题