很多人说个人博客园布置得好,今天就发布一下个人博客园美化。javascript
最近更新:2020年3月13日css
在这里会有持续更新的内容,没必要担忧插件失效问题。html
下面进入正文,但愿对您有帮助。java
样板:git
个人主博客:https://www.cnblogs.com/laoguantongxiegogo/github
个人附属博客:https://www.cnblogs.com/laoguantongxiegogofs/npm
1.你要申请博客。canvas
2.申请js权限(对管理员说点好话)app
3.学会复制粘贴。dom
必应每日图片:https://area.sinaapp.com/bingImg/(天天都更新)
把下面的代码复制到css框便可,将本身的背景变成每日图片
若是你想更改,就把url里面的内容改为图片地址便可。
html/* 必应每日随机背景图*/ { background:url(https://area.sinaapp.com/bingImg/) top center no-repeat #000; background-attachment:fixed; } body { background: none; }
把你的导航栏变成半透明的。
将代码复制到css框中便可
#mainContent { background: #fff0; /* 导航菜单半透明*/ }
将签名格式变得更好看,颜色能够本身更改。
放置到css框中便可
/* 设置签名格式 定制css样式 */ #MySignature { display: none; background-color: #B2E866; border-radius: 10px; box-shadow: 1px 1px 1px #6B6B6B; padding: 10px; line-height: 1.5; text-shadow: 1px 1px 1px #FFF; font-size: 16px; font-family: 'Microsoft Yahei'; }
在博客签名里粘贴下面的代码,内容连接能够修改。
<div>做者:<a href="http://www.cnblogs.com/【你的地址】/">【你的名字】</a></div>
<div>出处:<a href="http://www.cnblogs.com/【你的地址】/">http://www.cnblogs.com/【你的地址】/
</a></div>
<p>-------------------------------------------</p>
<p>个性签名:独学而无友,则孤陋而寡闻。作一个灵魂有趣的人!</p>
<p>若是以为这篇文章对你有小小的帮助的话,记得在右下角点个<span>“推荐”</span>哦,博主在此感谢!</p>
<p></p>
<p>万水千山老是情,打赏一分行不行,因此若是你心情还比较高兴,也是能够扫码打赏博主,哈哈哈(っ•̀ω•́)っ✎⁾⁾!</p>
总体设置文字,将标题上色置中。
放置在css框中便可,h1/h2能够按照习惯自行更改
#cnblogs_post_body { color: black; font: 0.875em/1.5em "微软雅黑" , "PTSans" , "Arial" ,sans-serif; font-size: 15px; } #cnblogs_post_body h1 { text-align:center; background: #333366; border-radius: 6px 6px 6px 6px; box-shadow: 0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5); color: #FFFFFF; font-family: "微软雅黑" , "宋体" , "黑体" ,Arial; font-size: 23px; font-weight: bold; height: 25px; line-height: 25px; margin: 18px 0 !important; padding: 8px 0 5px 5px; text-shadow: 2px 2px 3px #222222; } #cnblogs_post_body h2 { text-align:center; background: #006699; border-radius: 6px 6px 6px 6px; box-shadow: 0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5); color: #FFFFFF; font-family: "微软雅黑" , "宋体" , "黑体" ,Arial; font-size: 20px; font-weight: bold; height: 25px; line-height: 25px; margin: 18px 0 !important; padding: 8px 0 5px 5px; text-shadow: 2px 2px 3px #222222; }
之前不少人以前都会在http://www.amazingcounters.com/这个网站统计
可是如今不太稳定,我又在网上找到了另外一个计数器网站,稳定可用。
https://www.cutercounter.com/traditional-chinese-n/
在这里面申请后就可使用,不少皮肤,很好看,得到代码粘贴到博客侧边栏公告便可。
圆形大气的时钟,大小可自定义。
粘贴到博客侧边栏公告便可
<!-- 添加公告栏时钟 -->
<div id="clockdiv">
<canvas id="dom" width="250" height="250">时钟canvas</canvas>
</div>
<script type="text/javascript" src="https://files.cnblogs.com/files/shwee/clock.js"></script>
可爱有趣的人形时钟。
粘贴到博客侧边栏公告便可
<!-- 添加公告栏人形时钟 --> <embed wmode="transparent" src="https://files.cnblogs.com/files/jingmoxukong/honehone_clock_tr.swf" quality="high" bgcolor="#FDF6E3" width="240" height="110" name="honehoneclock" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> <br />
闲着没事能够玩,能够更改颜色。
<!-- 小老鼠游戏控件 --> <div className="sidebarMouse"><object type="application/x-shockwave-flash" style="outline:none;" data="https://files.cnblogs.com/files/jingmoxukong/mouse.swf?up_bodyColor=f0e9cc&up_feetColor=D4C898&up_eyeColor=000567&up_wheelSpokeColor=DEDEDE&up_wheelColor=FFFFFF&up_waterColor=E0EFFF&up_earColor=b0c4de&up_wheelOuterColor=FF4D4D&up_snoutColor=F7F4E9&up_bgColor=F0E4E4&up_foodColor=cba920&up_wheelCenterColor=E4EB2F&up_tailColor=E6DEBE&" width="240" height="160"><param name="movie" value="https://files.cnblogs.com/files/jingmoxukong/mouse.swf?up_bodyColor=f0e9cc&up_feetColor=D4C898&up_eyeColor=000567&up_wheelSpokeColor=DEDEDE&up_wheelColor=FFFFFF&up_waterColor=E0EFFF&up_earColor=b0c4de&up_wheelOuterColor=FF4D4D&up_snoutColor=F7F4E9&up_bgColor=F0E4E4&up_foodColor=cba920&up_wheelCenterColor=E4EB2E&up_tailColor=E6DEBE&"><param name="AllowScriptAccess" value="always"><param name="wmode" value="opaque"></object></div><p></p> 点击黄色小点让小老鼠跑步,点击小老鼠周围便可喂食。
具体能够到网易云音乐找
1.找出你想听的歌/歌单
2.点击“生成外链播放器”
3.选择合适大小
4.将首尾的iframe改成embed
5.粘贴到博客园侧边栏。
示例:
<embed frameborder="no" border="0" marginwidth="0" marginheight="0" width=260 height=86 src="//music.163.com/outchain/player?type=2&id=4010198&auto=0&height=66"></embed>
将下面的音乐粘贴到页脚框便可(这个彷佛更加漂亮)
想要更改歌单,就按照上一条,更改里面的ID便可
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.0/dist/APlayer.min.css"> <script src="https://blog-static.cnblogs.com/files/yjlaugus/APlayer.min.js"></script> <div id="aplayer" class="aplayer" data-id="865331941" data-server="netease" data-type="playlist" data-fixed="true" data-listfolded="true" data-order="random" data-theme="#F58EA8"></div> <script src="https://unpkg.com/meting@1.2/dist/Meting.min.js"></script>
用户点击旁边的QQ便可想你通讯,可是提早要设置好QQ在线状态
<!--靠靠找我--> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=【你的QQ号】&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:【你的QQ号】:41" alt="点击按钮前记得打开QQ" title="点击按钮前记得打开QQ"/></a> <p class="wenzi">有问题找我哦,若是点击按钮失效,就直接向QQ:【你的号码】发送消息</p>
更改内容添加到博客园侧边栏便可
<marquee><a href="#"><font color="red" size="4">你的内容</marquee>
更改内容添加到页首便可
<!-- 添加博客顶部博主信息--> <p style="text-align: center;font-size:35px;margin-bottom:5px;margin-top:20px;opacity: 0.5">WELCOME</p>
更改内容添加到页首便可
<!-- 添加顶部滚动信息(公告)--> <div id="Scroll_info" style="text-align: center;color:blue;font-size:16px;padding:16px;opacity: 0.5">任何一个伟大的目标,都有一个微不足道的开始。</div>
当别人复制粘贴时,会有单独的警告(我的是不推荐使用别人的禁止复制粘贴了)
添加到页首便可
<script language="javascript" type="text/javascript"> jQuery(document).on('copy', function(e) { var selected = window.getSelection(); var copyFooter = '<br>-<br>著做权归做者全部。<br>' + '商业转载请联系做者得到受权,非商业转载请注明出处。<br>' + '做者:老官童鞋gogo<br> 源地址:' + document.location.href + '<br>来源:博客园cnblogs<br>© 版权声明:本文为博主原创文章,转载请附上博文连接!'; var copyHolder = $('<div>', {html: selected + copyFooter, style: {position: 'absolute', left: '-99999px'}});
不在使用微软默认图标(仅在博客内生效)
能够更改样式
添加到css框
a:hover { cursor:url(https://files.cnblogs.com/files/laoguantongxiegogo/click_24px_1231393_easyicon.net.ico),auto; } body { cursor:url(https://files.cnblogs.com/files/laoguantongxiegogo/pointer_24px_1231389_easyicon.net.ico),auto; }
点击返回顶部。
方便你我
粘贴到页首
<!-- 返回顶部 --> <style> #back-top { position: fixed; bottom: 10px; right: 8px; z-index: 99; } #back-top span { width: 70px; height: 140px; display: block; background:url(https://images.cnblogs.com/cnblogs_com/laoguantongxiegogo/1667745/o_200312023941%E8%BF%94%E5%9B%9E%E9%A1%B6%E9%83%A8.png) no-repeat center center; } #back-top a{outline:none} </style> <script type="text/javascript"> $(function() { // hide #back-top first $("#back-top").hide(); // fade in #back-top $(window).scroll(function() { if ($(this).scrollTop() > 400) { $('#back-top').fadeIn(); } else { $('#back-top').fadeOut(); } }); // scroll body to 0px on click $('#back-top a').click(function() { $('body,html').animate({ scrollTop: 0 }, 500); return false; }); }); </script> <p id="back-top" style="display:none"><a href="#top"><span></span></a></p>
点击后出现社会主义核心价值观。
到处要学习
粘贴到页脚。
<script type="text/javascript"> /* 鼠标特效 */ var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { var a = new Array("❤富强❤","❤民主❤","❤文明❤","❤和谐❤","❤自由❤","❤平等❤","❤公正❤","❤法治❤","❤爱国❤","❤敬业❤","❤诚信❤","❤友善❤"); 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>
点击出现烟花。
粘贴到页脚
<script src="https://blog-static.cnblogs.com/files/yjlblog/cursor-effects.js"></script> <canvas width="1366" height="662" style="position: fixed; left: 0px; top: 0px; z-index: 2147483647; pointer-events: none;"></canvas>
天上飘雪花
css部分代码
#Snow{ position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; background: rgba(125,137,95,0.1); pointer-events: none; }
页脚部分代码
<div class="Snow"> <canvas id="Snow"></canvas> </div> <script src="https://blog-static.cnblogs.com/files/Return-blog/xue.js"></script>
两个都要有
图片能够自行选择
个人是一个小电脑
粘贴到页脚
<script type="text/javascript" language="javascript"> //Setting ico for cnblogs var linkObject = document.createElement('link'); linkObject.rel = "shortcut icon"; linkObject.href = "https://blog-static.cnblogs.com/files/laoguantongxiegogo/macbook_128px_1225720_easyicon.net.ico"; document.getElementsByTagName("head")[0].appendChild(linkObject); </script>
这个放在侧边栏,列表式的。
不过和flag counter不同(flag counter被博客园禁用了)
从下面的这个网站获取代码后粘贴到侧边栏
一个小地球,我的感受放在页脚好看一些。
从下面的这个网站获取代码后粘贴到页脚
定制左侧随笔分类上下项之间的间距,左侧随笔分类显示有多少项,你就在后面增长多少项
粘贴到css:
/* 定制左侧随笔分类上下项之间的间距,左侧随笔分类显示有多少项,你就在后面增长多少项 */ #CatList_LinkList_0_Link_0{ } #CatList_LinkList_0_Link_1{ margin-top:10px; } #CatList_LinkList_0_Link_2{ margin-top:10px; } #CatList_LinkList_0_Link_3{ margin-top:10px; } #CatList_LinkList_0_Link_4{ margin-top:10px; } #CatList_LinkList_0_Link_5{ margin-top:10px; } #CatList_LinkList_0_Link_6{ margin-top:10px; } #CatList_LinkList_0_Link_7{ margin-top:10px; } #CatList_LinkList_0_Link_8{ margin-top:10px; } #CatList_LinkList_0_Link_9{ margin-top:10px; } #CatList_LinkList_0_Link_10{ margin-top:10px; } #CatList_LinkList_0_Link_11{ margin-top:10px; } #CatList_LinkList_0_Link_12{ margin-top:10px; } #CatList_LinkList_0_Link_13{ margin-top:10px; } #CatList_LinkList_0_Link_14{ margin-top:10px; }
可爱的看板娘
天天打开博客看到她心情好极了
这个较为复杂,详情看这位大佬的博客
http://www.javashuo.com/article/p-usgyoguo-r.html
让日历更好看一些
粘贴到css
/* 公告栏日历样式设置 */ .Cal { border: 1px solid #F5F5F5; width: 190px; /*日历宽度*/ font-family: Arial; font-size: 13px; margin-top: 10px; margin-bottom: 10px; height: 180px; background-color: #F5F5F5; /*日历背景颜色*/ margin-left: 0; } /*日历的第一行标题 年份/月份这一栏配置*/ .CalTitle { background-color: #F5F5F5; border-color: #adf; font-family: Arial; font-size: 14px; color: #000; margin-left: 0; padding: 0; height: 100%; font-weight: bold; } /*日历的第二行 星期信息这一行配置*/ .CalDayHeader { background-color: #F5F5F5; }
这些皮肤是现成的,不推荐私自更改,若有能力能够尝试。
具体的下载、操做请去他的博客查看https://github.com/BNDong/Cnblogs-Theme-SimpleMemory。
个人附属博客就是采用他的皮肤,十分好看,做者持续更新!
具体的下载、操做请去他的博客查看https://www.cnblogs.com/gshang/p/biliTheme.html。
这个博客也很好看的,做者持续更新!
就说到这里,未完待续,若是对你有一点小小的帮助的话,点个赞和关注吧。