我的博客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 ,搭建一个独立免费的技术博客
上次有人留言说,技术博客是程序员的标配,但据我所知绝大部分技术同学到现在仍然没有自己的技术博客.原因有很多,有的是懒的写,有的是怕写不好,还有的是一直想憋个大招,幻想做到完美再发出来,结果一直胎死腹中 ...
随机推荐
- SVG 文本
该部分为四个主要部分: 1. <text>和<tspan>标签详解 2. 文本水平垂直居中问题 3. <textpath>让文本在指定路径上排列 4 ...
- java script第一篇(按钮全选的实现)
今天刚学了java script,记录下学习新知识的点滴.以下是操作步骤.鉴于我是初级者,如有错误,恳请读者指正.万分谢谢. 1.新建一个文档(用NotePad软件,为了使得在浏览器中打开不是乱码,在 ...
- SQL通过ContentTypeID找使用了内容类型的列表库
DECLARE) SET @ContentTypeID='0x1B452DB25E92A34DA3E35FC8731278D2' SELECT w.Title AS [Web Site], w.Ful ...
- 记录下UIButton的图文妙用和子控件的优先显示
UIButton的用处特别多,这里只记录下把按钮应用在图文显示的场景,和需要把图片作为按钮的背景图片显示场景: 另外记录下在父控件的子控件优先显示方法(控件置于最前面和置于最后面). 先上效果图: 1 ...
- 16-static和extern关键字2-对变量的作用
上一讲介绍了static和extern对函数的作用,static用来定义一个内部函数,不允许其他文件访问:extern用来定义和声明一个外部函数,允许其他文件访问.static和extern对变量也有 ...
- yii2中如何使用modal弹窗之基本使用
作者:白狼 出处:http://www.manks.top/yii2_modal_baseuse.html 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接, ...
- Spring下如何配置bean
本次讲述项目背景: 创建Service类,Service下用到dao类.通过在Spring中配置bean,实现在项目启动时,自动加载这个类 本次只讲述配置bean的注意事项,故只给出简单实例: 创建S ...
- ORA-02020 : 过多的数据库链接在使用中-Windows环境解决步骤
一.现象 编译存储过程时报ORA-02020错误. 错误详细信息:ORA-04052在查找远程对象 xx@yy时出错 ORA-00604 : 递归 SQL 级别 1 出现错误 ORA-02020 : ...
- SQL Server5个系统数据库
SQL Server一共有5个系统数据库:master:记录SQL Server系统的所有系统级信息,例如:登陆账户信息.链接服务器和系统配置设置.记录其他所有数据库的存在.数据文件的位置.SQL S ...
- 安装.NET Framework进度条卡住不动的解决方案
VS在安装之前需要安装.NET Framework,我安装的是4.0版本.但是安装进度条到一半左右时就卡住不动了.前前后后重试多次,还有几次重新开机,但都没用. 开始还以为是安装的系统有问题.后来在网 ...