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

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

版主: 版主管理群

主題已鎖定
mit
星球公民
星球公民
文章: 247
註冊時間: 2003-10-23 18:26
來自: 壞鄰居社區
聯繫:

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

文章 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超超超超超超超醜的啦>_________<||
圖檔
GeniusKiKi
竹貓忠實會員
竹貓忠實會員
文章: 1086
註冊時間: 2003-10-28 14:50

文章 GeniusKiKi »

font-weight: bold;

↑ 粗體顯示
再也不當爛好人...
好人是小白轉型成大白的墊腳石...
mit
星球公民
星球公民
文章: 247
註冊時間: 2003-10-23 18:26
來自: 壞鄰居社區
聯繫:

文章 mit »

GeniusKiKi 寫:font-weight: bold;

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

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

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


啊~~~快瘋了\>______</
我需要冷靜我需要冷靜我需要冷靜我需要冷靜我需要冷水澡
圖檔
頭像
jiminkao
星球公民
星球公民
文章: 134
註冊時間: 2002-10-07 15:20
來自: 蜂炮之鄉
聯繫:

文章 jiminkao »

順便找找 overall_header.tpl 中的 style
目前使用版本 Nuke7.6
圖檔
aiken
竹貓忠實會員
竹貓忠實會員
文章: 1514
註冊時間: 2003-11-09 11:02
來自: 大頭真論壇
聯繫:

文章 aiken »

順便看一下viewforum_body.tpl的內容
竹貓忠實會員
竹貓忠實會員
文章: 1058
註冊時間: 2003-05-15 00:30
來自: Game.Hack-遊戲駭客
聯繫:

文章 »

怎麼不直接檢查IE瀏覽時的Code呢?
按右鍵檢視原始檔!快又有效率~
通常我會先這樣做!真的找不到才去開其他檔案查找
有事問問題,沒事答問題。
廣告不是這樣打滴!遊戲駭客
mit
星球公民
星球公民
文章: 247
註冊時間: 2003-10-23 18:26
來自: 壞鄰居社區
聯繫:

文章 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再謝過各位 :)
圖檔
主題已鎖定

回到「風格問題討論」