纯css样式实现3角型

内容摘要
复制代码代码如下:
.devise-welcome-triangle{
border-right: #ccc 8px solid !important;
border-top: transparent 6px solid !important;
border-bottom: transpare
文章正文

复制代码
代码如下:

.devise-welcome-triangle{
border-right: #ccc 8px solid !important;
border-top: transparent 6px solid !important;
border-bottom: transparent 6px solid !important;
margin-left: -8px;
float: left;
z-index: 1000;
position: relative;
margin-top: 12px;
width: 0px;
height: 0px;
}
.devise-welcome-triangle div{
border-right: #EEEEEE 8px solid !important;
border-top: transparent 6px solid !important;
border-bottom: transparent 6px solid !important;
float: left;
z-index: 1100;
position: relative;
width: 0px;
margin-left: 4px;
margin-top: -6px;
height: 0px;
}

代码注释

作者:喵哥笔记

IDC笔记

学的不仅是技术,更是梦想!