博客园ccs定制
屏蔽博客内的广告
#under_post_kb{display:none}
#under_post_news{display:none}
#site_nav_under{display:none}
-------------------------
###页面定制CSS代码
<style type="text/css"> #home {background-color: #CAE1FF;} .title {margin-left: 150px;} .subtitle {margin-left: 250px;} #mainContent {margin-left: 100px;} #cnblogs_post_body {font-size: 16px;} #footer {color: rgb(160,227,0);font-weight:bold;} #ad_text_commentbox {display: none;} .postDesc > a {display: none;} #ad_text_under_commentbox {display: none;} #site_nav_under {display: none;} #ad_under_post_holder {display: none;} #blog_news_kb {display: none;} #blogTitle > h2 {display: none;} #navList {display: none;} #green_channel {display: none;} #navigator {background:rgb(153,153,153);border:0px solid #ccc;border-width:0px;height:1px;line-height:1px;color:rgb(153,153,153);padding-left:15px;padding-right:5px;} .img-rounded { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } #cnblogs_post_body hr {border: dotted 1px rgb(160,227,0);} .postBody h2{ font-size: 18px; } .postBody h1{ padding: 5px 10px; margin: 10px; background: rgb(140,214,0); color: #F0FFF0; font-size: 18px; line-height: 1.3em; text-align:center; border: 2px dashed #fff; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; -moz-box-shadow: 0 0 0 4px rgb(140,214,0);, 2px 1px 4px 4px rgba(10,10,0,.5); -webkit-box-shadow: 0 0 0 4px rgb(140,214,0);, 2px 1px 4px 4px rgba(10,10,0,.5); box-shadow: 0 0 0 4px rgb(140,214,0);, 2px 1px 6px 4px rgba(10,10,0,.5); text-shadow: -1px -1px #939393; } .author_profile_info img {display: none;} .postTitle { font-size: 25px; clear: both; padding: 10px 20px; text-shadow: -1px -1px rgb(238,238,238); } .post .postTitle {text-align:center;} </style>
###博客侧边栏公告
<br /> <img src="http://images.cnblogs.com/cnblogs_com/qtsharp/438429/o_qtsharp-s.png" width="120" height="120" class="img-rounded"> <br /><br /> <!-- Start of StatCounter Code for Default Guide --> <script type="text/javascript"> var sc_project=8695836; var sc_invisible=0; var sc_security="921364d0"; var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+ "statcounter.com/counter/counter.js'></"+"script>"); </script> <noscript><div class="statcounter"><a title="website statistics" href="http://statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/8695836/0/921364d0/0/" alt="website statistics"></a></div></noscript> <!-- End of StatCounter Code for Default Guide --> <!-- <a href="http://www.cnblogs.com/qtsharp/rss" target="_blank" style="border: solid 1px rgb(160,227,0);color: rgb(160,227,0);font-size:18px;margin:0px 0px 0px 8px;">RSS订阅</a><br /> -->
###页首Html代码
<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: rgb(160,227,0); border: solid 1px rgb(245,245,245); font-size: 14px; clear: both; padding: 5px 10px; } .cnblogs_code pre { font-size: 14px; } .cnblogs_code span { font-family: Courier New; font-size: 14px; } </style>
作者:catmelo
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利。