页面css代码

博主原来的页面css代码

(这个是原来的那种效果,差不多弄出来会是这种效果http://www.cnblogs.com/thmyl/

/*simplememory*/
#google_ad_c1, #google_ad_c2 {display:none;}
.syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter             table tbody, .syntaxhighlighter table thead, .syntaxhighlighter table caption, .syntaxhighlighter textarea {
font-size: 14px!important;
}
#home {
opacity: 0.70;
margin:  auto;
width: %;
min-width: 900px;
background-color: #fff;
padding: 30px;
margin-top: 30px;
margin-bottom: 50px;
box-shadow:  2px 6px rgba(, , , 0.3);
}
#blogTitle h1 {
font-size: 30px;
font-weight: bold;
font-family: "Comic Sans MS";
line-height: .5em;
margin-top: 20px;
color: #;
}
#navList a:hover {
color: #4C9ED9;
text-decoration: none;
}
#navList a {
display: block;
width: 5em;
height: 22px;
float: left;
text-align: center;
padding-top: 18px;
}
#navigator {
font-size: 15px;
border-bottom: 1px solid #ededed;
border-top: 1px solid #ededed;
height: 50px;
clear: both;
margin-top: 25px;
}
.catListTitle {
margin-top: 21px;
margin-bottom: .5px;
text-align: left;
border-left: 10px solid rgba(, , , 0.8);
padding: 10px  14px 10px;
background-color: #f5f5f5;
}
#ad_under_post_holder #google_ad_c1,#google_ad_c2{
display: none !important;
}
body {
color: #;
background: url(http://images.cnblogs.com/cnblogs_com/z360/1010056/o_Danbo_Danboard_photo_110629_meitu_1.jpg
) fixed;
background-size: 1300px;
background-repeat: no-repeat;
font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif;
font-size: 12px;
min-height: %;
  // background-size:auto;/* 默认值,不改变背景图片的高度和宽度 */
background-size:1400px 800px;/* 第一个值为宽,第二个值为高,当设置一个值时,将其作为图片宽度来等比缩放 */
//background-size:10%;/* 0%~100%之间的任何值,将背景图片宽高按百分比显示,当设置一个值的时候同也将其作为图片宽度来等比缩放 */
//background-size:cover;/* 将背景图片等比缩放填满整个容器 */
}
#topics .postTitle {
border: 0px;
font-size: %;
font-weight: bold;
float: left;
line-height: 1.5;
width: %;
padding-left: 5px;
}

div.commentform p{
margin-bottom:10px;
}
.comment_btn {
padding: 5px 10px;
height: 35px;
width: 90px;
border:  none;
border-radius: 5px;
background: #ddd;
color: #;
cursor:pointer;
font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋体, Arial, sans-serif;
text-shadow:   1px #fff;
display: inline !important;
}
.comment_btn:hover{
padding: 5px 10px;
height: 35px;
width: 90px;
border:  none;
border-radius: 5px;
background: #258fb8;
color: white;
cursor:pointer;
font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋体, Arial, sans-serif;
text-shadow:   1px #fff;
display: inline !important;
}
#commentform_title {
background-image:none;
background-repeat:no-repeat;
margin-bottom:10px;
padding:;
font-size:24px;
}
#commentbox_opt,#commentbox_opt + p {
text-align:center;
}
.commentbox_title {
width: %;
}
#tbCommentBody {
font-family:'Microsoft Yahei', Microsoft Yahei, 宋体, sans-serif;
margin-top:10px;
max-width:%;
min-width:%;
background:white;
color:#;
border:2px solid #fff;
box-shadow:inset   8px #aaa;
// padding:10px;
height:250px;
font-size:14px;
min-height:120px;
}
.feedbackItem {
font-size:14px;
line-height:24px;
margin:10px ;
padding:20px;
background:#F2F2F2;
box-shadow:  5px #aaa;
}
.feedbackListSubtitle {
font-weight:normal;
}

#blog-comments-placeholder, #comment_form {
padding: 20px;
background: #fff;
-webkit-box-shadow: 1px 2px 3px #ddd;
box-shadow: 1px 2px 3px #ddd;
margin-bottom: 50px;
}
.feedback_area_title {
margin-bottom: 15px;
font-size: .8em;
}
.feedbackItem {
border-bottom: 1px solid #CCC;
margin-bottom: 10px;
padding: 5px;
background: rgb(, , );
}
.color_shine {background: rgb(, , );}
.feedbackItem:hover {-webkit-animation-name: color_shine;-webkit-animation-duration: 2s;-webkit-animation-iteration-count: infinite;}
#comment_form .title {
font-weight: normal;
margin-bottom: 15px;
}

