Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
0x0007
用HTML生成一个眼睛随着鼠标移动的小宠物
提交
0fbf93a3
用
用HTML生成一个眼睛随着鼠标移动的小宠物
项目概览
0x0007
/
用HTML生成一个眼睛随着鼠标移动的小宠物
与 Fork 源项目一致
Fork自
inscode / Streamlit
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
用
用HTML生成一个眼睛随着鼠标移动的小宠物
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0fbf93a3
编写于
12月 01, 2023
作者:
W
weixin_41863029
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fri Dec 1 11:13:00 CST 2023 inscode
上级
ca769f7d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
18 deletion
+16
-18
main.py
main.py
+16
-18
未找到文件。
main.py
浏览文件 @
0fbf93a3
...
...
@@ -3,28 +3,26 @@ import streamlit as st
st
.
set_page_config
(
page_title
=
"Wall-E"
,
page_icon
=
":robot_face:"
,
layout
=
"wide"
)
html
=
"""
<div style="position: fixed; top: 0; left: 0; bottom: 0; right: 0; overflow: hidden;">
<div id="pet" style="position: absolute; width: 200px; height: 200px; left: 50%; top: 50%; transform: translate(-50%, -50%);">
<div id="body" style="position: absolute; width: 120px; height: 140px; background: #6C706F; left: 40px; top: 30px;">
<div id="head" style="position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #F2F3F4; left: 10px; top: 0px;">
<div id="eye-left" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #333; left: 10px; top: 30px;">
<div id="pupil-left" style="position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%);">
</div>
<div id="pet" style="position: fixed; width: 200px; height: 200px; left: 50%; top: 50%; transform: translate(-50%, -50%);">
<div id="body" style="position: absolute; width: 120px; height: 140px; background: #6C706F; left: 40px; top: 30px;">
<div id="head" style="position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #F2F3F4; left: 10px; top: 0px;">
<div id="eye-left" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #333; left: 10px; top: 30px;">
<div id="pupil-left" style="position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%);">
</div>
<div id="eye-right" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #333; left: 65px; top: 30px;">
<div id="pupil-right" style="position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%);">
</div>
</div>
</div>
<div id="hand-left" style="position: absolute; width: 20px; height: 60px; background: #F2F3F4; left: -20px; top: 50px; transform: rotate(45deg); ">
</div>
<div id="hand-right" style="position: absolute; width: 20px; height: 60px; background: #F2F3F4; left: 100px; top: 50px; transform: rotate(-45deg);">
</div>
<div id="
wheel-left" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #8A8075; left: 20px; top: 10
0px;">
</div
>
<div id="wheel-right" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #8A8075; left: 75px; top: 100px;"
>
<div id="
eye-right" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #333; left: 65px; top: 3
0px;">
<div id="pupil-right" style="position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%);"
>
</div
>
</div>
</div>
<div id="hand-left" style="position: absolute; width: 20px; height: 60px; background: #F2F3F4; left: -20px; top: 50px; transform: rotate(45deg); ">
</div>
<div id="hand-right" style="position: absolute; width: 20px; height: 60px; background: #F2F3F4; left: 100px; top: 50px; transform: rotate(-45deg);">
</div>
<div id="wheel-left" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #8A8075; left: 20px; top: 100px;">
</div>
<div id="wheel-right" style="position: absolute; width: 25px; height: 25px; border-radius: 50%; background: #8A8075; left: 75px; top: 100px;">
</div>
</div>
</div>
"""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录