zoukankan      html  css  js  c++  java
  • 博客园美化

    一、自动生成的博客园皮肤

      用了博客园这么久了,就想让页面变得好看一点,就想到更换博客园皮肤,最简单的方法就是在设置里面点击博客皮肤选择,选择你心水的款式,双击设置保存就可以啦!

    如下图:

    二、自定义修改博客园的皮肤(以SimpleMemory为例)

      首先要自定义修改我们就需要有js权限,在设置里面申请就可以了,如果你是在白天申请的话,几分钟就通过申请了;如果是在晚上,你可能需要多等几个小时了。

    如图:(我自己电脑是已经申请好了哒)

    <1>背景设置

      首先选择你想要的图片,在相册那里添加。

    在你的页面定制CSS代码中添加一下代码:

    /*simplememory*/
    #google_ad_c1, #google_ad_c2 {display:none;}
    .syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, 
    .syntaxhighlighter table tr, .syntaxhighlighter table tbody, .syntaxhighlighter table thead, .syntaxhighlighter table caption, 
    .syntaxhighlighter textarea {
    font-size: 14px!important;
    }
    #home {
    opacity: 0.80;
    margin: 0 auto;
    width: 85%;
    min-width: 950px;
    background-color: #fff;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
    }
    #blogTitle h1 {
    font-size: 30px;
    font-weight: bold;
    font-family: "Comic Sans MS";
    line-height: 1.5em;
    margin-top: 20px;
    color: #515151;
    }
    #navList a:hover {
    color: #4C9ED9;
    text-decoration: none;
    }
    #navList a {
    display: block;
    width: 5em;
    height: 22px;
    float: left;
    text-align: center;
    padding-top: 18px;
    }
    #navigator {
    font-size: 15px;
    border-bottom: 1px solid #ededed;
    border-top: 1px solid #ededed;
    height: 50px;
    clear: both;
    margin-top: 25px;
    }
    .catListTitle {
    margin-top: 21px;
    margin-bottom: 10.5px;
    text-align: left;
    border-left: 10px solid rgba(82, 168, 236, 0.8);
    padding: 10px 0 14px 10px;
    background-color: #f5f5f5;
    }
    #ad_under_post_holder #google_ad_c1,#google_ad_c2{  
    display: none !important;
    }
    body {
    color: #000;
    background: url(https://images.cnblogs.com/cnblogs_com/CJR-QYF/1558516/o_2.jpg
    ) fixed;
    background-size: 100%;
    background-repeat: no-repeat;
    font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif;
    font-size: 12px;
    min-height: 101%;
    }
    #topics .postTitle {
    border: 0px;
    font-size: 200%;
    font-weight: bold;
    float: left;
    line-height: 1.5;
    width: 100%;
    padding-left: 5px;
    }

    把这个位置的链接换成你自己图片的链接(在相册里存好以后,右键单击复制链接地址就好了)

    <二>侧边栏添加头像

    登录博客园后台https://www.cnblogs.com/CJR-QYF/查看自己的个人头像并复制图片地址

    修改下面代码中的图片地址为你个人头像的图片地址

    <img src="https://pic.cnblogs.com/avatar/1785228/20191007130842.png" alt="辣條先生的头像" class="img_avatar">
    <p class="para">关于我:<strong>爱樊哥爱生活~</strong></p>
    <p class="para">联系我:<a href="mailto:2387519039@qq.com" title="email">2387519039@qq.com</a></p> 

    添加到博客管理-设置-博客侧边栏公告位置处即可

    效果如下:

    <三>会动的小人时钟设置

    将下面代码添加至博客管理-设置-博客侧边栏公告位置处即可

    <hr>
    <embed allowscriptaccess="never" allownetworking="internal" invokeurls="false" src="https://files.cnblogs.com/files/mmzs/flashDate.swf"
    pluginspage="https://files.cnblogs.com/files/mmzs/flashDate.swf" type="application/x-shockwave-flash" quality="high" autostart="0" wmode="transparent" width="220"
    height="65" align="middle">
    </div>

    效果如下:

    <四>鼠标特效

    复制代码到页脚HTML代码中

    <script type="text/javascript">
    /* 鼠标特效 */
    var a_idx = 0;
    jQuery(document).ready(function($) {
        $("body").click(function(e) {
            var a = new Array("❤welcome to❤","❤博客园❤","❤辣條先生❤","❤富强❤","❤民主❤","❤文明❤","❤和谐❤","❤自由❤","❤平等❤","❤公正❤","❤法治❤","❤爱国❤","❤敬业❤","❤诚信❤","❤友善❤");
            var $i = $("<span></span>").text(a[a_idx]);
            a_idx = (a_idx + 1) % a.length;
            var x = e.pageX,
            y = e.pageY;
            $i.css({
                "z-index": 999999999999999999999999999999999999999999999999999999999999999999999,
                "top": y - 20,
                "left": x,
                "position": "absolute",
                "font-weight": "bold",
                "color": "rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"
            });
            $("body").append($i);
            $i.animate({
                "top": y - 180,
                "opacity": 0
            },
            1500,
            function() {
                $i.remove();
            });
        });
    });
    </script>

    效果如下:

    三、总结

    这次分享就到这里,大家快去试试吧!后续再改进会接着分享的哟!

  • 相关阅读:
    Day3----《Pattern Recognition and Machine Learning》Christopher M. Bishop
    Day2----《Pattern Recognition and Machine Learning》Christopher M. Bishop
    学习笔记-----《Pattern Recognition and Machine Learning》Christopher M. Bishop
    “数学之美”笔记
    win10下使用nodejs安装及webstorm创建express项目的指导
    deepin/ubuntu下搭建Jekyll环境
    struts2.3.23升级到struts2.3.32
    struts2.5能不能再恶心点
    线程通信、线程同步以及进城通信的真的搞懂了么
    WINFORM数据库操作,有点像安装里面的SQLITE
  • 原文地址:https://www.cnblogs.com/CJR-QYF/p/11710666.html
Copyright © 2011-2022 走看看