css代码

至于现在的css代码,是来自这个大佬的博客:http://www.cnblogs.com/Enceladus/p/7467561.html

css代码

#site_nav_under {
    display: none;
}
.c_ad_block, .ad_text_commentbox {
    display: none;
    margin: ;
    padding: ;
}
#ad_under_google {
    height: ;
    overflow: hidden;
}
#ad_under_google a {
    display: none;
}

@charset "utf-8";
/* CSS Document */

/**************************************************
第一部分:所有的模板都使用的公共样式。公告样式是为了更好的向前和向后兼容。
如果不符合你皮肤的要求,你可以在后面通过更好的优先级覆盖着这些样式,但是
你不能删除这些样式。
**************************************************/
#EntryTag {
    margin-top: 20px;
    font-size: 9pt;
    color: gray;
}
.topicListFooter {
    text-align: right;
    margin-right: 10px;
    margin-top: 10px;
}
#divRefreshComments{
    text-align: right;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 9pt;
}
/*****第一部分结束*******************************/

/**************************************************
第二部:公共样式(全局样式)。公共会对所有页面的标签都起作用。这个部分你
可以随意的更改,并不会牵扯到其他的皮肤模板。但是每次更改都要注意你的皮肤
模板所有页面的变化。因为它们是全局的。
**************************************************/
* {
    margin: ;
    padding: ;
}
html {
    height: %;
}
body {
    background:url(http://images2015.cnblogs.com/blog/841250/201706/841250-20170611202329872-1998585524.jpg) no-repeat fixed;
    background-size:cover;
    color:#;
    font-family: "微软雅黑","verdana","ms song","宋体","Arial", "Helvetica", "sans-serif";
    font-size: 15px;
    min-height: %;
    width:75em;
    margin-left:auto;
    margin-right:auto;
    z-index:;
}

#Uleft, #Uright,#Dleft, #Dright{
    /* Firefox 4 */
    -moz-transition-property:top;
    -moz-transition-duration:1s;

    /* Safari and Chrome */
    -webkit-transition-property:top;
    -webkit-transition-duration:1s;

    /* Opera */
    -o-transition-property:top;
    -o-transition-duration:1s;
    position: fixed;
    width: 80px;
    height: 80px;
    line-height: 500px;
    text-align: center;
    z-index:;
}
#Uleft{
    width: 80px;
    height: 80px;
    top:-60px;
    left: 50px;
}
#Uright{
    width: 110px;
    height: 110px;
    top: -75px;
    right: 50px;
}
#Dleft{
    bottom:10px;
    left: 10px;
    width: 200px;
    height: 200px;
}
#Dright{
    bottom:-50px;
    right: 0px;
    width: 200px;
    height: 250px;
}

#MagicArray{
    /* Firefox 4 */
    -moz-transition-property:width height bottom right;
    -moz-transition-duration:1s;

    /* Safari and Chrome */
    -webkit-transition-property:width height bottom right;
    -webkit-transition-duration:1s;

    /* Opera */
    -o-transition-property:width height bottom right;
    -o-transition-duration:1s;

    position: fixed;
    bottom:107px;
    right: 108px;
    width: 0px;
    height: 0px;
    text-align: center;
    z-index:;
}
#Tab1{
    -moz-transition-property:fontSize width height;
    -moz-transition-delay:.8s;

    -webkit-transition-property:fontSize width height;
    -webkit-transition-delay:.8s;

    -o-transition-property:fontSize width height;
    -o-transition-delay:.8s;

    color:#8B0A50;
    position: fixed;
    font-size: 0px;
    text-align: center;
    z-index:;
    font-weight:;
    text-shadow:
        -1px  #7A67EE,
1px #7A67EE,
        1px  #7A67EE,
-1px #7A67EE;
}

