From 20ab89394f6f478f0bf2945fef81ec0f8f5fe590 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Sat, 20 Jul 2019 09:33:56 +0800 Subject: [PATCH] update Former-commit-id: 4c4574688ef25a690dc64041ec7013d5fc74b1b2 --- .../StreamingAssets/wwwroot/css/app.css | 52 +++++++++++++++--- .../Assets/StreamingAssets/wwwroot/index.html | 38 ++++++------- .../Assets/StreamingAssets/wwwroot/js/app.js | Bin 55730 -> 55744 bytes 3 files changed, 64 insertions(+), 26 deletions(-) diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/css/app.css b/projects/IoTClient/Assets/StreamingAssets/wwwroot/css/app.css index c68b722b..c1152a16 100644 --- a/projects/IoTClient/Assets/StreamingAssets/wwwroot/css/app.css +++ b/projects/IoTClient/Assets/StreamingAssets/wwwroot/css/app.css @@ -64,14 +64,52 @@ img.shot.zoom { .device-desktop.with-modal-dialog .page-content { overflow: auto; } -/*html5 input rang style*/ -input[type='range']{ +form{ width:100%; } -input[type='range']::-webkit-slider-thumb { - border: 15px solid #fff; - border-radius: 15px; +label.button input { + display: none; } -form{ +input[type=range].ajax{ width:100%; -} \ No newline at end of file + height:34px; +} +input.ajax{ + margin:5px 0; +} +form.device label{ + display:inline-block; + height:34px; + line-height:34px; + vertical-align:middle; +} +/*html5 input rang style*/ +input[type=range] { + -webkit-appearance: none; +} + + input[type=range]::-webkit-slider-runnable-track { + width: 300px; + height: 5px; + background: #ddd; + border: none; + border-radius: 3px; + } + + input[type=range]::-webkit-slider-thumb { + -webkit-appearance: none; + border: none; + height: 16px; + width: 16px; + border-radius: 50%; + background-color:Highlight; + margin-top: -5px; + } + + input[type=range]:focus { + outline: none; + } + + input[type=range]:focus::-webkit-slider-runnable-track { + background: #ccc; + } diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/index.html b/projects/IoTClient/Assets/StreamingAssets/wwwroot/index.html index 9e62527b..b71a2cda 100644 --- a/projects/IoTClient/Assets/StreamingAssets/wwwroot/index.html +++ b/projects/IoTClient/Assets/StreamingAssets/wwwroot/index.html @@ -571,7 +571,7 @@ 禁用空调