
如何單獨改變分區文字的字級和顏色(紅框處)
在後台試了一下
好像和版面文字是連動的
請問要如何修改
謝謝
版主: 版主管理群

我是用預設的風格jwxinst 寫:改動css檔案就可以啦
/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:active,a:visited { color : #006699; }
a:hover { text-decoration: underline; color : #DD6900; }
hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; }
/* This is the outline round the main forum tables */
.forumline { background-color: #FFFFFF; border: 2px #006699 solid; }
/* Main table cell colours and backgrounds */
td.row1 { background-color: #EFEFEF; }
td.row2 { background-color: #DEE3E7; }
td.row3 { background-color: #D1D7DC; }
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: #FFFFFF;
background-image: url(images/cellpic2.jpg);
background-repeat: repeat-y;
}
/* Header cells - the blue and silver gradient backgrounds */
th {
color: #FFA34F; font-size: 11px; font-weight : bold;
background-color: #006699; height: 25px;
background-image: url(images/cellpic3.gif);
}
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(images/cellpic1.gif);
background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px;
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; }
td.row3Right,td.spaceRow {
background-color: #D1D7DC; border: #FFFFFF; border-style: solid; }
th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }
/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2 {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #000000;
}
/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; }
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : 11px; color : #000000 }
a.mainmenu { text-decoration: none; color : #006699; }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }
代碼: 選擇全部
<font color="red">MAIN 站務區 (FORUMS)</font>< font size=3 face="bold" color="#rrggbb" >文字 < /font >kkt 寫:To:brianfang
假如你要單獨改變分區文字的字級和顏色, 有幾個方法
除了在基本組態更改, 也可打開 overall_body.tpl
你現在的標題文字色碼是#006699
建議你到下址參考色碼, 然後改好上傳看看便知道.
http://home.pchome.com.tw/net/jiemike37/css.html
而粗體字是 bold;
要每個標題顏色不一樣, 可直接在後台設定標題文字時, 用 html 寫入.
例如:
前面的 是留空格, 太貼了, 你可自行多加上.代碼: 選擇全部
<font color="red">MAIN 站務區 (FORUMS)</font>
red 你可改為你要的色碼, 例如: <font color="#FF0000">
祝你成功!!
代碼: 選擇全部
<a class="maintitle">主題</a
<a class="nav">主題</a> 是指官方的subsilver嗎?我是用預設的風格
蠻正統XDDDD<span style="font-size: 5pt" color="red"><b>主題</b></span>
不曉得他的是否 subsilver呢?brianfang, 其實你最方便的一個做法, 是先在 overall_body.tpl 內,
把其中一或兩項字型類別, 更改為你要的色碼, 利用 css 的統一風格屬性.
因為 phpBB 某些預設的字實在是太小了,我想要修改 subSilver 字形大小,哪知道 subSilver.css 不管怎麼改通通沒用
謝謝kkt 寫:brianfang, 首先想請問你第一篇的問題解決了沒有?
正常情況下「分區文字」及「文章標題」, 的語法一樣.
也毋須開啟後台的html, 也不建議開放. 很易被在 [簽名檔] 植入破壞程式.