页面定制CSS代码
#site_nav_under, #ad_under_post_holder, blog_news_kb,google_ad_c2, #comment_nav{ display:none !important;}#c_n15,
#under_post_kb,
#ad_c2,
#under_post_news,
#ad_c1,
#ad_t2,
.diggit,
.blogStats{
display:none;
}
.audio{
position:absolute;
left:20px;
top:20px;
}
p{
color:red;
}.commentbox_title_left{
color:black;
}.login_tips{
color:grey;
}#EntryTag,
.blog_comment_body{
color:#558958;
}#post_next_prev,
#BlogPostCategory{
color:red;
}
body {
font-size:15px;
padding:0;
margin:0;
font-family:"微软雅黑","宋体",Arial;
min-width:1200px;
background:url(http://img2.ph.126.net/bQ1elCowZVPi9DGynr0rbQ==/1351642838182450822.jpg) no-repeat ;
background-size:100% 100%;
color:black;
z-index:-999;
}#home {
position:relative;
background:#00ffffff;
box-shadow:0 0 10px #000;
margin:30px auto;
width:97%;
overflow:auto;
border:solid 1px #fff;
z-index:10;
}
.postBody p,.postCon p {
color:black;
margin:7px 0;
line-height:24px;
}h1 {
margin:0;
}h2 {
font-size:14px;
}h3 {
font-size:15px;
font-weight:bold;
}
a {
color:#464646;
text-decoration:none;
}a:hover {
text-decoration:underline;
}ul {
list-style:none;
margin:0;
padding:0;
}image {
border:none;
}#header {
padding:20px;
}
#blogTitle,#blogTitle a {
font-weight:bold;
color:#666;
}#blogTitle .title {
margin-top:10px;
height:100px;
line-height:100px;
font-size:36px;
padding-left:120px;
background:#fff url('http://images.cnblogs.com/cnblogs_com/libaoheng/305804/o_light2.png') no-repeat;
}.headermaintitle {
}#blogTitle,#blogTitle a:hover {
text-decoration:none;
}
.subtitle {
padding-left:30px;
font-size:14px;
color:#999;
font-weight:normal;
margin:10px 0;
}
#navigator {
font-size:16px;
height:48px;
background:#55895B;
text-align:center;
margin-top:20px;
margin-bottom:20px;
}#navList li {
margin:0;
line-height:48px;
display:inline-block;
float:left;
}#navList li:hover {
background:#6DA47D;
}#navList li a {
padding:0 30px;
text-decoration:none;
line-height:48px;
border:0;
color:#fff;
display:-moz-inline-box;
display:inline-block;
}.blogStats {
height:48px;
color:#fff;
line-height:48px;
}#main {
padding:20px;
position:relative;
z-index:10;
}
#blog-calendar {
padding-bottom: 5px;
margin-bottom: 35px;
box-shadow: 0 1px 3px #ccc;
border: 1px solid #EDEDED;
}#blog-calendar td {
font-size: 12px;
font-family: "Comic Sans MS";
}#blog-calendar th {
font-size: 12px;
}#calendar {
width: 228px;
padding-bottom: 5px;
margin-bottom: 35px;
border: 1px solid #EDEDED;
box-shadow: 0 1px 3px #ccc;
}#calendar .Cal {
width: 100%;
line-height: 1.5em;
}#calendar td {
font-family: "Comic Sans MS";
background: #FFFFFF;
padding-top: 2px;
}.Cal { border: none;
color: #666;
}#calendar table a:link, #calendar table a:visited, #calendar table a:active {
font-weight: bold;
}#calendar table a:hover {
color: white;
text-decoration: none;
}.CalTodayDay { background: #558958 !important;
color: #FFF;
font-weight: bold;
}.CalWeekendDay {
padding-top: 4px;
padding-bottom: 4px;
}.CalOtherMonthDay {
color: #ccc;
padding-top: 4px;
padding-bottom: 4px;
}#calendar .CalNextPrev a:link, #calendar .CalNextPrev a:visited, #calendar .CalNextPrev a:active { font-weight: bold;
padding-left: 10px;
padding-right: 15px;
}.CalDayHeader {
background: #F8F8F8;
font-weight: 100;
color: #5E5F63;
}.CalTitle { width: 100%;
height: 25px;
text-align: center;
font-size: 14px;
font-weight: bold;
padding: 5px 0;
color: #FFF;
}.CalTitle td {
background: #F8F8F8 !important;
border: 0px !important;
color: #5E5F63;
font-family: "Comic Sans MS";
}
#sideBarMain {
padding:0 10px 0 0;
background:#00ffffff;
margin:0 0 20px 0;
width:190px;
font-size:12px;
line-height:22px;
}#sideBarMain a {
color:#666;
}#leftcontentcontainer {
color:#666;
}.newsItem {
color:#666;
}
#profile_block {
margin-top:0px;
line-height:24px;
text-align:left;
}
#mainContent {
margin-top:0px;
padding-top:0px;
padding-right:0px;
background:#00ffffff;
padding-bottom:0px;
float:right;
width:960px;
padding-left:0px;
}
.day {
position:relative;
padding:0;
margin:0 0 20px 0;
z-index:10;
}
.postTitle a {
color:#464646;
}.postTitle {
padding-bottom:10px;
font-size:20px;
font-weight:bold;
color:#464646;
background:url('http://images.cnblogs.com/cnblogs_com/libaoheng/305804/o_br229512.link(en-us,MSDN.10).gif') no-repeat 0 3px;
padding-left:30px;
}.dayTitle {
display:none;
}
.c_b_p_desc {
padding:10px;
line-height:24px;
color:#888;
}.c_b_p_desc_readmore{
color:#558958;
}.c_b_p_desc a:hover {
text-decoration:none;
border-bottom-width:1px;
border-bottom-style:dotted;
}
.desc_img {
margin-left:10px;
border:solid 1px #fff;
box-shadow:0 0 10px #aaa;
}
#topics .post {
background:#00ffffff;
}.postCon {
padding:10px 20px 0 20px;
}.postDesc {
margin:0 30px;
margin-bottom:2px;
padding:8px 0px;
font-size:12px;
color:black;
background:#00ffffff;
text-align:right;
}.postDesc a {
color:#558958;
}.postBody {
background:#00ffffff;
padding:0;
}
#google_q,#q {
height:22px;
width:120px;
border:solid 1px #ccc;
box-shadow:inset 0 0 3px #ddd;
border-radius:4px;
}
.btn_my_zzk {
font-family:'Microsoft Yahei';
border:none;
height:26px;
width:60px;
padding:1px;
font-size:14px;
cursor:pointer;
position:relative;
vertical-align:middle;
display:inline-block;
background:#55895B;
border-radius:4px;
color:#fff;
}.btn_my_zzk:hover {
background:#6DA47D;
}
#btn_comment_submit {
border:none;
height:48px;
width:120px;
}
.comment_btn {
font-family:'Microsoft Yahei';
border:none;
height:48px;
width:120px;
font-size:18px;
cursor:pointer;
position:relative;
vertical-align:middle;
display:inline-block;
background:#55895B;
color:#fff;
}#btn_comment_submit:hover {
background:#6DA47D;
}
.feedback_area_title {
padding:10px;
font-size:24px;
font-weight:bold;
color:#55895B;
border-bottom:solid 6px #55895B;
}.feedbackListSubtitle {
font-size:12px;
color:#888;
}.feedbackListSubtitle a {
color:#888;
}.comment_quote {
background:#FCFAAC;
padding:15px;
border:1px solid #CCC;
}#commentform_title {
color:#55895B;
background-image:none;
background-repeat:no-repeat;
margin-bottom:10px;
padding:10px 20px 10px 10px;
font-size:24px;
font-weight:bold;
border-bottom:solid 6px #55895B;
}
#comment_form {
margin:10px 0;
padding:0;
}.commentform {
margin:10px 0;
padding:10px 20px;
background:#00ffffff;
}
#tbCommentBody {
font-family:'MIcrosoft Yahei';
margin-top:10px;
width:940px;
max-width:940px;
min-width:940px;
background:#d5f0cd;
color:#333;
border:2px solid #fff;
box-shadow:inset 0 0 8px #aaa;
padding:10px;
height:120px;
font-size:14px;
min-height:120px;
}
.feedbackItem {
font-size:14px;
line-height:24px;
margin:10px 0;
padding:20px;
background:#d5f0cd;
box-shadow:0 0 5px #aaa;
}.feedbackListSubtitle {
font-weight:normal;
}
.entrylist {
padding:10px 20px;
background:#00ffffff;
}.entrylistTitle{
color:black;
}.entrylistDescription{
color:grey;
}.entrylistItem {
margin:10px 0;
padding:10px;
}.entrylistPosttitle {
font-size:18px;
font-weight:bold;
background:url('http://images.cnblogs.com/cnblogs_com/libaoheng/305804/o_br229512.link(en-us,MSDN.10).gif') no-repeat 0 3px;
padding-left:30px;
}.entrylistPostSummary {
padding:10px;
}.entrylistItemPostDesc {
font-size:12px;
color:#999;
padding-left:40px;
}
#footer {
font-size:12px;
margin:20px;
padding:12px;
text-align:center;
background:#55895B;
color:#DDD;
font-size:14px;
}
#cnblogs_post_body p img {
margin:10px;
}
.diggnum {
font-size:28px;
color:#6DA47D;
font-family:'Microsoft Yahei';
}#div_digg .diggnum {
line-height:100px;
}.diggit {
float:left;
width:128px;
height:128px;
background:url('http://images.cnblogs.com/cnblogs_com/libaoheng/305804/o_dig.gif') no-repeat;
background-position:0 0;
text-align:center;
cursor:pointer;
}.diggit:hover {
background-position:-128px 0;
}
.buryit {
display:none;
}.diggword {
display:none;
}#green_channel {
text:align:right;
background:#6DA47D;
padding-left:20px;
font-weight:normal;
font-size:15px;
width:920px;
border:none;
color:#fff;
padding:20px;
border-radius:4px;
}
#myposts .PostList {
font-size:14px;
line-height:24px;
margin:10px 0;
padding:20px;
background:#F2F2F2;
box-shadow:0 0 5px #aaa;
}#myposts .postTitl2 a {
color:#6DA47D;
}
/*页首Html代码*/
这里我放的是文章中用到的标题样式,自定义的三级标题和摘要、注意等,方便维护。(原先我写了些Html+Js的代码,比如回到顶部,切换阅读模式等,现在已经去除了。)在页首Html框中输入以下自定义CSS代码。
<style type="text/css">.Abstract{
padding: 15px;
border: dotted 2px #999;
color: #999;
font-family: 'Microsoft Yahei';
border-radius: 4px;
}.First{
margin: 10px 0;
font-family: 'Microsoft Yahei';
text-align: left;
padding: 6px 20px;
color: #fff;
background: #55895B;
font-size: 20px;
border-radius: 4px;
clear: both;
}.Second{
margin: 10px 0;
font-family: 'Microsoft Yahei';
padding: 6px 20px;
background: #93C8A2;
color: #fff;
font-size: 18px;
border-radius: 4px;
clear: both;
}.Third{
margin: 10px 0;
padding: 6px 20px;
font-family: 'Microsoft Yahei';
margin: 15px 0;
font-size: 16px;
color: fff;
background: #C6EFD2;
color: #999;
border-radius: 4px;
clear: both;
}.note{
margin: 10px 0;
padding: 15px 20px 15px 60px;
background: #FCFAA9 url('http://images.cnblogs.com/cnblogs_com/libaoheng/305804/o_yellow-pin.png') no-repeat 20px 0;
font-size: 15px;
font-family: 'Microsoft Yahei';
box-shadow: 0 0 8px #aaa;
clear: both;
}.demo{
text-align: left;
padding: 6px 20px;
overflow: auto;
border-radius: 4px;
background: orange;
color: #fff;
font-size: 16px;
clear: both;
}.cnblogs_Highlighter{
border: solid 1px #ccc;
clear: both;
}.cnblogs_code{
background: #EFFFF4;
border: solid 0px #939393;
font-size: 14px;
clear: both;
padding: 10px 20px;
}.cnblogs_code pre{
font-size: 14px;
}.cnblogs_code span{
font-family: Courier New;
font-size: 14px;
}</style>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<div style="width: 172px;
position:relative;
z-index:10;">
<p id="AaronYangImg"></p>
<p>
</p><div>博主是一个很纯洁的少年,职业是安卓开发工程师,热爱移动开发,网页开发。
<a target="_blank" href="http://wpa.qq.com/msgrd?V=3&uin=991923257&site=liuyanbao.net&menu=yes" style="color:#558958">有需求,联系我</a>
</div>
博主网站<a target="_blank" href="http://www.onlystar.tk/" style="color:#558958">http://www.onlystar.tk/</a>
<object type="application/x-shockwave-flash" style="outline:none;" data="http://cdn.abowman.com/widgets/hamster/hamster.swf?" width="100%"><param name="movie" value="http://cdn.abowman.com/widgets/hamster/hamster.swf?"><param name="AllowScriptAccess" value="always"><param name="wmode" value="opaque"></object>
</div>
<canvas id="c_n15" width="100%" height="100%" >
</canvas>
<script src="http://cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.js"></script>
/*页首Html代码*/
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /><script src="http://cdn.bootcss.com/showdown/1.4.3/showdown.min.js"></script><script type="text/javascript">
$(function () {
var nav = $('#navList');
$('#MyLinks1_HomeLink,#MyLinks1_Admin,#MyLinks1_NewPostLink,#MyLinks1_ContactLink,#MyLinks1_Syndication').parent().hide();
var navstr = '<li><a id="ctl03_CatList_LinkList_0_Link_0" href="https://i.cnblogs.com/EditPosts.aspx?opt=1">新博客</a> </li> <li><a id="ctl03_CatList_LinkList_0_Link_1" href="http://www.cnblogs.com/wisemen/category/872793.html">Android</a> </li> <li><a id="ctl03_CatList_LinkList_0_Link_2" href="https://github.com/Xonlystar">Github</a> </li><li><a id="ctl03_CatList_LinkList_0_Link_4" href="http://user.qzone.qq.com/991923257/infocenter?ptsig=U6pWPylLGy7x9W1mpfQC-i4wsOgIraxQ*Tn3D2izQDA_">QQ空间</a> </li><li><a id="ctl03_CatList_LinkList_0_Link_6" href="http://www.cnblogs.com/wisemen/category/872792.html">随笔</a> </li> <li><a id="ctl03_CatList_LinkList_0_Link_7" href="http://msg.cnblogs.com/send/balahoho">关于</a> </li> <li><a id="ctl03_CatList_LinkList_0_Link_8" href="https://i.cnblogs.com/">管理</a> </li>';
nav.html(nav.html() + navstr);
$('#MyLinks1_MyHomeLink').html('首页');
});
</script><DIV id="time" style="text-align:center;margin-left:400px;margin-top:20px; position:relative;
z-index:10; font-size:24px;">当前时间
<SCRIPT>document.getElementById('time').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);</SCRIPT></DIV><div class="audio"><audio controls="controls"><source src="http://sc.111ttt.com/up/mp3/132202/38FF59883B74E9B5B4C9F6373C0BCC10.mp3" type="audio/mpeg" >
您的浏览器不支持 audio 元素。
</audio></div>
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=0 height=0 src="http://music.163.com/outchain/player?type=2&id=406070395&auto=1&height=661"></iframe>