JSDM

HTML

 
1
<div class="border-box">
2
    <p>css实现科技感边框</p>
3
</div>

CSS

x
 
1
*{
2
            margin:0;
3
            padding:0;
4
        }
5
        html,body{
6
            width:100%;
7
            height:100%;
8
            background:#040d32;
9
        }
10
        .border-box{
11
            position: relative;
12
            margin:300px auto;
13
            width:400px;
14
            height:300px;
15
            background: rgba(1, 19, 67, 0.8);
16
            border: 2px solid #00a1ff;
17
            border-radius: 8px;
18
        }
19
        .border-box::before {
20
            position: absolute;
21
            top: -2px;
22
            bottom: -2px;
23
            left: 30px;
24
            width: calc(100% - 60px);
25
            content: "";
26
            border-top: 2px solid #016886;
27
            border-bottom: 2px solid #016886;
28
            z-index: 0;
29
        }
30
        .border-box::after {
31
            position: absolute;
32
            top: 30px;
33
            right: -2px;
34
            left: -2px;
35
            height: calc(100% - 60px);
36
            content: "";
37
            border-right: 2px solid #016886;
38
            border-left: 2px solid #016886;
39
            z-index: 0;
40
        }
41
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

xxxxxxxxxx
1
 
1
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................