这个是按照custom标准模板来做的,博客园已经有模版了,有些细节不是很好,这个是源CSS,喜欢的可以自由DIY,完善更好。

@charset "utf-8";
/* CSS Document */
/* By cnblogs.com/blogg

/*全局特性*/

body {
    font-family: Arial, "微软雅黑", \5B8B\4F53, sans-serif;
    background-image: url(http://images.cnblogs.com/cnblogs_com/blogg/676186/o_5-120601094354-50.gif);
    background-repeat: repeat;
    background-color: #FFFDFA;
}
.clear {

    clear: both;
}

html {
    color: #000;
    overflow-y: scroll;
    background: #fff;
}
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, fieldset, lengend, button, input, textarea, form, th, td {
    margin:;
    padding:;
    list-style-type: none;
    list-style-image: none;
}
pre,code    {
    width:100%-20px;
    margin: 10px 0;
    padding: 10px;
    border:;
    border: 1px dotted #785;
    background: #f5f5f5;
    word-wrap:break-word;
    }
body, button, input, select, textarea {
    font: 12px/1.5 Tahoma, Arial, "微软雅黑", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}
address, cite, dfn, em, var {
    font-style: normal;
}
code, kbd, pre, samp, tt {
    font-family: "Courier New", Courier, monospace;
}
small {
    font-size: 12px;
}
ul, ol {
    list-style: none;
}
a:link, a:visited {
    text-decoration: none;
    color: #3399ff;
}
a:hover {
    text-decoration: underline;
    color: #3399FF;
}
abbr[title], acronym[title] {
    border-bottom: 1px dotted;
    cursor: help;
}
q:before, q:after {
    content: '';
}
:focus {
    outline:;
}
legend {
    color: #000;
}
fieldset, img {
    border: none;
}
button, input, select, textarea {
    font-size: 100%;
}
table {
    border-collapse: collapse;
    border-spacing:;
}
hr {
    border: none;
    height: 1px;
*color:#fff;
}
img {
    -ms-interpolation-mode: bicubic;
}
/*html5*/
article, aside, dialog, footer, header, hground, section, footer, nav, figure, menu {
    display: block
}

/*主体布局*/
#navigator,#blogTitle,#main,#footer{width: 1000px;
    position: relative;
    margin: 0 auto;}

#header{
    height: 40px;
    width: 100%;
    background-color:#2175bc;

}
#main{
    margin-top: 6px;
    background-color: rgb(245, 245, 245);
    margin-bottom: 0px;

}
#mainContent{
    width: 765px;
    background: white;
    box-shadow: 0px 0px 8px #999;
    -moz-box-shadow: 0px 0px 8px #999;
    -web-kit-shadow: 0px 0px 8px #999;
    border-radius: 1px;
    -moz-border-radius: 6px;
    -web-kit-shadow: 6px;
    float: left;
    display: inline-block;
}
#sideBar{
    width: 200px;
    padding: 16px;
    display: inline-block;
    overflow: hidden;
    color: #2D2D2D;
}
#footer{
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    color: #000;
    font-size: 12px;
}

/*导航栏*/

#navigator{
    top: 8px;
}
#navList li{
        float: left;
    margin-right: 25px;
    display: inline;
}
#navList li a{

    font-family:"Microsoft YaHei";
    font-size:15px;
    text-decoration: none;
    color: #FFF;
    padding: 10px;
    background-color: #2175bc;
}
#navList li a:hover{
    background-color:#2586d7;
    margin-top:-2px;
    padding-bottom:12px;
    color: #fff;
    opacity:;
    }
/*结束导航栏*/

.blogStats{
    color: #CACACA;
    font-size: 12px;
    text-align: right;
}
#Header1_HeaderTitle{
    color:white;
}

#Header1_HeaderTitle:hover{
    text-decoration: none;
}