::selection{background:#698B22;color:#FFF;}
::-moz-selection{background#698B22;color:#FFF;}
body{cursor:url('http://fq.wc.lt//up/1499563659.cur'),auto;}
A{cursor:url('http://fq.wc.lt//up/1499563659.cur'),auto;}
input{cursor:url('http://fq.wc.lt//up/1499563659.cur'),auto;}
wait{cursor:url('http://fq.wc.lt//up/1499563659.cur'),auto;}
input{outline:medium;}
/*
http://fq.wc.lt//up/1499566113.cur
http://fq.wc.lt//up/1499565578.cur
http://fq.wc.lt//up/1499564884.cur
*/
/*鼠标*/

table {
    border-collapse: collapse;
    border-spacing: ;
}
fieldset, img {
    border: ;
}
ul {
    word-break: break-all;
}
li {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-size: %;
    font-weight: normal;
}
a:link {
    color:black;
    text-decoration:none;
}
a:visited {
    color:#;
    text-decoration: none;
}
a:hover {
    color: #7B68EE;
    -moz-border-radius: 9px;
    -khtml-border-radius: 9px;
    -webkit-border-radius: 9px;
    border-radius: 9px;
    transition: all .4s linear 0s;
}
a:active {
    color: black;
    text-decoration: none;
}
.clear {
    clear: both;
}
/*****第二部分结束*******************************/

/**************************************************
第三部分:各个页面元素的样式。你可以根据需要随意的更改,并不会牵扯到其他
的皮肤模板。这个部分是最能展现你想象力的部分。其中头部和侧边栏部分是此皮
肤公共的部分。而每个页面特有的部分会有相应的注释和说明。
**************************************************/
/*****home和头部开始**************************/
#home {
    margin:  auto;
    width:%;
    min-width: 60em;
}
#header {
    padding-bottom: .4em;
    margin-top: .8em;
}
#blogTitle {
    height: 7em;
    clear: both;
    border:1px solid #;
    -moz-border-radius: 11px;
    -khtml-border-radius: 11px;
    -webkit-border-radius: 11px;
    border-radius: 12px;
    -webkit-box-shadow:5px 2px 6px #;-moz-box-shadow:5px 2px 6px #;padding:4px 10px;
    text-shadow:1px 1px 1px #e9f3e8
}
#blogTitle h1 {
    font-size: %;
    font-weight: bold;
    margin-left: 1em;
    margin-top: .4em;
    width: %;
    float: left;
}
#blogTitle h2 {
    margin-left: 6em;
    line-height: .5em;
    width: %;
    float: left;
    text-shadow:-1px  #ddd,
1px #ddd,
                1px  #ddd,
-1px #ddd;
}
#blogLogo {
    float: right;
}
#navigator {
/*    background-color: black;
    height: 30px;
    clear: both;*/

    margin-top:.3em;
    height: 2em;
    clear:both;
    border:1px solid #;
    -moz-border-radius: 11px;
    -khtml-border-radius: 11px;
    -webkit-border-radius: 11px;
    border-radius: 11px;
    -webkit-box-shadow:5px 2px 6px #;-moz-box-shadow:5px 2px 6px #;padding:4px 10px;
    background:#FFF;
    opacity: 0.60;
}
#navList {
    min-height: .5em;
    float: left;
}
#navList li {
    float: left;
}
#navList a {
    display: block;
    padding-left:.5em;
    padding-right:.5em;
    line-height:2em;
    float: left;
    text-align: center;
    border-right: 1px solid #;
}
#navList a:link, #navList a:visited, #navList a:active {
/*    color: #ccc;*/
}
#navList a:hover {
    color: #7B68EE;
    padding-left:.8em;
    padding-right:.8em;
}

.blogStats {
    float: right;
    font-size:.8em;
    color: #;
    margin-top: .9em;
    margin-right: .2em;
    text-align: right;
}
/*****home和头部结束**************************/

/*****主页文章列表开始**************************/
#main{
    width: %;
    min-width: 70em;
    text-align: left;
    background:#FFF5EE;
    opacity: 0.55;
}
#mainContent .forFlow{
    margin-left: 12em;
    float: none;
    width: auto;
}

#mainContent {
    min-height: 18em;
    padding: 0px 0px 10px ;
    *padding-top:10px;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;

    float: right;
    margin-left: -26em;
    width: %
}
.day {
    min-height: 10px;
    _height: 10px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}
