关键词:
设置与我联系
侧边栏公告代码
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=xxxxxxxxxxx&site=qq&menu=yes"> <img align="absmiddle" border="0" src="http://wpa.qq.com/pa?p=2:xxxxxxxxxxxx:41 &r=0.30709030851721764" alt="欢迎与我联系" title="欢迎与我联系"> </a>
将xxxxx部分改为你QQ号即可
设置标题样式
页面定制CSS代码
#cnblogs_post_body
color: black;
font: 0.875em/1.5em "微软雅黑" , "PTSans" , "Arial" ,sans-serif;
font-size: 15px;
#各个等级标题的颜色样式
#cnblogs_post_body h1
background: #2B6695;
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
background: #008eb7;
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;
#cnblogs_post_body h3
background: #399ab2;
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: 18px;
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 h4
background: #2B6600;
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: 16px;
font-weight: bold;
height: 24px;
line-height: 23px;
margin: 12px 0 !important;
padding: 5px 0 5px 10px;
text-shadow: 2px 2px 3px #222222;
#页面中a标签鼠标位置
#cnblogs_post_body h2:a
color: rgb(235, 235, 235);
#cnblogs_post_body h2 a:hover
color: rgb(255, 102, 0);
#页面中标题位置
#cnblogs_post_body h1
color: rgb(235, 235, 235);
#cnblogs_post_body h1:hover
color: rgb(255, 102, 0);
#cnblogs_post_body h2
color: rgb(235, 235, 235);
#cnblogs_post_body h2:hover
color: rgb(255, 102, 0);
#cnblogs_post_body h3
color: rgb(235, 235, 235);
#cnblogs_post_body h3:hover
color: rgb(255, 102, 0);
#cnblogs_post_body h4
color: rgb(235, 235, 235);
#cnblogs_post_body h4:hover
color: rgb(255, 102, 0);
设置打赏
页首Html代码
<!--打赏 Start--> <script> window.tctipConfig = staticPrefix: "http://static.tctip.com", buttonImageId: 5, buttonTip: "dashang", list: alipay: qrimg: "http://images.cnblogs.com/cnblogs_com/HByang/1259487/t_QQ%e6%88%aa%e5%9b%be20180721211435.jpg", weixin: qrimg: "http://images.cnblogs.com/cnblogs_com/HByang/1259487/t_QQ%e6%88%aa%e5%9b%be20180721210757.jpg", ; </script> <script src="http://static.tctip.com/js/tctip.min.js" />
添加快速置顶小火箭
页首Html代码
<!--添加快速置顶小火箭--> <style> #back-top position: fixed; bottom: 10px; right: 5px; z-index: 99; #back-top span width: 50px; height: 64px; display: block; background:url(http://images.cnblogs.com/cnblogs_com/seanshao/855033/o_rocket.png) no-repeat center center; #back-top aoutline:none </style> <script type="text/javascript"> $(function() // hide #back-top first $("#back-top").hide(); // fade in #back-top $(window).scroll(function() if ($(this).scrollTop() > 500) $(‘#back-top‘).fadeIn(); else $(‘#back-top‘).fadeOut(); ); // scroll body to 0px on click $(‘#back-top a‘).click(function() $(‘body,html‘).animate( scrollTop: 0 , 800); return false; ); ); </script> <p id="back-top" style="display:none"><a href="#top"><span></span></a></p>
设置爱心特效
博客侧边栏公告代码
<!-- 爱心特效 --> <script type="text/javascript"> (function(window,document,undefined) var hearts = []; window.requestAnimationFrame = (function() return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) setTimeout(callback,1000/60); )(); init(); function init() css(".heartwidth: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);.heart:after,.heart:beforecontent: ‘‘;width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;.heart:aftertop: -5px;.heart:beforeleft: -5px;"); attachEvent(); gameloop(); function gameloop() for(var i=0;i<hearts.length;i++) if(hearts[i].alpha <=0) document.body.removeChild(hearts[i].el); hearts.splice(i,1); continue; hearts[i].y--; hearts[i].scale += 0.004; hearts[i].alpha -= 0.013; hearts[i].el.style.cssText = "left:"+hearts[i].x+"px;top:"+hearts[i].y+"px;opacity:"+hearts[i].alpha+";transform:scale("+hearts[i].scale+","+hearts[i].scale+") rotate(45deg);background:"+hearts[i].color; requestAnimationFrame(gameloop); function attachEvent() var old = typeof window.onclick==="function" && window.onclick; window.onclick = function(event) old && old(); createHeart(event); function createHeart(event) var d = document.createElement("div"); d.className = "heart"; hearts.push( el : d, x : event.clientX - 5, y : event.clientY - 5, scale : 1, alpha : 1, color : randomColor() ); document.body.appendChild(d); function css(css) var style = document.createElement("style"); style.type="text/css"; try style.appendChild(document.createTextNode(css)); catch(ex) style.styleSheet.cssText = css; document.getElementsByTagName(‘head‘)[0].appendChild(style); function randomColor() return "rgb("+(~~(Math.random()*255))+","+(~~(Math.random()*255))+","+(~~(Math.random()*255))+")"; )(window,document); </script>
博客园界面美化(代码片段)
博客园界面美化0x00.写在前面皮肤作者:@SevenNight皮肤作者博客:SevenNight修改人:@Ryanjie修改人:Ryanjie前几天无意之中看到了一款特别好看(每个人的眼光都不一样)的博客皮肤“verdant”,皮肤的作者是@SevenNight。当时感觉这款... 查看详情
博客园的美化(代码片段)
前言第一次写博客想从美化页面开始。页首html代码这里引入的是来自https://www.cnblogs.com/jingmoxukong/p/7826982.html的css文件1<!--自定制样式文件-->2<linkrel="stylesheet"href="https://files.cnblogs.com/files/jingmoxukong/cnblog.min.cs 查看详情
博客园美化(代码片段)
闲着没事对博客皮肤做了些美化,主要是css,js写了些小功能css部分:整体采用蓝色简洁风,有些部分我不用,所以没优化,比如标签,日历,相册,头部固定在顶部,侧边栏固定250px;右边内容主体自适应,支持,收藏和关注按... 查看详情
美化博客园(代码片段)
设置与我联系侧边栏公告代码<atarget="_blank"href="http://wpa.qq.com/msgrd?v=3&uin=xxxxxxxxxxx&site=qq&menu=yes"> <imgalign="absmiddle"border="0"src="http://wpa.qq.com/pa?p=2:xxxxxx 查看详情
[博客美化]博客园syntaxhighlighter代码高亮(代码片段)
在网上搜了一圈,觉得用WindowsLiveWriter/OpenLiveWriter代码着色太繁琐了,仅仅为了实现博客代码着色功能就要下载新软件和搞一堆配置。Win10用户只能使用OpenLiveWriter。Web端能干的事干嘛多搞功夫。如果不愿意网页登陆账号只想通过... 查看详情
博客园美化-darkgreentrip(代码片段)
1、第一步,样式的形成与博客皮肤的选择有很大关系本文选择darkgreentrip2、代码插入2.1页面定制CSS代码```Objective-C#homemargin:0auto;width:95%;/原始65/min-width:980px;/页面顶部的宽度/background-color:rgba(245,245,245,0.7);padding:30px;margin-top:0px; 查看详情
博客园代码高亮美化教程(代码片段)
先简单展示下效果吧:首先需要导入js代码,在侧边栏公告处将以下代码复制进入:<scripttype="text/javascript">!function()varq=null;window.PR_SHOULD_USE_CONTINUATION=!0;(function()functionS(a)functiond(e)varb=e.charCodeAt(0);if(b!==9 查看详情
博客园美化(代码片段)
侧栏字体更改1.catListTitle2font-weight:bold;3line-height:1.2;4margin-top:21px;5margin-bottom:10.5px;6border-left:10pxsolid#008000;7padding:10px010px14px;8text-align:left;9font-family:微软雅黑;1011#profile_blo 查看详情
博客园美化代码备份(代码片段)
#Header1_HeaderTitlefont-family:"华文行楷";font-size:62px;font-weight:bold;padding-top:15px;padding-bottom:5px;padding-left:20px;padding-right:0px;text-align:center;Header2_HeaderTitlefont-fa 查看详情
博客园美化:添加赞赏功能(代码片段)
将以下代码复制粘贴到侧边栏HTML中:<!--tctip支付赞赏/打赏--><scripttype="text/javascript"src="https://blog-static.cnblogs.com/files/zhangshuhao1116/pay.js"></script><!--js文件引入--><script>newtct 查看详情
博客园主题自定义美化(代码片段)
第一步,上传自定义的css 在浏览器中直接打开https://files.cnblogs.com/files/JetpropelledSnake/cnblogs.css,然后按ctrl+s,即可将本人博客用到的自定义css下载下来。接着在博客的管理页面,找到文件选项卡,上传刚刚下载的文件:&n... 查看详情
博客园美化:添加qq联系按钮(代码片段)
将以下代码复制粘贴到博客侧边栏公告HTML: <!--联系qq--><divalign="center"><atarget="_blank"href="http://wpa.qq.com/msgrd?v=3&uin=744461004&site=qq&menu=yes"><imgalign="absmiddle"borde 查看详情
博客园页面美化(代码片段)
对以前的我来说,我觉得博客只有自己搭建的才有页面美化,像博客园这样的可能没有。但是,突然有一天在我查资料的时候,发现了一篇很好看的博客,我就留意了一下他的域名,发现竟然是博客园的。就开始决定把自己的... 查看详情
博客园主题美化diy教程(代码片段)
感想因为受到友人启发,部署了个静态页面,想着太单调了,要不连博客园的修一修,就去网上翻找了一下,果然给我发现了,但是在DIY的中途,遇到一大堆问题,因为是几年前的源码了,很多链接已经噶了。首先这个DIY页面的... 查看详情
博客美化(代码片段)
参考链接:https://github.com/esofar/cnblogs-theme-silence介绍Silence是一款界面简洁、运行高效的博客园主题,主要面向于经常混迹博客园的朋友。简单概括其几个主要特点:专注阅读、精致漂亮的UI;事无巨细的部署文档;兼容移动端浏... 查看详情
博客园美化教程大集合(超详细,看这篇就够了)(代码片段)
阅读目录: 1. 前言 2.定制自己的博客0.美化整体效果1.准备工作2.自定义个性化导航栏3.添加顶部博主信息4.添加顶部滚动公告5.为博客文章添加目录导航6.添加分享功能按键7.定制推荐和反对按键的炫酷样式8.添加快速... 查看详情
博客园样式美化ii(代码片段)
前言感谢大家对之前博客园样式美化的认可,我终于更新啦啦啦啦更新内容01|优化首页显示效果优化前:优化后:有没有感觉瞬间立体起来了呢~02|增加管理入口这个很简单,就是导航条上加了个管理的入口原本想设置为只有博... 查看详情
博客园主题美化配置(awescnb)(代码片段)
平时比较喜欢捣鼓主题,但是没办法见一个爱一个,或者有时候就一个主题用腻了,想尝试另一个主题,此处记录下是为了切换是更快的还原当初的配置,同时可以给广大网友提供参考~ 当前主题为awescnb系列主题中的ge... 查看详情