[問題]請問怎樣改這裡的顏色和mouseover時的顏色

phpBB 2 Style Support
討論的範圍包含版面排列、樣式、配置;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
render_men
星球公民
星球公民
文章: 39
註冊時間: 2004-02-27 16:33

[問題]請問怎樣改這裡的顏色和mouseover時的顏色

文章 render_men »

修改*.css擋
改了"回覆"
改了"查看誰在線上"
就是改不了"題目"和"版面"??
●架設主機作業系統:winxp
●快速架站程式:appserv-win32-2.4.1.exe
●Database: MySQL Version 4.0.20
●上網方式:ADSL(pccw)
●phpBB2 版本:phpBB 2.0.13
Artemas
竹貓忠實會員
竹貓忠實會員
文章: 489
註冊時間: 2003-08-23 03:18
來自: NorthBlue
聯繫:

Re: [問題]請問怎樣改這裡的顏色和mouseover時的

文章 Artemas »

render_men 寫: 請問怎樣改這裡的顏色和mouseover時的顏色\r
修改*.css擋
改了"回覆"
改了"查看誰在線上"
就是改不了"題目"和"版面"??
啥是這裡的顏色????

subSilver風格不是用subSilver.css
而是用後台管理風格的建立與設定

查一下viewforum_body.tpl與viewtopic_body.tpl
標題地方的css ,再去比對overall_header.tpl

代碼: 選擇全部

