[請問]文章字體顏色、大小修改?

phpBB3.0.x請盡早更新為phpBB3.2.x版,官方已停止更新
頭像
懸壺子
系統管理員
系統管理員
主題中的帖子: 1
文章: 34654
註冊時間: 2001-10-05 , 10:10
個人狀態: 道骨學習佛心..^^..
貼心留言: 氣候不穩
性別: 公仔
來自: 黃金故鄉
聯繫:

[請問]文章字體顏色、大小修改?

未閱讀文章 懸壺子 »

[請問]文章字體顏色、大小修改?

http://phpbb-tw.net/phpbb/viewtopic.php?f=140&t=51732
心靈捕手 寫:文章字體顏色、大小修改, 重點在修改底下檔案的設定:
styles/prosilver/theme/content.css
關鍵在此區塊:

代碼: 選擇全部

/* Post body styles
----------------------------------------*/
.postbody {
   padding: 0;
   line-height: 1.48em;
   color: #333333;
   width: 76%;
   float: left;
   clear: both;
}

.postbody .ignore {
   font-size: 1.1em;
}

.postbody h3.first {
   /* The first post on the page uses this */
   font-size: 1.7em;
}

.postbody h3 {
   /* Postbody requires a different h3 format - so change it here */
   font-size: 1.5em;
   padding: 2px 0 0 0;
   margin: 0 0 0.3em 0 !important;
   text-transform: none;
   border: none;
   font-family: "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
   line-height: 125%;
}

.postbody h3 img {
   /* Also see tweaks.css */
   vertical-align: bottom;
}

.postbody .content {
   font-size: 1.3em;
}

.search .postbody {
   width: 68%
}
若只要調整上圖紅色區塊裡的字型大小及顏色, 則關鍵在

代碼: 選擇全部

.postbody .content {
   font-size: 1.3em;
}
例如) 取代成

代碼: 選擇全部

.postbody .content {
   font-size: 1.4em;
   color: #ff0000;
}


則字型加大, 顏色改為紅色.
P.S.
修改後, 進 ACP > 風格 > 主題 > prosilver > 重新整理.

至於, 若嫌右上角ˇA ^字不夠大則可修改底下檔案的設定
normal.css (一般)
medium.css (中等)
large.css (最大)
預設依序為 10px, 11px, 12px
您可以依序自行加大之, 如 12px, 13px, 14px
P.S.
修改後, 進 ACP > 風格 > 主題 > prosilver > 重新整理.
圖檔
版面鎖定 主題已鎖定

回到「phpBB3.0.x」