.dayTitle {
    width: %;
    color: #;

    font-weight: bold;
    line-height: .5em;
    font-size: %;
    margin-top: 3px;
    margin-bottom: 10px;
    clear:both;
    border-bottom: 2px solid #e9f3e8;
    text-align:center;

}
.postTitle {
    font-size: %;
    font-weight: bold;
    /*border-bottom: 1px solid #9DAAF4;*/
    float: right;
    line-height: .5em;
    width: %;
    clear:both;
    text-shadow:-3px 3px 3px #
}
.postTitle a:link, .postTitle a:visited, .postTitle a:active {
    color: #;
    transition: all .4s linear 0s;
}
.postTitle a:hover {
    margin-left: 10px;
    color: #7B68EE;
    text-decoration: none;
    text-shadow:-13px 3px 3px #
}
.postCon {
    float: right;
    line-height: .5em;
    width: %;
    clear:both;
    padding: 10px ;
}
.postDesc {
    float: right;
    width: %;
    clear:both;
    text-align: right;
    padding-right: 5px;
    color: #;
    margin-top: 5px;
}
.postDesc a:link, .postDesc a:visited, .postDesc a:active {
    color: #;
    padding-right: 10px;
}
.postDesc a:hover {
    color: #7B68EE;
    text-decoration: none;
}
.postSeparator {
    clear: both;
    height: 1px;
    border-top: 1px dotted #;
    width: %;
    clear:both;
    float: right;
    margin:  auto 15px auto;
}
.diggit{
    text-align: center;
    width:50px;
    height:40px;
    background:url(http://fq.wc.lt//up/1503755899.png);
    background-size:% %;
}
.buryit{
    font-size:0px;
    width:;
    height:;
}
.burynum{
    font-size:0px;
    width:;
    height:;
}
/*****主页文章列表结束**************************/

/*****侧边栏开始********************************/
#sideBar {
    width: 14em;
    min-height: 14em;
    padding: 0px 0px 0px 5px;
    float: left;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    font-size:.7em;
    opacity:0.7;
}
.counter{
}
.notice{
    font-size:xx-small;
}
.btn_my_zzk{
  display: inline-block;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #a55b97;
  border: none;
  border-radius: 15px;
  box-shadow:  4px #;
}
.newsItem .catListTitle {
    display: none;
}
.newsItem {
    padding: 15px  5px 0px;
    font-weight:bold;
    font-size:14px;
    margin-bottom: 8px;
}
/**日历控件样式开始**/
#calendar {
    width: 14em;
}
#calendar .Cal {
    width: %;
    line-height: .5em;
}
.Cal {/**日历容器table**/
    border: none;
    color: #;
}
#calendar table a:link, #calendar table a:visited, #calendar table a:active {
    font-weight: bold;
}
#calendar table a:hover {
    color: #7B68EE;
    text-decoration: none;
    background-color: #7B68EE;
}
.CalTodayDay{/**今天日期样式**/
    color: #EE82EE;
}
#calendar .CalNextPrev a:link,#calendar  .CalNextPrev a:visited, #calendar .CalNextPrev a:active {/**上个月、下个月箭头样式**/
    font-weight: bold;
    background-color: #7B68EE;
}
.CalDayHeader{
    border-bottom:1px solid #ccc;
}
.CalTitle{/**日历年月头部样式**/
    width:%;
    background:#FFF;
    color:black;
    border-bottom:1px solid #;
}
/**日历控件样式结束**/
.catListTitle {
    font-weight: bolder;
    font-family:STCaiyun;
    color:     #B03060;
    line-height: 2em;
    font-size: %;
    margin-top: 50px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9f3e8;
    text-align: center;
}
.catListComment {
    line-height: .5em;
}
.divRecentComment {
    color: #;
    margin-bottom:1em;
}
.c_b_p_link_desc{
    color: #;
    font-size: %;
    margin-bottom:.5em;
}
#sideBarMain ul {
    line-height: .5em;
}
.catListEssay{
    font-weight: bolder;
}
.catListTag{
    font-size: %;
    font-weight: bolder;
}
.catList{
    font-weight: bolder;
}
.catListFeedback{
    font-weight: bolder;
}
.catListView{
    font-weight: bolder;
}
.recent_comment_title{
    font-weight: bolder;
}
.recent_comment_body{
    font-size: %;
}
.recent_comment_author{
    color:#;
    font-size: %;
}
/*****侧边栏结束********************************/

