複製你需要的語法貼在自訂樣式

/*三欄式-左180px右160px-中間縮*/
.thrcol .yc3mainbd {margin-left:180px;}
.thrcol .yc3pribd {margin-right:164px;}
.thrcol .yc3sec {position:absolute;width:180px;left:5px; }
.thrcol .yc3subbd {width:160px;}

#左右欄內最新文章、最新回應、文章分類之標題前小圖示#

(有2組圖)

圖片網址1 → 出現在 左右標題 前面

圖片網址 2→ 出現在 更多回應 與 所有文章(最下面一行) 前面

/*Nav module list*/
.ycntmod .mbd ul.list li {background:url( 圖片網址)

left .6em no-repeat;padding-left:20px;margin-bottom:3px;_margin-bottom:3px;_line-height:2em;}
.ycntmod .mbd ul.list li.more {margin:-3px 0 0 -3px;text-align:right;background:url(圖片網址)

15px center no-repeat;}

2em →2可更改讓左右標題每一行空間變大小

 

/*訪客回應欄位加圖片*/
#yartcmt .pagination strong{display: none}
#yartcmt .pagination{height:243px; background:url(http://公告圖片網址) no-repeat;background-position: center;}

  

/*Module latest upup更新日期前圖*/
#ymodupdate .mbd .date{background:url( 圖片網址) left center no-repeat;padding-left:7px;font-size:89%;font-family:verdana;}

 padding-left:7px ←圖檔和右邊文字相差距離,數字越大,兩者之間距離越遠
font-size:89% ←圖檔大小

 

/*two col layout二欄式內文加寬設定*/
.twocolga #yhtw_mastfoot, .twocoldr #yhtw_mastfoot {width:850x;margin:0 auto;}
.twocolga[class], .twocoldr[class]{min-width:850px;behavior:none;}
.twocolga .ycnt3col,.twocoldr .ycnt3col {zoom:1;width:850px;text-align:left;margin:0 auto;}

 

/*格友留言回應後圖示*/
#ypreviewmsg .yvstrcmnt{background:transparent url(圖片網址) no-repeat scroll center top;padding-top:103px;}

 

/*預覽或確認按鈕框*/
input,select{background:url(圖片網址);color:#2D0000;border: 3px double #4B6978;font-size:16px;font-family:verdana;}

 

/*Nav module body統計資料+月曆+更新日搜尋文字顏色*/
.yc3sec .mbd, .yc3subbd .mbd, .yc3sec .mft, .yc3subbd .mft{ background:transparent; color:#
663300;}

 

/*月曆當日色字體大小*/
#ymodcal .mbd td strong {color:
663300;}

 

/*月曆星期字體色 */
#ymodcal th {color:#000000;}
 

 

/*blog profile 部落格檔案、個人資料、自我介紹加圖片*/
table#bloginfo th {background:url(部落格檔案標題圖片的網址);}
table#bloginfo td {background:url(部落格檔案敘述圖片的網址);}
table#usrinfo th {background:url(個人資料標題圖片的網址);}
table#usrinfo td {background:url(個人資料敘述圖片的網址);}
#yusrintro p {background:url(自我介紹圖片的網址);}

 

/*自訂欄位連結列自動加框*/
.ycntmod .mbd ul.list li {BACKGROUND: url(底圖網址 ) 0% 100%; COLOR:white; border:5px;  BORDER-TOP-STYLE: double; BORDER-RIGHT-STYLE: double; BORDER-LEFT-STYLE: double; BORDER-BOTTOM-STYLE: double;}

 

/*make coomment bar回應引用更換圖片*/
div.btncomment a {display:block;height:高px;width:寬px;background:url(我要回應圖片網址) no-repeat;}
div.btntrackback a {display:block;height:高px;width:寬px;background:url(我要引用圖片網址) no-repeat;}

 

