这个是按照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. css基础

    一. web标准化 (1).内容与样式,行为分离 (2).html用来定义语义内容,以及内容的结构 (xhtml) (3).xhtml标准 a.xhtml 必须强制指定文档类型 DocType,HTM ...

  2. Atitit mac os 版本 新特性 attilax大总结

    Atitit mac os 版本 新特性 attilax大总结 1. Macos概述1 2. 早期2 2.1. Macintosh OS (系统 1.0)  1984年2 2.2. Mac OS 7. ...

  3. 跳转时候提示Attempt to present on while a presentation is in progress

    出现这种情况,例如:我在获取相册图片后,直接present到另一个页面,但是上一个页面可能还未dismiss,所以,要在获取相册图片的dismiss方法的complete的block里面写获取图片及跳 ...

  4. ListView之点击展开菜单

    一.概述 ListView点击item显示菜单是要实现这样的效果: 需要实现的逻辑如下: 1)点击一个普通item,展开当前菜单,同时关闭其他菜单 2)点击一个已展开的菜单,隐藏当前菜单 3)将展开菜 ...

  5. android Base64 加密

    一 Base64加密 import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.OutputStre ...

  6. Android入门(一)

    原文链接:http://www.orlion.ga/387/ 一.安卓的系统架构 1. linux内核层,这一层为安卓设备提供底层的驱动 系统运行库层,这一层通过一些C/C++库来为Android系统 ...

  7. Windows API 函数列表 附帮助手册

    所有Windows API函数列表,为了方便查询,也为了大家查找,所以整理一下贡献出来了. 帮助手册:700多个Windows API的函数手册 免费下载 API之网络函数 API之消息函数 API之 ...

  8. 理解OVER子句

    简介 Over子句在SQLServer 2005中回归,并且在2012中得到了扩展.这个功能主要结合窗口函数来使用:也可以在序列函数"NEXT VALUE FOR"使用.OVER子 ...

  9. MySQL多实例安装

    1.安装MySQL需要的依赖的包和编译软件   (1)安装MySQL需要的依赖包 安装MySQL之前,最好先安装MySQL需要的依赖包,不然后面会出现报错,还得回来安装MySQL的依赖包. [root ...

  10. tcpdump、nc网络工具使用

    tcpdump: 网络嗅探器 nc: nmap: 端口扫描 混杂模式(promisc) C设置为监控,当A和B通信,C是无法探测到数据的,除非有交换机的权限,将全网端口的数据通信都发送副本到C的端口上 ...