Alist常用样式代码

黑猫:


<!--看板娘 - 黑猫-->
    <script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
    <script>
      L2Dwidget.init({
        "model": {
          jsonPath: "https://unpkg.com/live2d-widget-model-hijiki/assets/hijiki.model.json", <!--这里改模型,前面后面都要改-->
          "scale": 1
        },
        "display": {
          "position": "left", <!--设置看板娘的上下左右位置-->
          "width": 100,
          "height": 200,
          "hOffset": 0,
          "vOffset": 0
        },
        "mobile": {
          "show": true,
          "scale": 0.5
        },
        "react": {
          "opacityDefault": 0.7, <!--设置透明度-->
          "opacityOnHover": 0.2
        }
      });
      window.onload = function() {
        $("#live2dcanvas").attr("style", "position: fixed; opacity: 0.7; left: 70px; bottom: 0px; z-index: 1; pointer-events: none;")
      }
    </script>
  </div>

白猫:

<!--白小猫咪-->
<script src=" https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.0.min.js"></script>
<script>
L2Dwidget.init({
"model": {
jsonPath: " https://unpkg.com/live2d-widget-model-tororo@1.0.5/assets/tororo.model.json" ,
"scale": 1
},
"display": {
"position": "right",
"width": 100,
"height": 200,
"hOffset": -20,
"vOffset": -20
},
"mobile": {
"show": true,
"scale": 0.5
},
"react": {
"opacityDefault": 1,
"opacityOnHover": 1
}
});
</script>

鼠标点击出随机颜色的爱心:

<!--鼠标点击出随机颜色的爱心-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
 
<body>
    <!-- 网页鼠标点击特效(爱心) -->
    <script type="text/javascript">
         ! function (e, t, a) {
            function r() {
                for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[
                        e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x +
                    "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e]
                    .scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
                requestAnimationFrame(r)
            }
            function n() {
                var t = "function" == typeof e.onclick && e.onclick;
                e.onclick = function (e) {
                    t && t(), o(e)
                }
            }
 
            function o(e) {
                var a = t.createElement("div");
                a.className = "heart", s.push({
                    el: a,
                    x: e.clientX - 5,
                    y: e.clientY - 5,
                    scale: 1,
                    alpha: 1,
                    color: c()
                }), t.body.appendChild(a)
            }
 
            function i(e) {
                var a = t.createElement("style");
                a.type = "text/css";
                try {
                    a.appendChild(t.createTextNode(e))
                } catch (t) {
                    a.styleSheet.cssText = e
                }
                t.getElementsByTagName("head")[0].appendChild(a)
            }
 
            function c() {
                return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math
                    .random()) + ")"
            }
            var s = [];
            e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e
                .mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
                    setTimeout(e, 1e3 / 60)
                }, i(
                    ".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"
                ), n(), r()
        }(window, document);
    </script>

隐藏右上角复制直链、下载切换布局等:

<!--隐藏右上角-->
<style>
.css-neion{
    display:none;
}
</style>

全白无框:

<!--全白无框-->
<style>
.chakra-ui-light{
  background-color: #FFFFFF;
}
.main-box {
  border-radius: 15px !important;
  box-shadow: unset !important;
}
.chakra-ui-light .main-box {
  background-color: rgba(255,255,255,0.9) !important;
}
.chakra-ui-light .readme-box {
  background-color: rgba(255,255,255,0.9) !important;
}
.readme-box {
  border-radius: 15px !important;
  box-shadow: unset !important;
}
</style>

备案信息:

<!--备案信息--> 
</style>
    <link href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css" rel=" stylesheet ">
    <div id="customize" style="display:none;
	text-align:center;
	">
        <br />
        <div style="font-size:13px;
	">
            <span class="nav-item">
                <a class="nav-link" href="http://lizong.top/" target="_blank">
                    <i class="fa-solid fa-copyright" style="color:#9932CC" aria-hidden="true"></i>
                     2022 LIZONG.TOP |
                </a>
            </span>
            <span class="nav-item">
                <a class="nav-link" href="https://beian.miit.gov.cn/" target="_blank">
                    <i class="fa fa-balance-scale" style="color:#9932CC;
	" aria-hidden="true"></i>
                     鄂ICP备xxxxxx号-x |
                </a>
            </span>
            <span class="nav-item">
                <a class="nav-link" href="https://github.com/Xhofe/alist" target="_blank">
                    <i class="fa fa-heart" style="color:#9932CC;
	" aria-hidden="true"></i>
                     由Alist驱动
                </a>
            </span>
        </div>
        <br />
    </div>
    <script>
        let interval = setInterval(() => {
	if (document.querySelector(".footer")) {
	document.querySelector("#customize").style.display = "";
	clearInterval(interval);
}
},200);
	</script>
</font>

底部网站运行时间:

