1. 程式人生 > >博客園css定制

博客園css定制

tco title 微軟雅黑 too 列表 背景顏色 廣告 site 博客

博客園css定制

選擇模板SimplClear


代碼如下:

/* 廣告屏蔽 */
#ad_t2 {
    display: none;
}
.c_ad_block {
    display: none;
}

/*背景顏色*/
body {
    background: rgba(12,100,129,1) url('https://www.cnblogs.com/images/cnblogs_com/MouHaoHao/1443195/o_2.jpg') fixed no-repeat;
    background-position: 50% 5%;
    background-size: cover;
}

/*左頁簽*/
#main {
    margin: 0 auto;
    width: 50%;
        height: 515px;
    background-color: rgba(245,245,245,0.7);
    padding: 10px;
    padding-left: 1%;
    padding-right: 1%;
    margin-top: 50px;
    margin-bottom: 200px;
    margin-left: 9%;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
    float: left;
    overflow-y: scroll ;
    border-radius: 4px 4px 4px 4px;
}

/*文章*/

.postTitle {
    border-left: 8px solid rgba(121,169,232,1);
    margin-left: 220px;
    margin-bottom: 10px;
    font-size: 20px;
    float: right;
    width: 100%;
    clear: both;
    border-bottom: 1px dashed rgba(197,197,197,1.00);
    border-top: 1px solid rgba(119,119,119,1.00);
}

.postTitle a:link, .postTitle a:visited, .postTitle a:active {
    color: rgba(94,142,234,1.00);
    transition: all 0.4s linear 0s;
}

.postTitle a:hover {
    margin-left: 30px;
    color: #0f3647;
    text-decoration: none;
}

.postCon {
    float: right;
    line-height: 1.5em;
    width: 100%;
    clear: both;
    padding: 10px 0;
}

.post {
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

.c_b_p_desc {
    /*background: url(images/posted_time.png) no-repeat 0 1px;*/
    color: #757575;
    float: left;
    width: auto;
    clear: both;
    text-align: left;
    font-family: "微軟雅黑","宋體","黑體",Arial;
    font-size: 13px;
    padding-right: 20px;
    margin-top: 20px;
    line-height: 1.8;
    padding-bottom: 35px;
}

.cnblogs_code {
    background: rgba(255,255,255,0)
}

.cnblogs_code div {
    background: rgba(255,255,255,0)
}

.cnblogs_code_toolbar {
    background: rgba(255,255,255,0)
}

/*右頁簽*/
#rightmenu {
    margin: 0 auto;
    width: 25%;
        height: 515px;
    background-color: rgba(245,245,245,0.7);
    padding: 10px;
    padding-left: 1%;
    padding-right: 1%;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-right: 9%;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
    float:right;
        overflow-y: scroll ;
        overflow-x: auto;
    border-radius: 4px 4px 4px 4px;
}

#rightmenu h3 {
    background-color: rgba(121,169,232,1);
    margin-bottom: 0px; 
    padding-left: 15px;
}

#footer {
    display: none;
}

/*博客名*/
#header {
    height: 100px;
    clear: both;
    color: rgba(245,245,245,0);
}

#header h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.8em;
    margin-top: 10px;
    width: 150px;
    float: left;
}

#tagline {
    float: right;
    display: block;
}
/*隱藏反對*/
.buryit {
    display: none
}
.diggit {
    float: right
}

/*隱藏鏈接下劃線*/
a:link {text-decoration:none;}
a:visited {text-decoration:none}
a:hover {text-decoration:none}
a:active {text-decoration:underline}

/*導航*/
#my_links {
    height: 120px;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
    margin-bottom: 15px;
}

#my_links  h3 {
    float: left;
    height: 120px;
    width: 20px;
    text-align: center;
    word-break: break-all;
    margin-bottom: 0px;
    margin-top: 0px;
    padding-left: 0px
}

#my_links ul {
    padding-left: 0px;
    float: right;
    display: block;
    width: 150px;
    list-style-type: none;
    margin-bottom: 0px;
    margin-top: 0px;
}

#my_links a:link, #navList a:visited, #navList a:active{
    color: #000;
    font-size: 18px;
    font-weight: bold;
}



/*copytight*/
#my_footer {
    text-align: center;
    float: right;
    width: 20%;
    padding: 0px;
    margin: 40%;
    margin-top: 0px;
    margin-bottom: 0px;
}

/*右側列表樣式*/
#rightmenu ul li {
    margin-left: 15px;
}

/*日歷*/
#blogCalendar {
    border:1px solid rgba(121,169,232,1);
    background-color: white;
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*公告*/
#blog-news {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}
#profile_block {
    padding-left: 40px;
}
/*統計*/
#blog_stats {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*搜索*/
#sidebar_search {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}
#q {
    background: rgba(255,255,255,0);
    margin-left: 40px;
    margin-bottom: 5px;
}

#widget_my_google {
    display: none
}

/*常用鏈接*/
#sidebar_shortcut {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*我的鏈接*/
#sidebar_toptags {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*隨筆檔案*/
#sidebar_categories {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*閱讀檔案*/
#sidebar_topviewedposts {
    box-shadow: 0 2px 6px rgba(100,100,100,0.3);
}

/*?*/
.newsItem, .catListEssay, .catListLink, .catListNoteBook, .catListTag, .catListPostCategory, 
.catListPostArchive, .catListImageCategory, .catListArticleArchive, .catListView, 
.catListFeedback, .mySearch, .catListComment, .catListBlogRank, .catList, .catListArticleCategory ,#blog-calendar
{
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
    word-wrap: break-word;
}

自學第一周前端,可能有許多不到位之處。請各位大佬指正。。。

參考文獻

  1. https://www.cnblogs.com/Penn000/p/6947472.html
  2. https://blog.csdn.net/siwuxie095/article/details/80151468

博客園css定制