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

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

  
/*第2个广告样式*/  
div.arrow_ltitle2{width: 0; height: 0;border-top: 35px solid white;border-bottom: 35px solid white; border-left: 25px solid #E2B32E;}   
  
div.arrow_rtitle2{ position: relative;  width: 0;height: 0; border-top: 35px solid #E2B32E; border-right: 210px solid #E2B32E; border-bottom: 35px solid #E2B32E; border-left: 25px solid white;}   
  
div.arrow_lcontent2{text-align: center; width: 80px; height: 70px;background: #E2B32E;color: white;font-size: 15px;}   
  
div.arrow_rcontent2{color: white;position: absolute;left: 10px;top: -30px;width: 180px;font-size: 15px;}   
  
/*第3个广告样式*/  
div.arrow_ltitle3{width: 0; height: 0;border-top: 35px solid white;border-bottom: 35px solid white; border-left: 25px solid #4381CE;}   
  
div.arrow_rtitle3{ position: relative;  width: 0;height: 0; border-top: 35px solid #4381CE; border-right: 210px solid #4381CE; border-bottom: 35px solid #4381CE; border-left: 25px solid white;}   
  
div.arrow_lcontent3{text-align: center; width: 80px; height: 70px;background: #4381CE;color: white;font-size: 15px;}   
  
div.arrow_rcontent3{color: white;position: absolute;left: 10px;top: -30px;width: 180px;font-size: 15px;}   
  
/*第4个广告样式*/  
div.arrow_ltitle4{width: 0; height: 0;border-top: 35px solid white;border-bottom: 35px solid white; border-left: 25px solid #9C2E8F;}   
  
div.arrow_rtitle4{ position: relative;  width: 0;height: 0; border-top: 35px solid #9C2E8F; border-right: 210px solid #9C2E8F; border-bottom: 35px solid #9C2E8F; border-left: 25px solid white;}   
  
div.arrow_lcontent4{text-align: center; width: 80px; height: 70px;background: #9C2E8F;color: white;font-size: 15px;}   
  
div.arrow_rcontent4{color: white;position: absolute;left: 10px;top: -30px;width: 180px;font-size: 15px;}   
  
/*第5个广告样式*/  
div.arrow_ltitle5{width: 0; height: 0;border-top: 35px solid white;border-bottom: 35px solid white; border-left: 25px solid #403D6F;}