Skip to content

Commit 6286684

Browse files
committed
优化UI
1 parent 75919fa commit 6286684

File tree

1 file changed

+33
-18
lines changed

1 file changed

+33
-18
lines changed

APIJSON-JavaScript/index.html

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
5-
<script type="text/javascript" src="apijson.js"></script>
5+
<script type="text/javascript" language="JavaScript" charset="UTF-8" src="apijson.js" ></script>
66
<title>APIJSON Test</title>
77
<style type="text/css">
88
html,body,div{
@@ -18,39 +18,50 @@
1818
margin: 0;
1919
padding:0;
2020
}
21-
.title{
21+
.top{
2222
width: 100%;
23-
height:100px;
24-
margin-top: 2%;
25-
margin-bottom: 2%;
23+
height:40px;
24+
padding-left: 2%;
25+
padding-right: 2%;
26+
text-decoration-color: aquamarine;
27+
}
28+
.title{
29+
width: auto;
30+
height:20px;
2631
padding:0;
32+
text-overline-color: aquamarine;
2733
}
2834
.center{
2935
width: 100%;
30-
height: 60%;
36+
height: 68%;
3137
margin: 0;
3238
padding:0;
3339
}
3440
.bottom{
3541
width: 100%;
36-
height:50px;
42+
height:40px;
3743
margin: 0;
3844
padding:0;
3945
}
4046
.horizontal{
4147
width: 49%;
4248
height:100%;
4349
margin: 0;
44-
padding:0;
50+
padding:auto;
4551
}
4652
.url{
47-
width: 75%;
53+
width: 74%;
4854
height:50px;
4955
margin: 0;
50-
padding:0;
5156
}
5257
.button{
53-
width: 24%;
58+
width: 20px;
59+
height:10px;
60+
margin: 0;
61+
padding:0;
62+
}
63+
.send{
64+
width: 25%;
5465
height:50px;
5566
margin: 0;
5667
padding:0;
@@ -59,27 +70,31 @@
5970
</head>
6071
<body>
6172
<div class="match">
62-
<h1 class="title" align="center">APIJSON Test</h1>
73+
<div class="top" aria-orientation="horizontal">
74+
<h2 class="title" align="left">APIJSON Test</h2>
75+
<h2 class="button">Demo</h2>
76+
<button class="button" align="right">GET</button>
77+
</div>
6378
<div class="center" aria-orientation="horizontal">
64-
<textarea class="horizontal" height="500px" width="800px" id="input" onkeyup="javascript:onChange()">
79+
<textarea class="horizontal" id="input" onkeyup="javascript:onChange()">
6580
{
6681
"[]":{
6782
"User":{
6883
"sex":1
6984
}
7085
}
7186
}
72-
</textarea>
73-
<textarea class="horizontal" height="500px" width="800px" id="output">
87+
</textarea>
88+
<textarea class="horizontal" id="output" readonly>
7489
initializing...
75-
</textarea>
90+
</textarea>
7691
</div>
7792
<div class="bottom" aria-orientation="horizontal">
7893
<input class="url" type="text" placeholder="input url here" id="url" />
79-
<button class="button" id="ok" onclick="javascript:send()">Send</button>
94+
<button class="send" id="ok" onclick="javascript:send()">Send</button>
8095
</div>
8196
</div>
82-
<script >
97+
<script type="text/javascript" language="JavaScript" charset="UTF-8" >
8398
var input = document.getElementById("input");
8499
var output = document.getElementById("output");
85100
var url = document.getElementById("url");

0 commit comments

Comments
 (0)