-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcartoon_html.py
56 lines (53 loc) · 1.71 KB
/
cartoon_html.py
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
import streamlit.components.v1 as components
def cartoon_html():
components.html(
"""
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
#div1 {
height: 250px;
line-height: 250px;
width: 200px;
text-align: center;
text-align: right;
float: left
}
#div2 {
height: 180px;
line-height: 180px;
width: 750px;
text-align: center;
text-align: left;
float: left
}
</style>
</head>
<body>
<div id="container" style="width:1000px">
<div id="div1">
<img src="https://t1.picb.cc/uploads/2021/01/23/Zu8UEt.gif" width="150px"/>
</div>
<div id="div2" >
<font size='6'><b>基于时间序列的预测分析方法</b></font>
</div>
</div>
</body>
</html>
"""
)
def linkone():
components.html(
"""
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<a href="https://blog.csdn.net/Be_racle/article/details/112600268" target="_blank">我的CSDN博客:移动平均算法</a>
</body>
</html>
"""
)