/* 通过 css 画 div 的对角斜线 */
background: linear-gradient(to top right, #EEF2F8, #EEF2F8 48%, #CEDFF8, #EEF2F8 51%, #EEF2F8);
/* element-ui table 表头 */
.header-column {
height: 49px;
position: relative;
&:before {
position: absolute;
content: ' ';
height: 100%;
width: 100%;
color: #bbbbbc;
background: linear-gradient(to top right, #EEF2F8, #EEF2F8 48%, #CEDFF8, #EEF2F8 51%, #EEF2F8);
left: 0;
top: 0;
}
.headerCon1 {
position: absolute;
bottom: @margin;
left: @margin;
}
.headerCon2 {
position: absolute;
top: @margin;
right: @margin;
}
}
标签:right,EEF2F8,斜线,top,position,对角,margin,css,absolute
From: https://www.cnblogs.com/whm-blog/p/17800042.html