我的博客CSS
这个是按照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的更多相关文章
- 美化博客CSS
title: 美化博客CSS date: 2019/01/19 14:28:59 --- 美化博客CSS 可以去这里看下好看的样式 修改下文档的css,博客园是在页面定制CSS代码,我这里修改了下标题 ...
- 我的博客css得到别人的认可
你好 在吗?? 本消息来自QQ临时会话,如果您收到骚扰信息,可点击以下网址中的"停用服务"关闭临时会话: http://shang.qq.com/widget/set.php 20 ...
- cnblog博客CSS定制
一.页面定制CSS #home { margin: 0 auto; width: 80%;/*原始65*/ min-width: 980px;/*页面顶部的宽度*/ background-color: ...
- 博客CSS样式 二
预览 可自行更改颜色 背景图 页面定制 CSS 代码中加入: url为背景图地址,可下载心仪背景图后上传到博客园相册后获取地址 body { color: #000; background: url( ...
- 定制博客CSS样式
首先你需要添加页面CSS代码
- 博客CSS
<p style="background: #CFE0F8; padding: 5px;">理解Code First及其约定和配置</p> <p id ...
- 自动修改博客CSS样式用的代码
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js&qu ...
- 博客的页面定制CSS
我目前的博客CSS其实也是借用了别家的,来源:https://www.cnblogs.com/Penn000/p/6947472.html 注意使用的模板是:darkgreentrip 复制粘贴使用就 ...
- 技术人如何利用 github+Jekyll ,搭建一个独立免费的技术博客
上次有人留言说,技术博客是程序员的标配,但据我所知绝大部分技术同学到现在仍然没有自己的技术博客.原因有很多,有的是懒的写,有的是怕写不好,还有的是一直想憋个大招,幻想做到完美再发出来,结果一直胎死腹中 ...
随机推荐
- C#、JAVA操作Hadoop(HDFS、Map/Reduce)真实过程概述。组件、源码下载。无法解决:Response status code does not indicate success: 500。
一.Hadoop环境配置概述 三台虚拟机,操作系统为:Ubuntu 16.04. Hadoop版本:2.7.2 NameNode:192.168.72.132 DataNode:192.168.72. ...
- Struts2入门(四)——数据输入验证
一.前言 1.1.什么是输入验证?为什么需要输入验证? 在上一篇文章中,我们学习了数据类型转换,我们提到了表示层数据处理的两个方法,也提到了用户输入数据需要进行类型转换才能得到我们想要的数据,那么,我 ...
- iOS 汉字的拼音
获取汉字的拼音 #import <Foundation/Foundation.h> @interface NSString (Utils) /** * 汉字的拼音 * * @return ...
- iOS 报错汇总
1. Unknown type name 'class'; did you mean 'Class' 问题解决方法 objectice-c 工程中的类(比如 类 A)使用 C++ 文件时 A.m 文 ...
- 将现有MySQL数据库改为大小写不敏感
用过MySQL的应该都会注意到,默认情况下,Linux下安装的MySQL是大小写敏感的,也就是说Table1和table1可以同时存在.而Windows下的MySQL却是大小写不敏感的,所有表名和数据 ...
- oracle触发器
类型 行级触发器: FOR EACH ROW 影响的每一行都会执行触发器 语句级出发器 默认的模式,一句话才执行一次触发器 触发器不能嵌套,不能含有事务控制语句 何时触发 Before:条件运行前 A ...
- python处理json和redis hash的坑
1.使用MySQLdb读取出来的数据是unicode字符串,如果要写入redis的hash中会变成 "{u'eth0_outFlow': 2.5, u'eth1_inFlow': 3.44} ...
- [转]ubuntu linux下DNS重启后丢失
从网上得知 /etc/resolv.conf中的DNS配置是从/etc/resolvconf/resolv.conf.d/head中加载而来,所以每回改resolv.conf都会失效,在此文件里面已经 ...
- 【Linux命令】文件和目录操作命令
本文主要用于常用命令的备忘,具体用法可用man查看,或查询其他资料. cd:改变工作目录 ls:列出目录的内容 mkdir:创建一个目录 cat:连接并显示指定的一个和多个文件的有关信息 cp:将给出 ...
- 理解Java对象序列化
http://www.blogjava.net/jiangshachina/archive/2012/02/13/369898.html 1. 什么是Java对象序列化 Java平台允许我们在内存中创 ...