前段时间做大屏只学习研究了图表相关内容,但是仅仅是图表会显得有点单调,所以参考优秀大屏展示页面对一些好看的边框进行模仿设计实现。
四角荧光边框
.border1{
border: 2px solid #02a6b5;
width: 100%;
height: 100%;
position: relative;
margin: auto;
box-sizing: border-box;
}
.border1:before{
content: '';
position: absolute;
width: 88%;
bottom: -2px;
top: -2px;
left: 6%;
border-bottom: 2px solid #0b3146;
border-top: 2px solid #0b3146;
}
.border1:after{
content: '';
position: absolute;
height: 76%;
left: -2px;
right: -2px;
top: 12%;
border-left: 2px solid #0b3146;
border-right: 2px solid #0b3146;
}
效果图:
内发光边框
.border2{
width: 100%;
height: 100%; color:white; padding: 1rem;
box-shadow: 0 0 3rem rgba(100