/****查看文章页面开始*************************/
#topics {
    width: %;
    min-height: 18em;
    padding: 0px 0px 10px ;
    float: left;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
}
#topics .postTitle {
    font-size: %;
    font-weight: bold;
    border-bottom: 1px solid #;
    float: left;
    line-height: .5em;
    width: %;
    text-align: center;
}
.postBody {
    padding: 5px 2px 5px 5px;
    line-height: .5em;
    color: #;
    border-bottom: 1px solid #8686FF;
}
#EntryTag {
    color: #;
}
#EntryTag a {
    margin-left: 5px;
}
#EntryTag a:link, #EntryTag a:visited, #EntryTag a:active {
    color: #;
}
#EntryTag a:hover {
    color: #7B68EE;
}
#topics .postDesc {
    float: right;
    width: %;
    font-size:.9em;
    text-align: right;
    padding-right: 5px;
    color: #;
    margin-top: 5px;
}
.feedback_area_title {
    font-weight: bold;
    margin-top: 20px;
    border-bottom: 1px solid #8686FF;
    margin-bottom: 10px;
    padding-left: 8px;
}
.louzhu {
    background:transparent url('/images/icoLouZhu.gif') no-repeat scroll right top;
    padding-right:16px;
}
.layer{
    font-family:STFangsong;
    font-size:15px;
    padding-left: 8px;
}
.feedbackListSubtitle {
    margin-left: 10px;
    color: #;
    font-size:.9em;
}
.feedbackListSubtitle a:link, .feedbackListSubtitle a:visited, .feedbackListSubtitle a:active {
    font-weight:bold;
    color: #;
    font-weight: normal;
}
.feedbackListSubtitle a:hover {
    color: #7B68EE;
    text-decoration: none;
}
.feedbackManage {
    width: 160px;
    text-align: right;
    float: right;
}
.feedbackCon {
    font-weight:bold;
    border-bottom: 1px solid #ccc;
    padding: 15px 18px 20px 50px;
    min-height: 35px;
    _height: 35px;
    margin-bottom: 1em;
    line-height: .5em;
    width:%;
}
#divRefreshComments {
    text-align: right;
    margin-bottom: 10px;
}
.commenttb {
    width: 320px;
}
.cnblogs_code{
}
.comment_actions{
    margin-right:30px;
    font-size:16px;
    font-family:STFangsong;
}
.comment_digg{
    font-weight:bold;
    margin-right:10px;
    font-size:15px;
    font-family:STXinwei;
}
.comment_bury{
    font-weight:bold;
    margin-right:10px;
    font-size:15px;
    font-family:STXinwei;
}
/****查看文章页面结束************************

/****列表页面开始******************************/
.entrylistTitle,.PostListTitle,.thumbTitle{/**几个分类列表的标题样式**/
    font-size: %;
    font-weight: bold;
    border-bottom: 1px solid #8686FF;
    text-align: right;
    padding-bottom: 3px;
    padding-right: 10px;
}

.entrylistDescription {
    color: #;
    text-align: right;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    margin-bottom: 10px;
}
.entrylistItem {
    min-height: 20px;
    _height: 20px;
    margin-bottom: 30px;
    padding-bottom: 5px;
    width: %;
}
.entrylistPosttitle {
    font-size: %;
    font-weight: bold;
    border-bottom: 1px solid #;
    line-height: .5em;
    width: %;
    padding-left: 5px;
}
.entrylistPosttitle a:hover {
    text-decoration: none;
}
.entrylistPostSummary {
    margin-top: 5px;
    padding-left: 5px;
    margin-bottom: 5px;
}
.entrylistItemPostDesc {
    padding-left: 50px;
    text-align: right;
    color: #;
}
.entrylistItemPostDesc a:link, .entrylistItemPostDesc a:visited, .entrylistItemPostDesc a:active {
    color: #;
}
.entrylistItemPostDesc a:hover {
    color: #7B68EE;
}
.entrylist .postSeparator {
    clear: both;
    width: %;
    font-size: ;
    line-height: ;
    margin: ;
    padding: ;
    height: ;
    border: none;
}

.pager {
    text-align: right;
    margin-right: 10px;
}
.PostList {
    border-bottom: 1px solid #ccc;
    clear: both;
    min-height: .5em;
    _height: .5em;
    padding-top: 10px;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 5px;
}
.postTitl2 {
    float: left;
    font-size:.9em;
    color: #;
}
.postDesc2 {
    color: #;
    float: right;
    margin-right: ;
    font-size:.9em;
}
.postText2 {
    clear: both;

}
.pfl_feedback_area_title {
    text-align: right;
    line-height: .5em;
    font-weight: bold;
    border-bottom: 1px solid #;
    margin-bottom: 10px;
}
.pfl_feedbackItem {
    border-bottom: 1px solid black;
    margin-bottom: 20px;
}
.pfl_feedbacksubtitle {
    width: %;
    border-bottom: 1px dotted #;
    height: .5em;
}
.pfl_feedbackname {
    float: left;
}
.pfl_feedbackManage {
    float: right;
}
.pfl_feedbackCon {
    color: black;
    padding-top: 5px;
    padding-bottom: 5px;
}
.pfl_feedbackAnswer {
    color: #F40;
    text-indent: 2em;
}
.tdSentMessage {
    text-align: right;
}
.errorMessage {
    width: 300px;
    float: left;
}

/****列表页面结束******************************/*/
/****相册页面开始******************************/
.divPhoto {
    border: 1px solid #ccc;
    padding: 2px;
    margin-right: 10px;
}

.thumbDescription {
    color: #;
    text-align: right;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    margin-bottom: 10px;
}
/****相册页面结束******************************/

/*****留言页面开始*****************************/
#footer {
    text-align: center;
    min-height: 15px;
    _height: 15px;
    border-top: 1px solid black;
    margin-top: 10px;
    padding-top: 10px;
    margin-bottom: 10px;
}
/*留言查看页面的个人信息*/
.personInfo {
    margin-bottom: 20px;
}
/*留言分页区域*/
.pages {
    text-align: right;
}
/*****留言页面结束*****************************/
/*****第三部分结束*******************************/

