-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathborder1px.html
90 lines (80 loc) · 2.92 KB
/
border1px.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>xui toast demo</title>
<link rel="stylesheet" href="../../dist/wui.css" />
<script src="../vue.js"></script>
<script src="../../dist/wui.js"></script>
<style type="text/css">
html,body{
height: 100%;
padding: 0;
margin: 0;
}
.wrap, .app{
height:100%;
width:100%;
text-align: center;
}
.border-red:after{
border-color: orangered;
}
.border-green:after{
border-color: green;
}
.box{
width:90%;
margin:20px auto;
height: 30px;
text-align:center;
line-height:30px;
color: #999;
}
.border-radius-half:after{
border-radius: 10%;
}
.inline-flex{
display: inline-flex;
margin:0 auto;
}
.border-r-4px{
border-radius: 12px;
}
.border-r-4px::after{
border-radius: 12px;
}
</style>
</head>
<body>
<section class="wrap">
<section id="app" class="app">
<div class="inline-flex">
<div style="width:50px;">一</div>
<div>二二二二二二二</div>
</div>
<div class="box" v-wui-border-1px="{radius:0,side:'lr', color:'red'}">1像素边框</div>
<div class="box" v-wui-border-1px="{radius:10, color:'#dd3'}">1像素上边框</div>
<div class="box" v-wui-border-1px="{radius:'10rem', color:'orange'}">1像素下边框</div>
<div class="box" v-wui-border-1px="{radius:'50%', color:'orange'}">1像素下边框</div>
<div class="box">1像素左边框</div>
<div class="box wui-border-1px wui-border-r">1像素右边框</div>
<div class="box wui-border-1px wui-border-lr">1像素左右边框</div>
<div class="box wui-border-1px wui-border-tb">1像素上下边框</div>
<div class="box wui-border-1px wui-border-no-t">1像素无上边框</div>
<div class="box wui-border-1px wui-border-no-b">1像素无下边框</div>
<div class="box wui-border-1px wui-border-no-l">1像素无左边框</div>
<div class="box wui-border-1px wui-border-no-r">1像素无右边框</div>
<div class="box wui-border-1px border-red border-r-4px">1像素红边框</div>
<div class="box wui-border-1px border-green">1像素绿边框</div>
<div class="box wui-border-1px">圆角取值1-10px</div>
</section>
</section>
<script>
var vm = new Vue({
el: '#app'
});
</script>
</body>
</html>