/*comment list management管理回應欄*/
.listbd {background:url(管理回應底圖網址); color:#文字顏色之色碼;}
#ycmntlist table th {background: url(管理回應標題圖網址); color: #文字顏色之色碼; }

#ycmntlist .btncmntre {background:url(管理回應按鈕圖網址);}

 

/*guestbook留言版加圖片*/

#ymsgboard q a {background:url(留言板按鈕圖網址) ;}
#ymsgboard .mhd {background:url(留言板標題圖網址) ;}
#ymsgboard .mbd {background:url(留言板底圖網址) ;}

 

/*Links連結去底線*/
a,a:link,a:visited{color:#未連結時色碼;text-decoration: none}
a:hover{color:#連結時色碼;text-decoration: none;}

 

/*Links網頁超連結虛線框*/
a,a:link,a:visited{color:#色碼;text-decoration:none}
a: hover{color:#色碼;background-image:url(http://圖檔網址.gif);background-repeat: repeat;border:1px dotted #色碼;position:relative;top:1px;left:1px}

 

/*Links連結浮出效果*/
a:hover{ border: 2px #fff outset }

 

/*Background背景圖底圖重複*/
body{background:#ffffff url(背景圖網址) repeat;}

 

/*Background背景圖底圖固定*/
body{ background:#ffffff url(背景圖網址) no-repeat;background-attachment: fixed}

 

/*部落格標題圖*/
#yblogtitle h1 { display:block; float:left; background:url(標題圖網址)no-repeat; width:圖片寬度px;  height:圖片高度px; font-size:0; line-height:0; text-indent:-5000px; overflow:hidden; cursor:pointer;  cursor:hand;}

 

/*Blog title標題置中*/
#yblogtitle .mbd,#yblogtitle .mft{font-size:180%;color:#色碼;font-family:新細明體; color:#D23C78;text-align:center;}
#yblogtitle .thd a{width:168px;height:40px;top:-0px;position:relative;left:0px;display:block;}
#yblogtitle .thd h1 {font-size:180%;color:white;font-family:新細明體;}

 

/*Module latest upup更新日期前小圖*/
#ymodupdate .mbd .date{background:url(小圖網址) left center no-repeat;padding-left:11px;font-size:104%;font-family:verdana;}

 

/*Nav module list左右欄位小圖*/
.ycntmod .mbd ul.list li {background:url(小圖網址1) left .1em no-repeat;padding-left:25px;margin-bottom:3px;_margin-bottom:3px;_line-height:1.5em;}
.ycntmod .mbd ul.list li.more {margin:-3px 0 0 -3px;text-align:right;background:url(小圖網址2) 20px center no-repeat;}

 

/*Article content module文章前小圖*/
.yblogcnt .blgtitlebar {margin-bottom:9px;zoom:1;}
.yblogcnt .blgtitlebar h2 {font-size:125%;font-weight:bold;background:url(小圖網址) no-repeat;padding-left:60px;}

 

/*btnsbsrb訂閱部落格圖*/
div#btnsbsrb a{display:block;width:圖片寬度px;height:圖片高度px;overflow:hidden;background:url(訂閱圖網址) no-repeat;margin:0;}
div#btnsbsrb_nologin a{display:block;width:圖片寬度px;height:圖片高度px;overflow:hidden;background:url(訂閱圖網址) no-repeat;margin:0;}
#yblogtitle .tft {text-align:right;padding-bottom:0px;position:relative;}

 

/*性別圖*/
#ymodprf .horos img{display:none;}
#ymodprf .horos{width:圖片寬度px;height:圖片高度px;background:url(性別圖網址) center no-repeat;}

 

/*滑鼠游標*/
body{cursor:url(未連結時游標網址)}
a:hover {cursor:url(連結時游標網址)}

 

/*Opacity for blast招呼語圖框+文字置中*/
#yblast{zoom:1;position:relative;top:-20px;left:0px;margin:0 0 -55px 0;z-index:2;}
#yblast .text,#yblast .bg{overflow:hidden;padding:5px 5px;width:招呼語圖框寬px;height:招呼語圖框高px;}#yblast .text{zoom:1;margin:-55px 0 0;}
#yblast .text a#yblast a.edit{background:url(圖框網址);width:13px;height:13px;}
#yblast .bg {zoom:1; filter:alpha(opacity:透明度); background: url(圖框網址) no-repeat}
#yblast .text{color:#文字顏色之色碼;font-size:90%;}

 

/*shared rounded corner for all modules無框線語法*/
.ycntmod {width:100%;position:relative;margin-bottom:10px;overflow:hidden;}
.ycntmod .rctop {zoom:1;background:url() left top no-repeat;margin-right:5px;}
.ycntmod .rctop div {background:url() right top no-repeat;height:5px;font-size:0;position:relative;right:-5px;}
.ycntmod .rcbtm {zoom:1;background:url() left bottom no-repeat;margin-right:5px;}
.ycntmod .rcbtm div {background:url() right bottom no-repeat;height:5px;font-size:0;position:relative;right:-5px;}
.ycntmod .rcl {padding-left:5px;background:url() repeat-y;}.ycntmod .rcr {zoom:1;padding-right:5px;background:url() right repeat-y;}
.ycntmod .text {position:relative;word-break:break-all;}.yc3pribd .ycntmod{overflow:visible;}
.yc3pribd .ycntmod .yblogcnt{overflow:hidden;}

 

/*部落格單色外框線*/
body {border: 框線大小px double #大框線色碼 ;}

 

/*部落格漸層外框線*/
html{border-top : 大小px solid #色碼; border-bottom : 大小px solid #色碼; border-left : 大小px solid #色碼; border-right : 大小px solid #色碼; }

 

/*按鈕框框*/
input,select{background: #框底色碼;color: #文字色碼;border: 1px solid #框線色碼;FONT-SIZE: 9px;font-family:verdana;}

 

/*Text color for module左右欄位標題文字顏色*/
.text {color: #文字顏色之色碼}

 

/*Text color for blog title部落格標題字體顏色*/
#yblogtitle .text {color: #文字顏色之色碼}

 

/*Text color for blog title部落格敘述文字*/
#yblogtitle .text {color:#文字顏色之色碼;}

 

/*Text color for main content中間文章欄位文字顏色*/
.yc3pribd .text {color: #文字顏色之色碼}

 

/*Nav module body左右欄位底圖*/
.yc3sec .mbd, .yc3subbd .mbd, .yc3sec .mft, .yc3subbd .mft{background-image:url(底圖網址);}

 

/*Nav module header左右欄標題底圖*/
.yc3sec .mhd, .yc3subbd .mhd, .yc3sec .mhd a, .yc3subbd .mhd a,.yc3sec .mhd a:link, .yc3subbd .mhd a:link,.yc3sec .mhd a:visited, .yc3subbd .mhd a:visited{background-image : url(底圖網址);}

 

/*Blog title部落格標題敘述欄底圖*/
#yblogtitle .mbd,#yblogtitle .mft{background: url(底圖網址) repeat; }#yblogtitle h1{color: #000000 ;}

 

/*Main content body文章內文底圖*/ 
.yc3pribd .mbd, .yc3pribd .mft, #yreplymsg table, #ysbscrblist table, #ybloginfo table, #yusrinfo table, #yusrintro p{
background-image:url(底圖網址);color: #FF0099} #ymodcal .mbd td strong {color: #FF0099;}

 

/*Main content header文章標題底圖*/
.yc3pribd .mhd{ background:url(圖片網址) repeat; color:#FF0099

 

/*Background color for blog title部落格敘述底色*/
#yblogtitle .mbd, #blogtitle .mft {background-color: #色碼}

 

/*Nav module header左右欄位標題底色*/
.yc3sec .mhd, .yc3subbd .mhd{background: #色碼;color: #色碼;}

 

/*Opacity for main content文章底圖透明度*/
.yc3pribd .rctop,.yc3pribd .rctop div,.yc3pribd .rcl,.yc3pribd .rcr,.yc3pribd .rcbtm,.yc3pribd .rcbtm div {zoom:1; filter:alpha(opacity:透明度)}
#yblast{display}

 

/*Opacity for sub column左右欄位透明度*/
.yc3subbd .rctop,.yc3subbd .rctop div,.yc3subbd .rcl,.yc3subbd .rcr,.yc3subbd .rcbtm,.yc3subbd .rcbtm div, .yc3sec .rctop,.yc3sec .rctop div,.yc3sec .rcl,.yc3sec .rcr,.yc3sec .rcbtm,.yc3sec .rcbtm div {zoom:1; filter:alpha(opacity:透明度)}

 

/*Opacity for blogtitle部落格標題敘述透明度*/
#yblogtitle .rctop, #blogtitle .rctop div, #yblogtitle .rcl, #yblogtitle .rcr, #yblogtitle .rcbtm, #yblogtitle .rcbtm div {zoom:1; filter:alpha(opacity:透明度)}

 

/*捲軸變色*/

html{
SCROLLBAR-FACE-COLOR: 色碼;                     /*設定軸面顏色*/
SCROLLBAR-HIGHLIGHT-COLOR:色碼;              /*設定軸面三角左邊顏色*/
SCROLLBAR-SHADOW-COLOR: 色碼;               /*設定軸面三角右邊顏色*/
SCROLLBAR-3DLIGHT-COLOR: 色碼;                 /*設定左立體邊顏色*/
SCROLLBAR-DARKSHADOW-COLOR: 色碼;      /*設定右立體面顏色*/  
SCROLLBAR-ARROW-COLOR: 色碼;                 /*設定箭頭的顏色*/
SCROLLBAR-TRACK-COLOR: 色碼;                   /*設定軸軌的顏色*/}

 

所有的文章文字都使用同樣大小

語法:

/*Text color for main content*文章欄位字體顏色*/
.yc3pribd .text {color: #0066ff;font-size:150%;font-family:標楷體;}

語法說明:

font-family:標楷體;  如果你不想更換字體~就刪掉這些字

font-size:150%;  數字大字體越大

 

/*Text color for blog title*部落格資料文字顏色*/
#yblogtitle .text {color: #FF0000;}

 

/*Blog title*部落格標題大小顏色*/
#yblogtitle .mbd,#yblogtitle .mft{ font-family:標楷體;font-size:170%}
#yblogtitle h1{color:#FF0000;font-family:標楷體;}

分享

Facebook Plurk YAHOO!

本文引用自eric2012888 - 部落格(自訂樣式)語法CSS範本說明

arrow
arrow
    全站熱搜

    漾兒 發表在 痞客邦 留言(0) 人氣()