/**************************************************
第四部分:文章内容常用标签格式。这个部分是设置作者写作内容的部分。例如:
如果作者的文章用有p标签,则可通过这个对这些文章中的p标签进行设置。前面
的".postBody"明确的指出了这里样式的作用范围。仅仅适用于文章主体部分。
建议这个不要设置过于详细的细节。因为,一些样式,一篇文章比较适合的话,
并不能保证所有的文章都适合。
**************************************************/
/*文章内部常用标签格式*/
.postBody {
    line-height: .5em;
}
.postBody p,.postCon  p{
    text-indent: 2em;
    margin:  auto 1em auto;
}
.postBody h2{
    font-size: %;
    margin: 15px auto 2px auto;
    font-weight:bold;
}
.postBody h3 {
    font-size: %;
    margin: 15px auto 2px auto;
    font-weight:bold;
}
.postBody h4{
    font-size:%;
    margin:15px auto 2px auto;
    font-weight:bold;
    color:#;
}

.postBody h5{
    font-size:%;
    margin:15px auto 2px auto;
    font-weight:bold;
    color:#;
}

.postBody a:link,.postBody a:visited,.postBody a:active{
    text-decoration:none;
}
.postCon a:link,.postCon a:visited,.postCon a:active{
    text-decoration:none;
}
.postBody ul,.postCon ul{
    margin-left:2em;
}

.postBody li,.postCon li{
    list-style-type:disc;
    margin-bottom:1em;
}

.postBody blockquote{
    background:url('/images/comment.gif') no-repeat 25px 0px;
    padding:10px 60px 5px 60px;
    min-height:35px;
    _height:35px;
    line-height:.6em;
    color:#;
}
/*****第四部分结束*******************************/

页面css

博客侧边栏公告

<"><param name="movie" value="http://cdn.abowman.com/widgets/dog/dog.swf?3?"></param><param name="AllowScriptAccess" value="always"></param><param name="wmode" value="opaque"></param><param name="bgcolor" value="FFFFFF"/></object>
<"><param name="movie" value="http://cdn.abowman.com/widgets/hamster/hamster.swf?"></param><param name="AllowScriptAccess" value="always"></param><param name="wmode" value="opaque"></param></object>
<!DOCTYPE html>
<html>
<body>

<div " src="http://cc.amazingcounters.com/counter.php?i=3213924&amp;c=9642085" alt="AmazingCounters.com"></a></div>

<div " alt="我的头像" src="http://img.besoo.com/file/201706/23/1111593545908.png" class="img_avatar"><div>

<div class="notice">
向上走<br>
即使一小步<br>
也是新高度<br>
<br>
<br>
你可以尝试点一下<br>
那个小西瓜和月亮<br>
有彩蛋的哦<br>
</div>

</body>
</html>

侧边栏

页首Html代码

<!DOCTYPE html>
<html>
<body>

<style>
#Canvas{
    position:fixed;
    top:0px;
    left:0px;
}
</style>

<canvas id="Canvas"></canvas>

<style>
#nav { width:150px; height: 400px; border: 1px solid #D4CD49; position:;top:% }
</style>

<input type="image" id="Uleft" src="http://fq.wc.lt//up/1503755860.png" onmouseover="this.style.top='10px'; this.src='http://fq.wc.lt//up/1503755899.png' " onmouseout="this.style.top='-60px'; this.src='http://fq.wc.lt//up/1503755860.png' " onclick="ShowPicture()">

<input type="image" id="Uright" src="http://fq.wc.lt//up/1503754720.png" onmouseover="this.style.top='10px'; this.src='http://fq.wc.lt//up/1503754624.png' " onmouseout="this.style.top='-55px'; this.src='http://fq.wc.lt//up/1503754720.png' " onclick="ChangePicture()" style="top: -55px;">

<input type="image" id="Dright" src="http://fq.wc.lt//up/1504337868.png" onclick="ShowTab()">

<input type="image" id="MagicArray" src="http://fq.wc.lt//up/1504338509.png" onclick="ShowTab()">

