Index.cshtml
2.15 KB
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
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header
{
<script type="text/javascript" src="~/js/jQuery-2.1.4.min.js"></script>
<script type="text/javascript" src="/lib/signalr/dist/browser/signalr.js"></script>
<script type="text/javascript" src="~/js/jcanvas.js"></script>
<script type="text/javascript" src="~/js/echarts/echarts.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/basejs/Common.js?v=2019.08.29"></script>
<script type="text/javascript" src="/productjs/monitor/STKMonitor.js?v=2019.08.29"></script>
<style>
.parent {
display: flex;
width: 100%;
align-items: center;
justify-content: center;
}
.select {
width: 300px;
height: 50px;
border: 1px solid rgba(48, 43, 43, 0.3);
/*内容居中显示*/
text-align: center;
text-align-last: center;
/* 去掉select自带的样式 */
/*appearance: none;*/
/* IE */
-webkit-appearance: none;
/* google */
-moz-appearance: none;
/* firefox */
background-size: 10% 30%;
/* 手势样式 */
cursor: pointer;
}
/*清除ie的默认选择框样式清除,隐藏下拉箭头*/
select::-ms-expand {
display: none;
}
</style>
}
<div>
<div class="parent">
<label style="font-size:20px;font-weight:bold;color:cornflowerblue">巷道选择:</label>
<select class="select" id="STK" style="font-size:25px;font-weight:bold;color:cornflowerblue">
<option value="1">1巷道</option>
<option value="2">2巷道</option>
<option value="3">3巷道</option>
<option value="4">4巷道</option>
<option value="5">5巷道</option>
</select>
<input type="button" id="move" value="移动" />
</div>
</div>
<div>
<canvas id="canvas" width="2000" height="150"></canvas>
</div>
<div id="main" style="width: 800px;height:600px;"></div>