1 頁 (共 1 頁)

[問題][風格]about style "maintitle"

發表於 : 2003-12-13 17:13
mit
為什麼一樣都是用subsilver的css
我的maintitle字型長這樣\r
圖檔

而竹貓的(其他用subsilver的站也是)看起來是這樣\r
圖檔


附上我css樣式表裡的這段:

代碼: 選擇全部

\n/* 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;
}
我的viewtopic.tpl裡的這段:

代碼: 選擇全部

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" colspan="2"><a href="{U_VIEW_TOPIC}" class="maintitle">{TOPIC_TITLE}</a></td>
  </tr>

</table><br /><HR>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="middle" width="100%"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> 
	  -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
  </tr>
我不知道我還漏了什麼地方沒檢查的
我真的覺得自己的maintitle超超超超超超超醜的啦>_________<||

發表於 : 2003-12-13 17:52
GeniusKiKi
font-weight: bold;

↑ 粗體顯示

發表於 : 2003-12-13 19:16
mit
GeniusKiKi 寫:font-weight: bold;

↑ 粗體顯示
你的意思是把font-weight: bold
從subsilver.css這個檔案對maintitle的定義裡去掉就可以了嗎?
這我試過很多次了,就是行不通。
而且從安裝到現在我都沒有改過maintitle那段定義耶,
style依然保持跟原始的subsilver.css一樣啊,
可是顯示的效果就是不一樣!

我剛剛直覺想到的是系統可能有另外紀錄style在資料庫裡,
所以我剛剛索性試著把subsilver.css刪掉(假刪啦,只是改名字),
沒想到論壇仍然跑得好好的~
看起來好像什麼事都沒發生一樣+"+||

但是我剛剛實際上進去資料庫裡面翻了又翻,
卻好像沒有任何一個資料表是跟style有關的,
(有一個是themes的資料表,記錄的只是theme_info.cfg裡的資料)


啊~~~快瘋了\>______</
我需要冷靜我需要冷靜我需要冷靜我需要冷靜我需要冷水澡

發表於 : 2003-12-13 19:47
jiminkao
順便找找 overall_header.tpl 中的 style

發表於 : 2003-12-13 20:46
aiken
順便看一下viewforum_body.tpl的內容

發表於 : 2003-12-14 00:11
怎麼不直接檢查IE瀏覽時的Code呢?
按右鍵檢視原始檔!快又有效率~
通常我會先這樣做!真的找不到才去開其他檔案查找

發表於 : 2003-12-14 13:01
mit
問題解決了,感謝各位。
原因在於我資料庫裡themes的資料表中的三種字形(fontface 1, 2, 3)都設成一樣的。
(可能是我在控制台編輯風格的時候改到了。而且如果沒有重新輸出風格,資料庫裡的風格設定就不會改變)

subsilver的預設字形是:
fontface 1:Verdana, Arial, Helvetica, sans-serif
fontface 2:Trebuchet MS
fontface 3:Courier, \'Courier New\', sans-serif


不過我依然納悶subsilver.css的功能是什麼?
(我本來以為把它刪掉會讓論壇整個變成白底黑字醜醜的)

既然資料庫中有themes資料表記錄風格設定(由控制台的風格管理輸出的),
這些設定會再由overall_header讀出來,
那subsilver.css只是擺好看的囉?

再說像一些FI的themes,
如果檢視他們的原始檔會發現都沒有這一段:

代碼: 選擇全部

首頁</title>
<!-- link rel="stylesheet" href="templates/subSilver/subSilver" type="text/css" -->
<style type="text/css">
<!--
/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/

/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
	background-color: #E5E5E5;
	scrollbar-face-color: #DEE3E7;
	scrollbar-highlight-color: #FFFFFF;
	scrollbar-shadow-color: #DEE3E7;
	scrollbar-3dlight-color: #D1D7DC;
	scrollbar-arrow-color:  #006699;
	scrollbar-track-color: #EFEFEF;
	scrollbar-darkshadow-color: #98AAB1;
}

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

.
.
.
(中略)
.
.
.


/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/subSilver/formIE.css");
-->
</style>
<script type="text/javascript" src="templates/rollout.js"></script>

</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4" >
這段是定義在overall_header.tpl裡的。

竹貓的則是這樣。

代碼: 選擇全部

<title>竹貓星球 :: 首頁</title>
<link rel="stylesheet" href="./templates/liteBlue/liteBlue.css" type="text/css" />
</style>
<script language="javascript">
<!--
	var imgs=new Array();
	function preload()
	{
		for (i = 0; i < preload.arguments.length; i++)
		{
			imgs[i] = new Image();
			imgs[i].src = './templates/liteBlue/images/' + preload.arguments[i];
		}
	}
	preload("web_logo.gif","bodyTop.gif","bodyTopR.gif","bodyLeft.gif","bodyRight.gif","bodyBottomL.gif","bodyBottom.gif","bodyBottomR.gif");
//-->
</script>
</head>
<body>
我一直在想,
既然有style sheet在,為什麼還要在overall_header裡重複定義呢?
像竹貓還有FI的themes很明顯都沒有這樣。
不過這些都是後話了...


總之,mit再謝過各位 :)