<a name="Tab" id="Tab1" href="http://www.cnblogs.com/" style="right:78px;bottom:165px;">博客园</a>
<a name="Tab" id="Tab1" href="http://www.cnblogs.com/Enceladus/" style="right:150px;bottom:130px;">首页</a>
<a name="Tab" id="Tab1" href="https://msg.cnblogs.com/send/swm_sxt" style="right:10px;bottom:130px;">私信博主</a>
<a name="Tab" id="Tab1" onclick="fixedIndexs.show()" style="right:120px;bottom:50px;">显示目录</a>
<a name="Tab" id="Tab1" onclick="fixedIndexs.hide()" style="right:20px;bottom:50px;">隐藏目录</a>
<a name="Tab" id="Tab1" href="https://i.cnblogs.com/" style="right:85px;bottom:10px;">管理</a>
<a name="Tab" id="Tab1" style="right:85px;bottom:88px;" onclick="control()">动画</a>

<script>
    window.requestAnimFrame=
        window.requestAnimationFrame||
        window.webkitRequestAnimationFrame||
        window.mozRequestAnimationFrame||
        window.oRequestAnimationFrame||
        window.msRequestAnimationFrame||
        function(callback){window.setTimeout(callback, /);};
    var W=document.body.scrollWidth,H=document.body.scrollHeight;
    var ca=document.getElementById("Canvas"),el=ca.getContext("2d");
    ,SpeedBasic=,SpeedRand=;
    var x=new Array(),y=new Array(),speed=new Array(),angle=new Array(),t=new Array(),TT=new Array();
    var img1=new Image(),img2=new Image(),img3=new Image(),img4=new Image();
    ca.width=W;ca.height=H;
    img1.src="http://fq.wc.lt//up/1504690030.png";
    img2.src="http://fq.wc.lt//up/1504690047.png";
    img3.src="http://fq.wc.lt//up/1504690062.png";
    img4.src="http://fq.wc.lt//up/1504690077.png";

    function RandomNum(Min,Max){
        var Range=Max-Min;
        var Rand=Math.random();
        return(Min+Math.round(Rand * Range));
    }
    function RandomReal(Min,Max){
        return Min+(Max-Min)*Math.random();
    }
    function abs(W){?-W:W;}
    function drawtail(px,py,an){
        an=Math.atan(an);
        ;i<;i++){
            var X,Y;
            Y=Math.sqrt(RandomReal(,lline*lline));
            X=RandomReal(-Y*/lline,Y*/lline)+RandomReal(-Y*/lline,Y*/lline);
            Y=lline-Y;
            X+=;
            el.fillRect(px+(X*Math.cos(an)-Y*Math.sin(an)),py-(X*Math.sin(an)+Y*Math.cos(an)),,);
        }
    }
    function drawstar(px,py,ti){
        ) el.drawImage(img1,px,py,,);else
        ) el.drawImage(img2,px,py,,);else
        ) el.drawImage(img3,px,py,,);else
        ) el.drawImage(img4,px,py,,);
    }
    function drawline(sx,sy,px,py){
        el.beginPath();
        el.moveTo(sx,sy);
        el.lineTo(px,py);
        el.stroke();
        el.closePath();
    }
    function dis(sx,sy,px,py){
        return Math.sqrt((px-sx)*(px-sx)+(py-sy)*(py-sy));
    }
    function work(timestamp){
        ,)==){
            x.push(RandomNum(,W));
            y.push(RandomNum(,H));
            t.push();
            TT.push(RandomNum(,));
            speed.push(SpeedBasic+RandomReal(-SpeedRand,SpeedRand)+RandomReal(-SpeedRand,SpeedRand)+RandomReal(-SpeedRand,SpeedRand));
            angle.push(RandomReal(-angleBasic,angleBasic)+RandomReal(-angleBasic,angleBasic)+RandomReal(-angleBasic,angleBasic));
            for (;;){
                ;else{
                    y[num]%=;
                    ,angle[num]=abs(angle[num]);,angle[num]=-abs(angle[num]);
                }
                var i;
                ;i<num;i++) ) break;
                if (i==num) break;
                x[num]=RandomNum(,W);y[num]=RandomNum(,H);
            }
            num++;
        }
        el.clearRect(,,W,H);
        el.fillStyle="#7B68EE";
        var tmp;
        ;i<num;i++)
        ;j<num;j++)
        ){
            tmp=speed[i];
            speed[i]=speed[j];
            speed[j]=tmp;

            tmp=angle[i];
            angle[i]=angle[j];
            angle[j]=tmp;
        }
        ;i<num;i++){
            //el.fillRect(x[i],y[i],10,10);
            drawtail(x[i],y[i],angle[i]);
            drawstar(x[i],y[i],(parseInt(t[i]/TT[i])%)+);
            y[i]+=speed[i];x[i]+=(speed[i]*angle[i]);
            t[i]++;
            ||x[i]>=W){
                num--;
                x[i]=x[num];y[i]=y[num];speed[i]=speed[num];angle[i]=angle[num];t[i]=t[num];TT[i]=TT[num];
                x.pop();y.pop();speed.pop();angle.pop();t.pop();TT.pop();
                i--;
            }
        }
        timer=requestAnimationFrame(work);
    }
    timer=requestAnimationFrame(work);
    ;
    function control(){
        ){
            cancelAnimationFrame(timer);
            ca.style.opacity=";
            sta=;
        }else{
            timer=requestAnimationFrame(work);
            ca.style.opacity=";
            sta=;
        }
    }

    function ShowTab(){
        dx=document.getElementById("MagicArray");
        if (dx.style.width=="200px"){
            dx.style.width="0px";
            dx.style.height="0px";
            dx.style.bottom="100px";
            dx.style.right="100px";
            dx.style.transform="rotate(0deg)";
        }else{
            dx.style.width="200px";
            dx.style.height="200px";
            dx.style.bottom="0px";
            dx.style.right="0px";
            dx.style.transform="rotate(180deg)";
        }

        dy=document.getElementsByName("Tab");
        ;i<y.length;i++){
            dx=dy[i];
            if (dx.style.fontSize=="15px"){
                dx.style.fontSize="0px";
                dx.style.transitionDelay="0s";
            }else{
                dx.style.fontSize="15px";
                dx.style.transitionDelay="0.8s";
            }
        }
    }
    function ShowPicture(){
        dx=document.getElementById("main");
        ";
    }
    function ChangePicture(){
        dx=document.body;
        dy=RandomNum(,);
        ){
            dx.style.background="url(http://pic1.win4000.com/wallpaper/e/513d451e86180.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://dl.bizhi.sogou.com/images/2014/03/12/541539.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://dl.bizhi.sogou.com/images/2014/01/27/503917.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://dl.bizhi.sogou.com/images/2014/02/08/513295.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://pic1.win4000.com/wallpaper/7/53e30d51ab19a.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://p19.qhimg.com/bdr/__85/d/_open360/mc0603/3.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://pic1.win4000.com/wallpaper/f/547eba3bb1c98.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://pic1.win4000.com/wallpaper/f/5485650e2cb8c.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://www.33lc.com/article/UploadPic/2012-9/201292210494670142.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://www.deskcar.com/desktop/else/20131221234738/18.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://attach.bbs.miui.com/forum/201505/22/171127is3ajbknlkleaozk.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://pic1.win4000.com/wallpaper/d/5258c7819e43a.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://pic1.win4000.com/wallpaper/8/525b63e8a7c9d.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://img3.web07.cn/UpPic/Desk/201609/07/600086071333152.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }){
            dx.style.background="url(http://5.26923.com/download/pic/000/324/55818cf8393293bdbd042b55ff293985.jpg) no-repeat fixed";
            dx.style.backgroundSize="cover";
        }
    }
    ChangePicture();
