博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
css 实现小三角
阅读量:7120 次
发布时间:2019-06-28

本文共 1423 字,大约阅读时间需要 4 分钟。

hot3.png

Triangle Up

 

 

1
2
3
4
5
6
7
#triangle-up {
    
width
:
0
;
    
height
:
0
;
    
border-left
:
50px
solid
transparent
;
    
border-right
:
50px
solid
transparent
;
    
border-bottom
:
100px
solid
red
;
}

   

Triangle Down

 

 

1
2
3
4
5
6
7
#triangle-down {
    
width
:
0
;
    
height
:
0
;
    
border-left
:
50px
solid
transparent
;
    
border-right
:
50px
solid
transparent
;
    
border-top
:
100px
solid
red
;
}

   

Triangle Left

 

 

1
2
3
4
5
6
7
#triangle-
left
{
    
width
:
0
;
    
height
:
0
;
    
border-top
:
50px
solid
transparent
;
    
border-right
:
100px
solid
red
;
    
border-bottom
:
50px
solid
transparent
;
}

  

Triangle Right

 

 

1
2
3
4
5
6
7
#triangle-
right
{
    
width
:
0
;
    
height
:
0
;
    
border-top
:
50px
solid
transparent
;
    
border-left
:
100px
solid
red
;
    
border-bottom
:
50px
solid
transparent
;
}

  

Triangle Top Left

 

 

1
2
3
4
5
6
#triangle-topleft {
    
width
:
0
;
    
height
:
0
;
    
border-top
:
100px
solid
red
;
    
border-right
:
100px
solid
transparent
;
}

  

Triangle Top Right

 

 

1
2
3
4
5
6
7
#triangle-topright {
    
width
:
0
;
    
height
:
0
;
    
border-top
:
100px
solid
red
;
    
border-left
:
100px
solid
transparent
;
 
}

  

Triangle Bottom Left

 

 

1
2
3
4
5
6
#triangle-bottomleft {
    
width
:
0
;
    
height
:
0
;
    
border-bottom
:
100px
solid
red
;
    
border-right
:
100px
solid
transparent
;
}

  

Triangle Bottom Right

 

 

1
2
3
4
5
6
#triangle-bottomright {
    
width
:
0
;
    
height
:
0
;
    
border-bottom
:
100px
solid
red
;
    
border-left
:
100px
solid
transparent
;
}

转载于:https://my.oschina.net/sunshinewyf/blog/513481

你可能感兴趣的文章
Centos7 安装指定版本的 Docker
查看>>
谈成长,谈创新——QClub成都0615活动纪要
查看>>
Python统计列表中的重复项出现的次数(伪原创)
查看>>
NSInteger 与 NSUInteger 和 int与 NSInteger 区别(转)
查看>>
Hadoop WritableComparable接口
查看>>
第 九 天 : 复 习 中 ( 二 )
查看>>
开机自动开启vmware
查看>>
我的友情链接
查看>>
应该知道的自动化测试陷阱1
查看>>
利用LoadRunner来进行文件下载的测试
查看>>
IIS站点配置备份
查看>>
【C语言】学习笔记4——数组
查看>>
CLR读书笔记--第三章 共享程序集和强命名程序集
查看>>
Vue.js
查看>>
smarty 循环操作
查看>>
Visual Studio使用技巧笔记(引用程序集自动复制dll到引用项目目录)
查看>>
hihoCoder1369 (最大流EK算法,Dinic算法)Ford-Fulkerson
查看>>
Unable to locate package错误解决办法
查看>>
[SOJ] 1282. Computer games (KMP)
查看>>
Shiro 学习
查看>>