<!--开站时间开始-->       
<center>
        <br />
  </span>
            <span class="nav-item">
                <a class="nav-link" href="https://nodepanels.com/share/server?auth=c3ce0f96aab24a63b88044dede67165d&key=MzkxZjI4OTI0ODJmNDg5MWFjZDFlZDI2ZmUwYTJiYTR8bDEzMTQ0QHFxLmNvbXxqYzhidHd4bmZueDQ=" target="_blank">
             <span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span> <script language="javascript"> 
    var now = new Date();
    function createtime(){
        var grt= new Date("04/17/2022 00:00:00");/*---这里是网站的启用时间--*/
        now.setTime(now.getTime()+250);
        days = (now - grt ) / 1000 / 60 / 60 / 24;
        dnum = Math.floor(days);
        hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum);
        hnum = Math.floor(hours);
        if(String(hnum).length ==1 ){hnum = "0" + hnum;}
        minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
        mnum = Math.floor(minutes);
        if(String(mnum).length ==1 ){mnum = "0" + mnum;}
        seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
        snum = Math.round(seconds);
        if(String(snum).length ==1 ){snum = "0" + snum;}
        document.getElementById("timeDate").innerHTML = "⏱️本站已稳定运行"+dnum+"天";
        document.getElementById("times").innerHTML = hnum + "小时" + mnum + "分" + snum + "秒";
    }
    setInterval("createtime()",250); 
</script> 

自定义背景:替换url即可

<!--自定义背景-->
<style>
.chakra-ui-light{
  background-image: url("https://www.dmoe.cc/random.php") !important;
  background-repeat:no-repeat;background-size:cover;background-attachment:fixed;background-position-x:center;
}
.main-box {
  border-radius: 15px !important;
}
.chakra-ui-light .main-box {
  background-color: #ffffff70 !important;
}
.chakra-ui-light .readme-box {
  background-color: white !important;
}
.readme-box {
  border-radius: 15px !important;

}
</style>

不建议删除底部文字 请尊重开发者的劳动成果,谢谢

去掉底部的管理文字

<!---去掉底部管理--->
<style>
.footer span,.footer a:nth-of-type(2){
  display:none;
}
</style>
 

去掉底部的 Powered by Alist:

<!--去掉底部Powered by Alist--->
<style>
.footer span,.footer a:nth-of-type(1){
  display:none;
}
</style>

去掉底部Powered by Alist和管理文字:

<!---去掉底部文字--->
<style
type="text/css"> .footer { 
display: none !important; } 
</style>

