首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >网站小挂件

网站小挂件

作者头像
Blank.
发布于 2023-04-12 20:35:45
发布于 2023-04-12 20:35:45
7530
举报
文章被收录于专栏:BlankBlank

给你的网站加个可爱的小挂件

效果

代码

将代码添加在您网站的 html 页面的 body 标签中任意位置即可

代码语言:javascript
复制
<!--初音未来开始-->

<style>

.music {

    position: fixed!important;

    position: absolute;

    width: 90px;

    height: 95px;

    z-index: 9;

    right: 0;

    bottom: 0;

    top: expression(offsetParent.scrollTop+offsetParent.clientHeight-150);

    cursor: pointer;

}

</style>

<div id="audio" class="music">

<img src="http://ku.oioweb.cn/img/weimusic1.gif" width="90px" height="90px" id="d"

</div>

<!--初音未来结束-->...
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 给你的网站加个可爱的小挂件
  • 效果
  • 代码
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档