实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
AخA
 
1
<!DOCTYPE html>
2
<html lang="zh-CN">
3
<head>
4
<meta charset="utf-8">
5
<title>jQuery水球图插件waterbubble演示-文本颜色_sucaihuo</title>
6
<style>
7
.wrap { margin: 100px 0; text-align: center;}
8
</style>
9
</head>
10
<body>
11
<h1>文本颜色</h1>
12
<div class="wrap">
13
    <canvas id="sucaihuo"></canvas>
14
</div>
15
<script src="/api/jq/5733e33a2793d/js/jquery-1.8.3.min.js"></script>
16
<script src="/api/jq/5733e33a2793d/js/waterbubble.js"></script>
17
<script>
18
$(function(){
19
    $('#sucaihuo').waterbubble({
20
        txt: '50%',
21
        textColor: 'rgba(0, 0, 0, 0.8)'
22
    });
23
});
24
</script>
25
</body>
26
</html>