CSS制作三角形广告引导文字效果

2020-05-14 07:47:31易采站长站整理

                买房装修</div>  
            <div>  
                一步到位</div>  
        </div>  
    </div>  
    <div class="arrow_ltitle6 fl">  
    </div>  
    <div class="arrow_rtitle6 fl">  
        <div class="arrow_rcontent6">  
            <div>  
                四川家装连锁品牌芙蓉锦城提供多种精装套餐服务,实体样板呈现,恭迎品鉴</div>  
        </div>  
    </div>  
</div>    

CSS样式如下:

CSS Code复制内容到剪贴板

body{font-family: 微软雅黑; padding:0; margin:0px auto; width:700px; }   
  
.fl{float: left;}   
  
.fr{float: rightright;}   
  
.empty10{ height:20px; clear:both}   
  
.shadow{-moz-box-shadow: 0 0 20px #777676;box-shadow: 0 0 20px #777676; padding: 5px; background: white;}   
  
.arrow_shadow{-moz-box-shadow: 5px 5px 10px #B7B7B7;  box-shadow: 5px 5px 10px #B7B7B7;}   
  
/*第1个广告样式*/  
div.arrow_ltitle1{width: 0; height: 0;border-top: 35px solid white;border-bottom: 35px solid white; border-left: 25px solid #68C339;}   
  
div.arrow_rtitle1{ position: relative;  width: 0;height: 0; border-top: 35px solid #68C339; border-right: 210px solid #68C339; border-bottom: 35px solid #68C339; border-left: 25px solid white;}   
  
div.arrow_lcontent1{text-align: center; width: 80px; height: 70px;background: #68C339;color: white;font-size: 15px;}   
  
div.arrow_rcontent1{color: white;position: absolute;left: 10px;top: -30px;width: 180px;font-size: 15px;}