私人领地

css 父层 透明 子层不透明Alpha

html代码

<div class="user2-register-bg">
            <div class="user2-register-con">
                1111
            </div>
        </div>

css代码

.user2-register-bg{padding: 10px;padding: 10px;background:rgba(0,0,0,0.3)!important;background:#000;filter:Alpha(opacity=30); margin-top: 30px;}
.user2-register-con{height:500px; background:#fff;  position:relative; }

 

注意这两个位置

posted @ 2015-10-09 18:09  狂奔的蜗牛Snails  阅读(258)  评论(0编辑  收藏  举报