DDR爱好者之家 Design By 杰米
街上经常碰到一些发各类广告传单的,有一次收到一张房地产广告的传单,顺手留下来,看着里面有些广告挺吸引人,同时也想练练自己css技术,故抽空做了一下。
原图某区域如下:
实现上图效果是需要一些想象力的,比如三角形的构成和左右两边的空白间距,懂的这个原理,然后熟练运用border属性,一切就OK了
比如其中一个三角形
XML/HTML Code复制内容到剪贴板- <div class="arrow_ltitle1">
- </div>
- div.arrow_ltitle1 {
- width: 0;
- height: 0;
- border-top: 35px solid white;
- border-bottom: 35px solid white;
- border-left: 25px solid #68C339;
- }
HTML代码如下:
XML/HTML Code复制内容到剪贴板- <div class="fl arrow_shadow">
- <div class="arrow_lcontent1 fl">
- <div style="margin-top: 10px">
- <div>
- 低容积率</div>
- <div>
- <b style="font-size: 15pt">仅2.8</b></div>
- </div>
- </div>
- <div class="arrow_ltitle1 fl">
- </div>
- <div class="arrow_rtitle1 fl">
- <div class="arrow_rcontent1">
- <div>
- 同样的地块,那里建了10栋楼,这里仅仅7栋,居住舒适度你懂得!</div>
- </div>
- </div>
- </div>
- <div class="fr arrow_shadow">
- <div class="arrow_lcontent2 fl">
- <div style="margin-top: 10px">
- <div>
- 低建筑密度</div>
- <div>
- <b style="font-size: 12pt">仅23.51%</b></div>
- </div>
- </div>
- <div class="arrow_ltitle2 fl">
- </div>
- <div class="arrow_rtitle2 fl">
- <div class="arrow_rcontent2" style="margin-top: 8px">
- <div>
- 最大栋距达到近200米,</div>
- <div>
- 视觉空间超乎想象!</div>
- </div>
- </div>
- </div>
- <div class="empty10">
- </div>
- <div class="fl arrow_shadow">
- <div class="arrow_lcontent3 fl">
- <div style="margin-top: 13px">
- <div>
- 建材用的贵</div>
- <div>
- 品质有保障</div>
- </div>
- </div>
- <div class="arrow_ltitle3 fl">
- </div>
- <div class="arrow_rtitle3 fl">
- <div class="arrow_rcontent3">
- <div>
- 含钢量超出市场同类产品约30%,品质有保障,给您一个五星级的家。</div>
- </div>
- </div>
- </div>
- <div class="fr arrow_shadow">
- <div class="arrow_lcontent4 fl">
- <div style="margin-top: 5px">
- <div>
- 临江</div>
- <div>
- 瞰岛</div>
- <div>
- 官佛</div>
- </div>
- </div>
- <div class="arrow_ltitle4 fl">
- </div>
- <div class="arrow_rtitle4 fl">
- <div class="arrow_rcontent4">
- <div>
- 远离噪音污染,</div>
- <div>
- 与佛相伴修生养性;</div>
- <div>
- 上风上水财运滚滚!</div>
- </div>
- </div>
- </div>
- <div class="empty10">
- </div>
- <div class="fl arrow_shadow">
- <div class="arrow_lcontent5 fl">
- <div style="margin-top: 5px">
- <div>
- 贴近自然</div>
- <div>
- 畅想都市</div>
- <div>
- 慢生活</div>
- </div>
- </div>
- <div class="arrow_ltitle5 fl">
- </div>
- <div class="arrow_rtitle5 fl">
- <div class="arrow_rcontent5">
- <div>
- 太阳岛一墙之隔,</div>
- <div>
- 大佛景区近在咫尺,</div>
- <div>
- 远离都市尾气生活!</div>
- </div>
- </div>
- </div>
- <div class="fr arrow_shadow">
- <div class="arrow_lcontent6 fl">
- <div style="margin-top: 13px">
- <div>
- 买房装修</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;}
- /*第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;}
- div.arrow_rtitle5{ position: relative; width: 0;height: 0; border-top: 35px solid #403D6F; border-right: 210px solid #403D6F; border-bottom: 35px solid #403D6F; border-left: 25px solid white;}
- div.arrow_lcontent5{text-align: center; width: 80px; height: 70px;background: #403D6F;color: white;font-size: 15px;}
- div.arrow_rcontent5{color: white;position: absolute;left: 10px;top: -30px;width: 180px;font-size: 15px;}
- /*第6个广告样式*/
- div.arrow_ltitle6{width: 0; height: 0;border-top: 35px solid white;border-bottom: 35px solid white; border-left: 25px solid #EA6F05;}
- div.arrow_rtitle6{ position: relative; width: 0;height: 0; border-top: 35px solid #EA6F05; border-right: 210px solid #EA6F05; border-bottom: 35px solid #EA6F05; border-left: 25px solid white;}
- div.arrow_lcontent6{text-align: center; width: 80px; height: 70px;background: #EA6F05;color: white;font-size: 15px;}
- div.arrow_rcontent6{color: white;position: absolute;left: 10px;top: -30px;width: 180px;font-size: 15px;}
以上就是本文的全部内容,希望对大家的学习有所帮助。
DDR爱好者之家 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
DDR爱好者之家 Design By 杰米
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年11月23日
2024年11月23日
- 凤飞飞《我们的主题曲》飞跃制作[正版原抓WAV+CUE]
- 刘嘉亮《亮情歌2》[WAV+CUE][1G]
- 红馆40·谭咏麟《歌者恋歌浓情30年演唱会》3CD[低速原抓WAV+CUE][1.8G]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[320K/MP3][193.25MB]
- 【轻音乐】曼托凡尼乐团《精选辑》2CD.1998[FLAC+CUE整轨]
- 邝美云《心中有爱》1989年香港DMIJP版1MTO东芝首版[WAV+CUE]
- 群星《情叹-发烧女声DSD》天籁女声发烧碟[WAV+CUE]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[FLAC/分轨][748.03MB]
- 理想混蛋《Origin Sessions》[320K/MP3][37.47MB]
- 公馆青少年《我其实一点都不酷》[320K/MP3][78.78MB]
- 群星《情叹-发烧男声DSD》最值得珍藏的完美男声[WAV+CUE]
- 群星《国韵飘香·贵妃醉酒HQCD黑胶王》2CD[WAV]
- 卫兰《DAUGHTER》【低速原抓WAV+CUE】
- 公馆青少年《我其实一点都不酷》[FLAC/分轨][398.22MB]
- ZWEI《迟暮的花 (Explicit)》[320K/MP3][57.16MB]