一、博客園樣式美化
1、功能:
背景圖片
公告欄頭像
看板娘
鼠標特效
音樂插件
二、博客園設置步驟
1、准備工作
(1)、進博客園管理-設置頁面使用如下皮膚。
(2)、申請公告欄JS權限,博客側邊欄公告(支持HTML代碼)處點擊申請,
理由可以寫,制作個人風格博客等。審批很快的。
(3)、打開公告欄,進博客園管理-選項頁面勾選公告。本人就放入了一個頭像。
還可以寫些文字放入支付寶或者微信贊助碼等,可以自己百度研究。
2、背景圖片設置步驟
(1)、選擇一張自己的圖片,進入博客園管理-相冊,上傳到博客園的相冊,然后查看原圖,復制查看原圖的網址。
(2)、進博客園管理-設置頁面,在頁面定制 CSS 代碼放入代碼不禁用CCS模板,
background: url處改成剛才復制的查看原圖網頁地址,喜歡本人的圖片可以不該地址。
#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/Lxxv5/1907760/o_201228063819%E8%A5%BF%E5%B7%B4%E4%B8%B9%E5%B2%9B.jpeg?id=1527765712574744) 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; } div.commentform p{ margin-bottom:10px; } .comment_btn { padding: 5px 10px; height: 35px; width: 90px; border: 0 none; border-radius: 5px; background: #ddd; color: #999; cursor:pointer; font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋體, Arial, sans-serif; text-shadow: 0 0 1px #fff; display: inline !important; } .comment_btn:hover{ padding: 5px 10px; height: 35px; width: 90px; border: 0 none; border-radius: 5px; background: #258fb8; color: white; cursor:pointer; font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋體, Arial, sans-serif; text-shadow: 0 0 1px #fff; display: inline !important; } #commentform_title { background-image:none; background-repeat:no-repeat; margin-bottom:10px; padding:0; font-size:24px; } #commentbox_opt,#commentbox_opt + p { text-align:center; } .commentbox_title { width: 100%; } #tbCommentBody { font-family:'Microsoft Yahei', Microsoft Yahei, 宋體, sans-serif; margin-top:10px; max-width:100%; min-width:100%; background:white; color:#333; border:2px solid #fff; box-shadow:inset 0 0 8px #aaa; // padding:10px; height:250px; font-size:14px; min-height:120px; } .feedbackItem { font-size:14px; line-height:24px; margin:10px 0; padding:20px; background:#F2F2F2; box-shadow:0 0 5px #aaa; } .feedbackListSubtitle { font-weight:normal; } #blog-comments-placeholder, #comment_form { padding: 20px; background: #fff; -webkit-box-shadow: 1px 2px 3px #ddd; box-shadow: 1px 2px 3px #ddd; margin-bottom: 50px; } .feedback_area_title { margin-bottom: 15px; font-size: 1.8em; } .feedbackItem { border-bottom: 1px solid #CCC; margin-bottom: 10px; padding: 5px; background: rgb(248, 248, 248); } .color_shine {background: rgb(226, 242, 255);} .feedbackItem:hover {-webkit-animation-name: color_shine;-webkit-animation-duration: 2s;-webkit-animation-iteration-count: infinite;} #comment_form .title { font-weight: normal; margin-bottom: 15px; }
2、公告欄頭像
(1)、進入博客園管理-設置-頭像設置處上傳頭像,上傳后按F12檢查頭像地址,復制地址
(2)、進入博客園管理-設置頁面的博客側邊欄公告放入如下代碼:
src改成我們剛才檢查的圖片的地址
<!-- 公告頭像 --> <img src="https://pic.cnblogs.com/avatar/1757199/20201225173456.png">
2、看板娘
(1)、進入博客園管理-設置頁面的博客側邊欄公告放入如下代碼:
<!-- 看板娘 --> <link rel="stylesheet" type="text/css" href="https://blog-static.cnblogs.com/files/clwydjgs/waifu.css"/> <link rel="stylesheet" type="text/css" href="https://blog-static.cnblogs.com/files/clwydjgs/waifu.css"/> <link rel="stylesheet" type="text/css" href="https://files.cnblogs.com/files/yjlblog/flat-ui.min.css"/> <div class="waifu" id="waifu" > <div class="waifu-tips" style="opacity: 1;"></div> <canvas id="live2d" width="280" height="250" class="live2d"></canvas> <div class="waifu-tool"> <span class="fui-home"></span> <span class="fui-chat"></span> <span class="fui-eye"></span> <span class="fui-user"></span> <span class="fui-photo"></span> <span class="fui-info-circle"></span> <span class="fui-cross"></span> </div> </div> <script src="https://blog-static.cnblogs.com/files/clwydjgs/live2d.js"></script> <script src="https://blog-static.cnblogs.com/files/clwydjgs/waifu-tips.js"></script> <script type="text/javascript">initModel()</script>
3、鼠標特效
(1)、進入博客園管理-設置頁面的博客側邊欄公告放入如下代碼:
內容可以自定義
<!-- 愛心特效 --> <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>
4、網易雲播放器
(1)、進入博客園管理-設置頁面的頁腳 HTML 代碼放入如下代碼:
<!-- 音樂播放器 --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.0/dist/APlayer.min.css"> <script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.0/dist/APlayer.min.js"></script> <div id="aplayer" class="aplayer" data-id="396543737" data-lrctype="0" data-server="netease" data-type="playlist" data-fixed="true" data-listfolded="true"></div> <script src="https://unpkg.com/meting@1.2/dist/Meting.min.js"></script> <script type="text/javascript"></script>
(2)、上面是我的網易雲歌單,你可以在你的網易雲歌單點擊分享然后復制鏈接
鏈接是這樣的:https://music.163.com/playlist?id=396543737&userid=287461793
id:396543737就是我們歌單地址,音樂播放器data—id換成你的id可以了。
樣式美化就介紹到這里,后期還會更新,謝謝,請點贊加關注。