Index.cshtml 2.15 KB
@{
    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>