CSS3透明背景+渐变样式
转载自博文:《CSS3透明背景+渐变样式》 http://blog.csdn.net/netbug_nb/article/details/44343809 
效果:
核心代码如下:
- .map-interview {
 - background-image:-webkit-linear-gradient(
 - to right,
 - rgba(0,0,0,0) 0%,
 - rgba(0,0,0,0.4) 5%,
 - rgba(0,0,0,0.6) 10%,
 - rgba(0,0,0,0.6) 90%,
 - rgba(0,0,0,0.4) 95%,
 - rgba(0,0,0,0) 100%);
 - background-image: linear-gradient(
 - to right,
 - rgba(0,0,0,0) 0%,
 - rgba(0,0,0,0.4) 5%,
 - rgba(0,0,0,0.6) 10%,
 - rgba(0,0,0,0.6) 90%,
 - rgba(0,0,0,0.4) 95%,
 - rgba(0,0,0,0) 100%);
 - height: 220px;
 - left: 50%;
 - margin-left: -350px;
 - margin-top: -110px;
 - padding: 10px 0px 10px 30px;
 - position: absolute;
 - top: 30%;
 - width: 700px;
 - border: 1px solid rgba(0, 0, 0, 0.1);
 - }
 
                    
                
                
            
        
浙公网安备 33010602011771号