</script>

</body>
</html>

页首

页脚Html代码

<div class="fixedIndexs" style="position: fixed;opacity:0.5;bottom:300px;display: none"></div>
<script language="javascript" type="text/javascript">
var fixedIndexs=$('.fixedIndexs');
var hs = $('#cnblogs_post_body h2');
function openorclose(a) {
    $("#indexs").slideToggle("fast");
    var text=$(a).text();
    if(text=='[-]'){
        $(a).text("[+]");
        return;
    }
    $(a).text("[-]");
}
function createIndexs(){
    var indexs_container=$('<div style="border:solid 1px #ccc; background:#CD6889;width:200px;padding:4px 10px;"></div>');
    var indexs_controller=$('<p style="text-align:right;margin:10;"><span style="float:left;">目录<a onclick="javascript:openorclose(this);" style="cursor: pointer">[-]</a></span><a href="#top" style="text-align: right;color: #444">返回顶部</a></p>');
    var indexs=$('<ol id="indexs" style="margin-left: 14px; padding-left: 14px; line-height: 160%; display: block;"></ol>');
    indexs_container.append(indexs_controller).append(indexs);
    $.each(hs,function(i,h){
        $(h).before('<a name="index_'+i+'"></a>');
        indexs.append('<li style="list-style:decimal"><a href="#index_'+i+'" id="active_'+i+'">'+$(h).text()+'</a></li>');
    });
    ){
        fixedIndexs.append(indexs_container);
        //get home div right offset
        fixedIndexs.css(+'px');
    }
}
createIndexs();
fixedIndexs.hide();
</script>

页尾

http://images2017.cnblogs.com/blog/1131085/201710/1131085-20171015130455512-1970469482.png

tu pian

上一篇:CodeForces Round #552 Div.3


下一篇:【转载】CSS direction属性简介与实际应用