.topictitle,h1,h2	{ font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link   { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover	{ text-decoration: underline; color : {T_BODY_HLINK}; }
a.topictitle:link 的{T_BODY_LINK}為後台中[正常的連結顏色:]
a.topictitle:visited 的{T_BODY_VLINK}為[ 參觀過的連結顏色 (visited):]
a.topictitle:hover 的{T_BODY_HLINK} 為[滑鼠移過的連結顏色 (hover):]

若是你要保持原有後台中的基本連結顏色預設值,而只是想把標題css的 .topictitle 連結顏色修改,這樣的話只要去修改 overall_header.tpl

代碼: 選擇全部

.topictitle,h1,h2	{ font-weight: bold; font-size: 字體大小px; color : {T_BODY_TEXT}; }
a.topictitle:link   { text-decoration: none; color : #自選未訪問連結顏色; }
a.topictitle:visited { text-decoration: none; color : #自選已訪問連結顏色; }
a.topictitle:hover	{ text-decoration: underline; color : #自選按下連結顏色; }
這樣就能沿用原本viewforum_body.tpl與viewtopic_body.tpl的標題CSS
不用去修改。

注意二件事情
除非你的風格原本就是使用XXX.CSS,那就直接修改他而不用改overall_header.tpl

其次基本連結色要與其他連結色不同的話再CSS當中
方法就是\r
a.QQQ:link {color : #自選顏色;}
a.QQQ:visited {color : #自選顏色;}
a.QQQ:hover {color : #自選顏色;}

而連結文字中要套入CSS也不是前面用<span style="定義名稱"><a href="URL">XXX</a></span>

而是用於<a href="URL" class="QQQ">XXX</a>
在連結網址後面加一組class

然後它自己會依照瀏覽者去變更QQQ的三種連結色來變換
圖檔
Os: Windows 2003
Constitute: IIS.6 + php4 + MySql 4 + ODBC + phpMyAdmin2.6.0 + phpBB 2.0.23
url: http://oops.cafepark.com
動機不明
喝咖啡的綠皮猴
喝咖啡的綠皮猴
文章: 1179
註冊時間: 2002-03-06 20:37
來自: GOP (重啟)

文章 動機不明 »

Artemas 回的不錯耶 :-P
有辦法把它轉成一個教學文件嗎? ^^
非官方外掛問題區公告: [必看]請配合發問格式及明確主題發問(2006 02/24更新)
七點要求:
1. 發問前先搜尋,確定沒有重複後再發表
2. 主題要明確
3. 依照發問格式
4. 禁連續推文
5. 請盡量減少使用地方性語言
6. 解決問題後請修改第一篇主題,並感謝曾經幫過你的前輩們 ^^
7. 請不要將檔案內容完整貼出喔! 只要提供問題行及上下各五行就可以了
Artemas
竹貓忠實會員
竹貓忠實會員
文章: 489
註冊時間: 2003-08-23 03:18
來自: NorthBlue
聯繫:

文章 Artemas »

青菜寫寫而已,偶還發現不是寫的很清楚 :mrgreen:

偶現在正在忙著修改自己論壇的註冊機制花生錯誤~"~

晚一點有空,看看能不能寫篇PHPBB的CSS教學\r

先來去滅火 :lol:
圖檔
Os: Windows 2003
Constitute: IIS.6 + php4 + MySql 4 + ODBC + phpMyAdmin2.6.0 + phpBB 2.0.23
url: http://oops.cafepark.com
render_men
星球公民
星球公民
文章: 39
註冊時間: 2004-02-27 16:33

文章 render_men »

偶是用"Eos Theme"在後台不能修改!
so 要改 *.css 但找不著"主題"下那裡的顏色控制\r
css 檔如下 :

代碼: 選擇全部

/*
  Eos Theme for phpBB version 2+
  Created by Vjacheslav Trushkin
  http://www.trushkin.net
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
	background-color: #663300;
	scrollbar-face-color: #FF6600;
	scrollbar-arrow-color:  #FFFFFF;
	scrollbar-track-color: #F0EDDA;
	scrollbar-highlight-color: #C8D3E1;
	scrollbar-3dlight-color: #FF6600;
	scrollbar-shadow-color: #7492B6;
	scrollbar-darkshadow-color: #3A5370;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
a { text-decoration: underline; color: #525E6E; }
a:visited	{ text-decoration: underline; color: #3E4753; }
a:hover		{ text-decoration: underline; color: #939DAE; }
a:active	{ text-decoration: underline; color: #000000; }
hr	{ height: 0px; border: solid #000000 0px; border-top-width: 1px;}


.maintable	{ background-color: #FF6600; border: #FFFFFF; border-style: solid;
	border-left-width: 1px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; }
/* This is the outline round the main forum tables */
.forumline	{ background-color: #000000; }


/* Main table cell colours and backgrounds */
td.row1	{ background-color: #FFFFFF; }
td.row1_over	{ background-color: #33FF00; }
td.row2	{ background-color: #FFFFFF; }
td.row2_over	{ background-color: #33FF00; }
td.row3, td.row3Right	{ background-color: #FFFFFF; }
td.row3_over	{ background-color: #33FF00; }
td.row4	{ background-color: #33FF00; }


/*
  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;
}

/* Header cells - the blue and silver gradient backgrounds */
th, td.th	{
	color: #000000; font-size: 12px; font-weight: bold;
	background-color: #DFE7EE; height: 26px;
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
			background-color:#9EB3C5; height: 28px;
}

td.th2 {background-color:#9EB3C5; height: 20px; color: #FFFFFF; }

td.spaceRow { background-color: #9EB3C5; }


/*
  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 :-)
*/

/* The largest text used in the index page title and toptic title etc. */
h1,h2	{
			font-weight: bold; font-size: 18px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
			text-decoration: none; line-height : 120%; color: #000000;
}
.maintitle	{
			font-weight: bold; font-size: 16px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
			text-decoration: none; line-height: 120%; color: #FFFFFF;
}
.subtitle	{
			font-size: 13px; font-family: Arial, Helvetica, sans-serif;
			text-decoration: none; color: #ECF0F4;
}


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall, .gensmall2 { font-size : 10px; }
.gentiny { font-size: 9px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #000000; text-decoration: underline; }
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: #F0EDDA; 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: underline; color: #000000;  }
a.mainmenu:hover{ text-decoration: underline; color: #FFFFFF; }


/* Forum category titles */
.cattitle		{ font-weight: bold; font-size: 12px ; letter-spacing: 1px; color: #ECF0F4}
a.cattitle, a.cattitle:visited, .cattitle a, .cattitle a:visited { text-decoration: underline; color: #000000; }
a.cattitle:hover, a.cattitle:active, .cattitle a:hover, .cattitle a:active { text-decoration: underline; color: #F0EDDA; }

.rowtitle		{ font-weight: bold; font-size: 12px ; letter-spacing: 1px; color: #3E4753; }
a.rowtitle		{ text-decoration: underline; color: #3E4753; }
a.rowtitle:visited { text-decoration: underline; color: #3E4753; }
a.rowtitle:hover { text-decoration: underline; color: #F3F7FA; }
a.rowtitle:active { text-decoration: underline; color: #FFFFFF; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink		{ font-weight: bold; font-size: 12px; color: #525E6E; }
a.forumlink 	{ text-decoration: underline; color: #525E6E; }
a.forumlink:hover{ text-decoration: underline; color: #939DAE; }


/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav			{ font-weight: bold; font-size: 11px; color : #000000;}
a.nav			{ text-decoration: underline; color: #000000; }
a.nav:hover		{ text-decoration: underline; color: #F0EDDA; }


/* titles for the topics: could specify viewed link colour too */
.topictitle			{ font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link   { text-decoration: underline; color: #000000; }
a.topictitle:visited { text-decoration: underline; color: #5C3D01; }
a.topictitle:hover	{ text-decoration: underline; color: #FF6600; }
a.topictitle:active	{ text-decoration: underline; color: #000000; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name			{ font-size: 11px; color: #000000;}
a.name:link   { text-decoration: underline; color: #000000; }
a.name:visited { text-decoration: underline; color: #5C3D01; }
a.name:hover	{ text-decoration: underline; color: #FF6600; }
a.name:active	{ text-decoration: underline; color: #000000; }

/* Location, number of posts, post date etc */
.postdetails		{ font-size: 10px; color: #000000; }


/* The content of the posts (body of text) */
.postbody { font-size: 12px;}
a.postlink:link	{ text-decoration: underline; color: #000000; }
a.postlink:visited { text-decoration: underline; color: #5C3D01; }
a.postlink:hover { text-decoration: underline; color: #FF6600; }
a.postlink:active { text-decoration: underline; color: #000000; }


/* Quote & Code blocks */
.code {
	font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
	background-color: #F0EDDA; border: #5C3D01; border-style: dotted;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
	font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #3E4753; line-height: 125%;
	background-color: #F0EDDA; border: #5C3D01; border-style: dotted;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


/* Copyright and bottom info */
.copyright		{ font-size: 9px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #808080; letter-spacing: -1px;}
a.copyright, a.copyright:visited, .copyright a, .copyright a:visited { color: #808080; text-decoration: none;}
a.copyright:hover, .copyright a:hover, a.copyright:active, .copyright a:active { color: #000000; text-decoration: underline;}

.copyright2		{ font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; font-weight: bold; }
a.copyright2, a.copyright2:visited, .copyright2 a, .copyright2 a:visited { text-decoration: underline; color: #FFFFFF; }
a.copyright2:hover, .copyright2 a:hover { text-decoration: underline; color: #F3F7FA; }
a.copyright2:active, .copyright2 a:active { text-decoration: underline; color: #FFFFFF; }


/* Form elements */
input,textarea, select {
	color : #000000;
	font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}

form { display: inline; }

/* The text input fields background colour */
input.post, textarea.post, select {
	background-color : #FFFFFF;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
	background-color: #F0EDDA;
	color: #000000;
	font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* The main submit button option */
input.mainoption {
	background-color : #FAFAFA;
	font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
	background-color : #FAFAFA;
	font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
input.helpline { background-color: #F0EDDA; border: solid 1px #5C3D01; }


ps : thx a lot
●架設主機作業系統:winxp
●快速架站程式:appserv-win32-2.4.1.exe
●Database: MySQL Version 4.0.20
●上網方式:ADSL(pccw)
●phpBB2 版本:phpBB 2.0.13
Artemas
竹貓忠實會員
竹貓忠實會員
文章: 489
註冊時間: 2003-08-23 03:18
來自: NorthBlue
聯繫:

文章 Artemas »

代碼: 選擇全部

/* titles for the topics: could specify viewed link colour too */
.topictitle { font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link { text-decoration: underline; color: #000000; }
a.topictitle:visited { text-decoration: underline; color: #5C3D01; }
a.topictitle:hover { text-decoration: underline; color: #FF6600; }
a.topictitle:active { text-decoration: underline; color: #000000; } 
厚...阿自己不會比對一下喔,就是上面這組阿
圖檔
Os: Windows 2003
Constitute: IIS.6 + php4 + MySql 4 + ODBC + phpMyAdmin2.6.0 + phpBB 2.0.23
url: http://oops.cafepark.com
render_men
星球公民
星球公民
文章: 39
註冊時間: 2004-02-27 16:33

文章 render_men »

sorry可能是我說得不夠清楚
不是字的顏色而是"題目"和"面版"對下放題目的background顏色
●架設主機作業系統:winxp
●快速架站程式:appserv-win32-2.4.1.exe
●Database: MySQL Version 4.0.20
●上網方式:ADSL(pccw)
●phpBB2 版本:phpBB 2.0.13
Artemas
竹貓忠實會員
竹貓忠實會員
文章: 489
註冊時間: 2003-08-23 03:18
來自: NorthBlue
聯繫:

文章 Artemas »

render_men 寫:sorry可能是我說得不夠清楚
不是字的顏色而是"題目"和"面版"對下放題目的background顏色
...............................................= =
..........................超級嚴重的誤會= =
..........................超級白忙的失落感= =

你要找的看看是不是這個

http://phpbb-tw.net/phpbb/viewtopic.php ... highlight=
圖檔
Os: Windows 2003
Constitute: IIS.6 + php4 + MySql 4 + ODBC + phpMyAdmin2.6.0 + phpBB 2.0.23
url: http://oops.cafepark.com
主題已鎖定

回到「風格問題討論」