纯CSS绘制三角形(多个角度)
来源:互联网 发布:淘宝上传视频要求 编辑:程序博客网 时间:2024/06/06 16:51
运用CSS3绘制三角形的方法
HTML代码:
- <div class="triangle"></div>
1、上三角
- .box{
- width: 0;
- height: 0;
- border-left: 50px solid transparent;
- border-right: 50px solid transparent;
- border-bottom: 100px solid #2894d2;
- }
- .box{
- width: 0;
- height: 0;
- border-left: 50px solid transparent;
- border-right: 50px solid transparent;
- border-top: 100px solid #2894d2;
- }
- .box{
- width: 0;
- height: 0;
- border-top: 50px solid transparent;
- border-right: 100px solid #2894d2;
- border-bottom: 50px solid transparent;
- }
- .box{
- width: 0;
- height: 0;
- border-top: 50px solid transparent;
- border-left: 100px solid #2894d2;
- border-bottom: 50px solid transparent;
- }
- .box{
- width: 0;
- height: 0;
- border-top: 100px solid #2894d2;
- border-right: 100px solid transparent;
- }
- .box{
- width: 0;
- height: 0;
- border-top: 100px solid #2894d2;
- border-left: 100px solid transparent;
- }
- .box{
- width: 0;
- height: 0;
- border-bottom: 100px solid #2894d2;
- border-right: 100px solid transparent;
- }
- .box{
- width: 0;
- height: 0;
- border-bottom: 100px solid #2894d2;
- border-left: 100px solid transparent;
- }
转载于:http://blog.csdn.net/ld_____/article/details/48597233
0 0
- 纯CSS绘制三角形(多个角度)
- 纯CSS绘制三角形(多个角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(各种角度)
- CSS 魔法系列:纯 CSS 绘制三角形(各种角度)
- CSS 魔法系列:纯 CSS 绘制三角形(各种角度)
- CSS:纯CSS绘制三角形(原理)
- 纯css绘制三角形
- 纯 CSS 绘制三角形
- 纯css绘制三角形
- 从15年春季找实习到秋季找工作的漫长路
- Storeboard故事版使用小技巧
- 在线查看android源代码的3种方式
- codeforces 455B(博弈+dp)
- 常用iOS第三方库以及XCode插件介绍
- 纯CSS绘制三角形(多个角度)
- 敏捷开发流程总结
- tomcat的启动时间
- extjs2.3 GridPanel样本
- ThoughtWorks(中国)程序员读书雷达
- 状态栏显示进度加载
- kylin jdbc中slf4j版本冲突问题
- win7 VMware CentOS桥接(bridge)模式网络配置
- <s:iterator>的status属性