/*main部分样式*/
.day{background:white; padding:32px;}
.postTitle,.postTitl2,.entrylistPosttitle{
    font-size: 20px;
    font-family: "微软雅黑";
    padding-right: 64px;
    padding-left: 10px;
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: #2175bc;
}
.postTitle a,.postTitl2 a,.entrylistPosttitle a{
    color: #333;
}
.postTitle a:link, .post-title a:visited,.postTitl2 a:link,.postTitl2 a:visited,.entrylistPosttitle a:link,.entrylistPosttitle a:visited{color:black;}
.postTitle a:hover,.postTitl2 a:hover,.entrylistPosttitle a:hover{color:##3399ff;text-decoration:none;}

.postBody,.postCon,.entrylistPostSummary{clear:both; margin-top:26px;}
.postBody,.postCon,.entrylistPostSummary{font-size:12px;color:#444;line-height:1.8;}
.postCon h1, .postCon h2, .postCon h3, .postCon h4, .postCon h5, .postCon h6{
    font-weight:bold;
    line-height:1.8;
    font-family:"微软雅黑";
}
.postBody h1,.postCon h1{font-size:20px;}
.postBody h2,.postCon h2{font-size:18px;}
.postBody h3,.postCon h3{font-size:16px;}
.postBody h4,.postCon h4{font-size:14px;}
.postBody h5,.postCon h5{font-size:14px;}
.postBody h6,.postCon h6{font-size:14px;}
.postBody dd,.postCon dd{padding-left:2em;}
.postBody ul,.postCon ul{list-style:none;margin-left:20px;}
.postBody ul li,.postCon ul li{list-style:inside disc;}
.postBody dt,.postCon dt{ font-weight:bold; padding:6px 0; clear:both}
.postBody ol,.postCon ol{list-style:none;margin-left:20px;}
.postBody blockquote,.postCon blockquote{width:90%;margin:0 auto;padding:6px 0 6px 45px;color:#666;
    background:white url(images/blockquote.gif) top left no-repeat;}
.dayTitle,.postDesc{ font-size:12px; color:#999999;}
.postDesc,.postDesc2,.entrylistItemPostDesc{
    border-bottom: 1px dashed #E8E7D0;
    text-align: right;
    margin: 20px 0px;
    padding:5px 0px;
}
.dayTitle{
    border:1px solid #cccccc;
    position: relative;
    top: -20px;
    width: 100px;
    left: -20px;
    padding-top: 3px;
    padding-right: 0px;
    padding-bottom: 3px;
    padding-left: 8px;
}

.dayTitle a{
     color:#333;
 }

.topicListFooter{
    padding: 32px;
}
/*侧栏样式*/
#sideBarMain div{margin-bottom:26px;}
#sideBarMain div div{margin-bottom:5px;}
#sideBarMain h3{
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    border-bottom-color: #D4D4D4;
    padding-bottom: 10px;
    margin-top: 20px;
}

/*文章阅读页面样式*/
#blog-comments-placeholder,#divRefreshComments,.commentform,#AjaxHolder_UpdatePanel1,.post{padding:32px;}

.feedbackItem{
    border: 1px solid #E3E3E3;
    padding: 5px;
    margin-bottom: 10px;
    background-color: #F6F6F6;
}
.blog_comment_body{
    color: #929292;
    padding-top: 10px;
}
.forFlow p{margin-bottom:18px;}
.forFlow img{
    margin-top: 20px;
    margin-bottom: 20px;
}

/*tag页面*/
.PostList,.entrylistItem{
    margin:20px;
}

/*隐藏 tag 标题*/
.entrylistTitle,.PostListTitle{
    display:none;
}

/*隐藏多余信息*/

#ad_text_under_commentbox,#site_nav_under,#ad_under_post_holder,#blogTitle{
    display:none;
}

.cnblogs_code img{
margin:;
float:left;
}

.cnblogs_code_toolbar {
margin-top: 0px;
}

.code{
padding:0 10px;
}

h4{
font-size: 16px;
background-color: #2175bc;
margin: 0 -32px;
padding: 0 32px;
color: white;
}

我的博客CSS的更多相关文章

  1. 美化博客CSS

    title: 美化博客CSS date: 2019/01/19 14:28:59 --- 美化博客CSS 可以去这里看下好看的样式 修改下文档的css,博客园是在页面定制CSS代码,我这里修改了下标题 ...

  2. 我的博客css得到别人的认可

    你好 在吗?? 本消息来自QQ临时会话,如果您收到骚扰信息,可点击以下网址中的"停用服务"关闭临时会话: http://shang.qq.com/widget/set.php 20 ...

  3. cnblog博客CSS定制

    一.页面定制CSS #home { margin: 0 auto; width: 80%;/*原始65*/ min-width: 980px;/*页面顶部的宽度*/ background-color: ...

  4. 博客CSS样式 二

    预览 可自行更改颜色 背景图 页面定制 CSS 代码中加入: url为背景图地址,可下载心仪背景图后上传到博客园相册后获取地址 body { color: #000; background: url( ...

  5. 定制博客CSS样式

    首先你需要添加页面CSS代码

  6. 博客CSS

    <p style="background: #CFE0F8; padding: 5px;">理解Code First及其约定和配置</p> <p id ...

  7. 自动修改博客CSS样式用的代码

    <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js&qu ...

  8. 博客的页面定制CSS

    我目前的博客CSS其实也是借用了别家的,来源:https://www.cnblogs.com/Penn000/p/6947472.html 注意使用的模板是:darkgreentrip 复制粘贴使用就 ...

  9. 技术人如何利用 github+Jekyll ,搭建一个独立免费的技术博客

    上次有人留言说,技术博客是程序员的标配,但据我所知绝大部分技术同学到现在仍然没有自己的技术博客.原因有很多,有的是懒的写,有的是怕写不好,还有的是一直想憋个大招,幻想做到完美再发出来,结果一直胎死腹中 ...

随机推荐

  1. 设计模式02迭代器(java)

    先贴代码,有空来写内容. 1.定义集合 import java.util.List; import java.util.ArrayList; //coollection是我自己定义的一个集合,因为要写 ...

  2. linux使用wkhtmltopdf报错error while loading shared libraries:

    官网提示 linux需要这些动态库.depends on: zlib, fontconfig, freetype, X11 libs (libX11, libXext, libXrender) 在li ...

  3. 五个典型的 JavaScript 面试题

    阅读原文 在IT界,需要大量的 JavaScript 开发者.如果你的能力能够胜任这一角色,那么你将获得许多更换工作和提高薪水的机会.但是在你被公司录取之前,你需要展现你的技术实力,以便通过面试环节. ...

  4. HTML5 oninput实时监听输入框值变化的完美方案

    在网页开发中经常会碰到需要动态监听输入框值变化的情况,如果使用 onkeydown.onkeypress.onkeyup 这个几个键盘事件来监测的话,监听不了右键的复制.剪贴和粘贴这些操作,处理组合快 ...

  5. 十种MYSQL显错注入原理讲解(二)

    上一篇讲过,三种MYSQL显错注入原理.下面我继续讲解. 1.geometrycollection() and geometrycollection((select * from(select * f ...

  6. Node.js学习——基本模块之fs

    基本模块之fs 异步读文件 异步读取一个文本文件的代码如下: 'use strict'; var fs = require('fs'); fs.readFile('sample.txt', 'utf- ...

  7. 【转】JavaScript常用代码书写规范

    javascript 代码规范 代码规范我们应该遵循古老的原则:“能做并不意味着应该做”. 全局命名空间污染 总是将代码包裹在一个立即的函数表达式里面,形成一个独立的模块. 不推荐 1 2 3 var ...

  8. MS SQL巡检系列——检查外键字段是否缺少索引

    前言感想:一时兴起,突然想写一个关于MS SQL的巡检系列方面的文章,因为我觉得这方面的知识分享是有价值,也是非常有意义的.一方面,很多经验不足的人,对于巡检有点茫然,不知道要从哪些方面巡检,另外一方 ...

  9. MS SQL巡检系列——检查重复索引

    前言感想:一时兴起,突然想写一个关于MS SQL的巡检系列方面的文章,因为我觉得这方面的知识分享是有价值,也是非常有意义的.一方面,很多经验不足的人,对于巡检有点茫然,不知道要从哪些方面巡检,另外一方 ...

  10. 4-3 管理及IO重定向

    1. 系统设定默认输出设备:标准输出(STDOUT,1) 系统设定默认输入设备:标准输入(STDIN,0) 系统设定默认错误设备:标准错误(STDERR,2) 2. 标准输入:键盘 标准输出和错误输出 ...