<style>
/* 自定义背景图片 */
.chakra-ui-light {
 background-image: url(https://pan.mediy.cn/d/CN%F0%9F%94%93/Image%F0%9F%93%B7/Wallpapers/Other/10308093,5120,2880.jpg) !important;
 background-attachment: fixed;
 background-position: center;
 background-size: cover;
}
/* UI与文字颜色 */
body {
    color: #FF8040 !important;
}
/* 页头简单美化,固定页头 ,圆角*/
.css-1y4izdn{
padding-bottom:10px;
max-width:100%;
position: sticky;
top:0px;
background-color:#f5f8fadb;
border-radius: 10px;
}
/* 留言板圆角 */
.modal-content {
    border-radius: 15px !important;
}
/* 日间模式返回顶部按钮位置 */
.css-1su1lhj {
    bottom: 70px !important;
    right: 100px !important;
}
/* 暗黑模式返回顶部按钮位置 */
.css-143z7jh {
    bottom: 70px !important;
    right: 100px !important;
}
/* 日间模式背景混合色 */
.chakra-ui-light{
  background-image: linear-gradient(120deg,#e0c3fc 0%,#8ec5fc 100%) !important;
  background-attachment: fixed;
}
/* 暗黑模式背景混合色 */
.chakra-ui-dark{
  background-image: linear-gradient(120deg,#e0c3fcba 0%,#182026 100%) !important;
  background-attachment: fixed;
}
/* 日间模式readme页面半透明,阴影边框 */
.chakra-ui-light .readme-box {
  background-color: white !important;
position: relative;
 background-color: rgba(255, 255, 255, 0.5) !important;
}
/* 暗黑模式readme页面背景色*/
.chakra-ui-dark .readme-box {
  background-color: auto !important;
}
/* 日间模式主题半透明,阴影边框 */
.chakra-ui-light .main-box {
    background-color: white !important;
    position: relative;
    background-color: rgba(255, 255, 255, 0.5) !important;
}
/* 暗黑模式主题背景色 */
.chakra-ui-dark .main-box {
    background-color: auto !important;
}
/* 自定义主题页面宽度 */
@media screen and (min-width: 62em) {
    .root-box {
      width: 960px !important;
    }
  }
/* 隐藏alist驱动和管理入口 */
.footer .css-g9cw6v{
display:none
}
/* 隐藏右侧边栏 */
.index-box .css-pb5a2h{
display:none
}
/* 隐藏刷新时页面中间的动画 */
span.css-1uzbm8n{
display:none
}
/* 隐藏弹出小公告 */
div.go2072408551{
display:none
}
/* 浏览器右侧滚动条宽高度 */
::-webkit-scrollbar {
    width: 10px;
    height: 6px;
}

</style>

其他背景混合渐变色彩
/* 背景混合色彩1 /

.chakra-ui-light{
 background-image: linear-gradient(
102.7deg,#fddaff 8.2%,#dfadfc 19.6%,#adcdfc 36.8%,#adfcf4 73.2%,#caf8d0 90.9%);
  background-attachment: fixed;
}
/* 背景混合色彩2 */

.chakra-ui-light{
 background-image: linear-gradient(310deg, #7ec4e9 10%, #fff, #eee);
  background-attachment: fixed;
}

### 回答1: 好的,以下是 HTML 中常用的一些代码: 1. 标题(Heading): HTML 中有六个不同级别的标题,分别用 <h1> 到 <h6> 标签表示,如下所示: ``` <h1>这是一级标题</h1> <h2>这是二级标题</h2> <h3>这是三级标题</h3> <h4>这是四级标题</h4> <h5>这是五级标题</h5> <h6>这是六级标题</h6> ``` 2. 段落(Paragraph): 用 <p> 标签表示一个段落,如下所示: ``` <p>这是一个段落。</p> ``` 3. 链接(Link): 用 <a> 标签表示一个链接,其中 href 属性指定链接的目标 URL,如下所示: ``` <a href="http://www.example.com">这是一个链接</a> ``` 4. 图像(Image): 用 <img> 标签表示一个图像,其中 src 属性指定图像的 URL,如下所示: ``` <img src="image.jpg" alt="这是一个图像"> ``` 5. 列表(List): HTML 中有两种列表类型:有序列表和无序列表。用 <ol> 和 <ul> 标签表示有序列表和无序列表,用 <li> 标签表示列表项,如下所示: ``` <ul> <li>列表项 1</li> <li>列表项 2</li> <li>列表项 3</li> </ul> <ol> <li>列表项 1</li> <li>列表项 2</li> <li>列表项 3</li> </ol> ``` 6. 表格(Table): 用 <table> 标签表示一个表格,用 <tr> 标签表示表格的一行,用 <td> 标签表示表格的一个单元格,如下所示: ``` <table> <tr> <td>单元格 1</td> <td>单元格 2</td> </tr> <tr> <td>单元格 3</td> <td>单元格 4</td> </tr> </table> ``` 这只是 HTML 中一小部分常用代码,HTML 还有很多其他标签和属性可以使用。 ### 回答2: 在HTML中常用代码有很多,以下是一些常见的示例: 1. 标题:使用<h1>到<h6>标记定义不同级别的标题,<h1>是最高级别的标题,<h6>是最低级别的标题。 2. 段落:使用<p>标记来定义段落。 3. 超链接:使用<a>标记和href属性创建超链接,例如:<a href="https://www.example.com">链接到示例网站</a>。 4. 图像:使用<img>标记和src属性插入图像,例如:<img src="image.jpg" alt="图片描述">。 5. 列表:无序列表使用<ul>标记和<li>标记,有序列表使用<ol>标记和<li>标记。 6. 表格:使用<table>、<tr>和<td>标记创建表格,例如: ```html <table> <tr> <td>单元格1</td> <td>单元格2</td> </tr> <tr> <td>单元格3</td> <td>单元格4</td> </tr> </table> ``` 7. 表单:使用<form>标记创建表单,并使用<input>、<select>和<button>等标记定义表单元素。 8. CSS样式:可以使用<style>标记内嵌CSS样式,或使用<link>标记链接外部CSS文件来定义页面的样式。 9. JavaScript脚本:可以使用<script>标记内嵌JavaScript代码,或使用<script src="script.js"></script>标记链接外部JavaScript文件。 10. 标题和段落样式:使用<hx>和<p>标记的class或id属性,结合CSS样式来定义标题和段落的具体样式。 以上只是一部分HTML中常用代码示例,HTML有更多的标记和属性可以用来构建丰富多样的网页。 ### 回答3: 在HTML中,有许多常用代码用来构建网页。下面是一些常见的HTML代码: 1. `<DOCTYPE html>`:这是HTML文档的声明,告诉浏览器使用哪个HTML版本来解析网页。 2. `<html>`和`</html>`:这是HTML文档的根元素,包含了整个HTML文档的内容。 3. `<head>`和`</head>`:这是HTML文档的头部部分,用于定义网页的元数据,如标题、字符集、样式表等。 4. `<title>`和`</title>`:这是网页的标题,将显示在浏览器的标题栏上。 5. `<body>`和`</body>`:这是网页的主体部分,包含了网页的实际内容,如文本、图片、链接等。 6. `<h1>`到`<h6>`:这是HTML的标题标签,用于定义不同级别的标题。 7. `<p>`和`</p>`:这是用于定义段落的标签,使文本换行并形成段落。 8. `<a>`和`</a>`:这是用于创建链接的标签,通过设置href属性指定链接的目标地址。 9. `<img>`:这是用于插入图像的标签,通过设置src属性指定图像的文件路径。 10. `<ul>`和`</ul>`:这是无序列表的标签,用于创建项目符号列表。 11. `<ol>`和`</ol>`:这是有序列表的标签,用于创建编号列表。 12. `<li>`和`</li>`:这是列表项的标签,用于定义列表中的每个项目。 这些只是HTML中的一些常见代码,还有许多其他代码可以用于创建更复杂的网页。学习和熟悉这些常用代码将对网页开发非常有帮助。
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

李佑辰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值