Files
apt-nl-map/static/Magic4/Digital_LED_Display/index.html
2024-12-04 10:21:04 +08:00

38 lines
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--请务必先引入jquery-->
<script src="js/jquery-2.1.0.min.js"></script>
<!--此为本led样式的脚本-->
<script src="js/ledstyle.js"></script>
</head>
<style type="text/css">
</style>
<body>
<h1>html页面实现led样式的效果预览</h1>
<h3>宽为50像素高为100像素灯亮部分为5像素,颜色为橘子色像右边倾斜10度的led效果</h3>
<div class="test1"></div>
<h3>宽为50像素高为100像素灯亮部分为5像素,颜色为红色像左边倾斜30度的led效果</h3>
<div class="test11"></div>
<h3>宽为100像素高为200像素灯亮部分为10像素,颜色为天空蓝不倾斜的led效果</h3>
<div class="test2"></div>
</body>
<script type="text/javascript">
let led = new LedStyle(50,100,5,'.test1','orange','-10');
led.setValues('012345678.9');
let led11 = new LedStyle(50,100,5,'.test11','red','30');
led11.setValues('-012345678.9');
let led1 = new LedStyle(100,200,10,'.test2','skyblue');
led1.setValues('1.23');
</script>
</html>