[問題]如何將版面外框縮小置中(已解決)

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

版主: 版主管理群

主題已鎖定
smanax
星球普通子民
星球普通子民
文章: 2
註冊時間: 2007-02-16 17:34

[問題]如何將版面外框縮小置中(已解決)

文章 smanax »

請教大家一下
如何把整個版面縮小成820寬然後置中
我已經把內部index_body.tpl overall_footer.tpl overall_header.tpl
全部改成800像素了
我希望看到底圖灰色的table能縮小
不知道要去哪改
有試著把subSilver.css中.bodyline加上設定了

代碼: 選擇全部

.bodyline	{ background-color: #FFFFFF; border: 1px #98AAB1 solid; width:820 }
還是不行
麻煩大家一下謝謝

示意圖
圖檔

my phpbb:http://smanax.why3s.cc/forum/

我是直接用預設的subSilver下去改的
最後由 smanax 於 2007-02-18 00:20 編輯,總共編輯了 5 次。
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

建議您:
1. 貼出論壇網址
2. 貼出風格名稱, 參考連結
3. 將下列檔案壓縮後, 貼出下載連結
index_body.tpl overall_footer.tpl overall_header.tpl
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [問題]如何將版面外框縮小置中

文章 心靈捕手 »

smanax 寫: my phpbb:http://smanax.why3s.cc/forum/

設定檔:http://www.ccu.edu.tw/physicsa/subSilver.rar
我是直接用預設的subSilver下去改的
以下的修改, 提供您參考:
#
#-----[ OPEN ]-----
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]-----
#

代碼: 選擇全部

<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
#
#-----[ REPLACE WITH ]-----
#

代碼: 選擇全部

<table width="820" cellspacing="0" cellpadding="10" border="0" align="center"> 
#
#-----[ SAVE & CLOSE ]-----
#
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
smanax
星球普通子民
星球普通子民
文章: 2
註冊時間: 2007-02-16 17:34

文章 smanax »

原來是漏掉這個了
已經OK了
感謝版主的指導
謝謝喔
新年快樂
iaminmd
星球普通子民
星球普通子民
文章: 28
註冊時間: 2007-04-05 04:56

文章 iaminmd »

請問,

我已經可以把首頁的table 都設定成95%置中,
這是其他地方,如"張貼新文章"或是"搜尋",
都還是比95%大?

除了這三個檔案要修改之外,其他檔案也要修改嗎?
index_body.tpl overall_footer.tpl overall_header.tpl

這是我的測驗網址:
iaminmd.5gbfree.com/index.php

多謝!
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

iaminmd 寫:請問,

我已經可以把首頁的table 都設定成95%置中,
這是其他地方,如"張貼新文章"或是"搜尋",
都還是比95%大?

除了這三個檔案要修改之外,其他檔案也要修改嗎?
index_body.tpl overall_footer.tpl overall_header.tpl

這是我的測驗網址:
iaminmd.5gbfree.com/index.php

多謝!
建議您:
1. 貼出風格名稱, 參考連結
2. 將下列檔案壓縮後, 貼出下載連結
index_body.tpl
overall_footer.tpl
overall_header.tpl
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
iaminmd
星球普通子民
星球普通子民
文章: 28
註冊時間: 2007-04-05 04:56

文章 iaminmd »

我要怎樣才能把首頁的"Forum"的欄寬調整到跟"Test Forum 1"的欄寬一樣?

因為我有用board_msg_xl,所以三個檔案裡面的overall_header.tpl最後是board_msg_xl的code.

我的template是ashGrunge
(http://www.phpbbhacks.com/templatesdemo/)

http://www.mediamax.com/iaminmd/Hosted/ashGrunge.rar
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

iaminmd 寫:我要怎樣才能把首頁的"Forum"的欄寬調整到跟"Test Forum 1"的欄寬一樣?
這可就教人搞糊塗了?

您還原 index_body.tpl 的修改, 不就行了.
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
iaminmd
星球普通子民
星球普通子民
文章: 28
註冊時間: 2007-04-05 04:56

文章 iaminmd »

這真的很難解釋,我盡力而為,希望你可以了解。

因為我要裝board_msg_xl,裡面有一段是

代碼: 選擇全部

#-----[ OPEN ]------------------------------------------ 
#  
templates/SubSilver/overall_header.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
				</table></td>
			</tr>
		</table>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
<!-- BEGIN switch_board_msg --> 
		<br />
<center>
<table border="0" width={BM_WIDTH} class="forumline">
  <tr> 
	<th colspan="3" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{BM_TITLE}&nbsp;</th>
  </tr>
  <tr>
	<td width="10%" align="center" class="row1">{BM_IMAGES}</td>
	<td class="row1"><span class="gen">{BM_MSG}</a></span></td>
	<td width="10%" align="center" class="row1">{BM_IMAGES}</td>
  </tr>

</table>
<table border="0" width={BM_WIDTH}>
  <tr> 
	<td align="left" valign="top"><span class="gensmall"><a href={U_BM_PRV} title="{BM_PRV_TITLE}" class="nav">{L_BM_PRV}</a></span></td>
	<td align="right" valign="top"><span class="gensmall"><a href={U_BM_NXT} title="{BM_NXT_TITLE}" class="nav">{L_BM_NXT}</a></span></td>
  </tr>

</table>
</center>

<!-- END switch_board_msg --> 
可是如果到ashGrunge的overall_header.tpl,他沒有

代碼: 選擇全部

</table></td>
			</tr>
		</table>
他的是

代碼: 選擇全部

<tr>
	<td>
可是如果我直接把board_msg_xl要的程式碼加進去,會變成一推亂碼。

所以我就把他更改為

代碼: 選擇全部

<tr>
  <td>
</table>
這樣變更後,顯示的時候也沒有問題。

可是一旦把board_msg_xl要的程式碼加進去,他就沒有辦法控制其他頁面的欄寬了。

原本的設計,好像是由(我昨天好像上傳錯了,這是正確的overall_header.tpl)

代碼: 選擇全部

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="779" border="0" cellspacing="0" cellpadding="0" class="maintable" align="center">
  <tr> 
    <td width="305" valign="top"><a href="index.php"><img src="templates/ashGrunge/images/logo.gif" border="0"></a></td>
    <td width="474" align="center" valign="top">
		<img src="templates/ashGrunge/images/top_grunge.gif"><br>
		<a href="{U_FAQ}"><img src="templates/ashGrunge/images/menu_faq.gif" border="0" alt="{L_FAQ}" hspace="3" /></a>  
		<a href="{U_SEARCH}"><img src="templates/ashGrunge/images/menu_search.gif" border="0" alt="{L_SEARCH}" hspace="3" /></a>  
		<a href="{U_MEMBERLIST}"><img src="templates/ashGrunge/images/menu_memberlist.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" /></a>  
		<a href="{U_GROUP_CP}"><img src="templates/ashGrunge/images/menu_usergroups.gif" border="0" alt="{L_USERGROUPS}" hspace="3" /></a>
		<br>
		<a href="{U_PROFILE}"><img src="templates/ashGrunge/images/menu_profile.gif" border="0" alt="{L_PROFILE}" hspace="3" /></a>   
		<a href="{U_PRIVATEMSGS}"><img src="templates/ashGrunge/images/menu_messages.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" /></a>   
		<!-- BEGIN switch_user_logged_out -->
		<a href="{U_REGISTER}"><img src="templates/ashGrunge/images/menu_register.gif" border="0" alt="{L_REGISTER}" hspace="3" /></a>   
		<a href="{U_LOGIN_LOGOUT}"><img src="templates/ashGrunge/images/menu_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></a>
		<!-- END switch_user_logged_out -->
		<!-- BEGIN switch_user_logged_in -->
		<a href="{U_LOGIN_LOGOUT}"><img src="templates/ashGrunge/images/menu_logout.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></a>
		<!-- END switch_user_logged_in -->
    </td>
  </tr>
  <tr> 
    <td colspan="2" valign="top">
	<table border="0" cellpadding="6" width="740" align="center">
	<tr>
	<td>
的第一段的width=799在控制兩個欄的長度。

代碼: 選擇全部

<table width="779" border="0" cellspacing="0" cellpadding="0" class="maintable" align="center">
可是一旦更改之後,只有首頁的欄寬可以控制,
其他頁面的欄寬都沒有辦法控制???
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

iaminmd 寫:這真的很難解釋,我盡力而為,希望你可以了解。

因為我要裝board_msg_xl,裡面有一段是

代碼: 選擇全部

#-----[ OPEN ]------------------------------------------ 
#  
templates/SubSilver/overall_header.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
				</table></td>
			</tr>
		</table>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
<!-- BEGIN switch_board_msg --> 
		<br />
<center>
<table border="0" width={BM_WIDTH} class="forumline">
  <tr> 
	<th colspan="3" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{BM_TITLE}&nbsp;</th>
  </tr>
  <tr>
	<td width="10%" align="center" class="row1">{BM_IMAGES}</td>
	<td class="row1"><span class="gen">{BM_MSG}</a></span></td>
	<td width="10%" align="center" class="row1">{BM_IMAGES}</td>
  </tr>

</table>
<table border="0" width={BM_WIDTH}>
  <tr> 
	<td align="left" valign="top"><span class="gensmall"><a href={U_BM_PRV} title="{BM_PRV_TITLE}" class="nav">{L_BM_PRV}</a></span></td>
	<td align="right" valign="top"><span class="gensmall"><a href={U_BM_NXT} title="{BM_NXT_TITLE}" class="nav">{L_BM_NXT}</a></span></td>
  </tr>

</table>
</center>

<!-- END switch_board_msg --> 
可是如果到ashGrunge的overall_header.tpl,他沒有

代碼: 選擇全部

</table></td>
			</tr>
		</table>
他的是

代碼: 選擇全部

<tr>
	<td>
可是如果我直接把board_msg_xl要的程式碼加進去,會變成一推亂碼。

所以我就把他更改為

代碼: 選擇全部

<tr>
  <td>
</table>
這樣變更後,顯示的時候也沒有問題。

可是一旦把board_msg_xl要的程式碼加進去,他就沒有辦法控制其他頁面的欄寬了。

原本的設計,好像是由(我昨天好像上傳錯了,這是正確的overall_header.tpl)

代碼: 選擇全部

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="779" border="0" cellspacing="0" cellpadding="0" class="maintable" align="center">
  <tr> 
    <td width="305" valign="top"><a href="index.php"><img src="templates/ashGrunge/images/logo.gif" border="0"></a></td>
    <td width="474" align="center" valign="top">
		<img src="templates/ashGrunge/images/top_grunge.gif"><br>
		<a href="{U_FAQ}"><img src="templates/ashGrunge/images/menu_faq.gif" border="0" alt="{L_FAQ}" hspace="3" /></a>  
		<a href="{U_SEARCH}"><img src="templates/ashGrunge/images/menu_search.gif" border="0" alt="{L_SEARCH}" hspace="3" /></a>  
		<a href="{U_MEMBERLIST}"><img src="templates/ashGrunge/images/menu_memberlist.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" /></a>  
		<a href="{U_GROUP_CP}"><img src="templates/ashGrunge/images/menu_usergroups.gif" border="0" alt="{L_USERGROUPS}" hspace="3" /></a>
		<br>
		<a href="{U_PROFILE}"><img src="templates/ashGrunge/images/menu_profile.gif" border="0" alt="{L_PROFILE}" hspace="3" /></a>   
		<a href="{U_PRIVATEMSGS}"><img src="templates/ashGrunge/images/menu_messages.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" /></a>   
		<!-- BEGIN switch_user_logged_out -->
		<a href="{U_REGISTER}"><img src="templates/ashGrunge/images/menu_register.gif" border="0" alt="{L_REGISTER}" hspace="3" /></a>   
		<a href="{U_LOGIN_LOGOUT}"><img src="templates/ashGrunge/images/menu_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></a>
		<!-- END switch_user_logged_out -->
		<!-- BEGIN switch_user_logged_in -->
		<a href="{U_LOGIN_LOGOUT}"><img src="templates/ashGrunge/images/menu_logout.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></a>
		<!-- END switch_user_logged_in -->
    </td>
  </tr>
  <tr> 
    <td colspan="2" valign="top">
	<table border="0" cellpadding="6" width="740" align="center">
	<tr>
	<td>
的第一段的width=799在控制兩個欄的長度。

代碼: 選擇全部

<table width="779" border="0" cellspacing="0" cellpadding="0" class="maintable" align="center">
可是一旦更改之後,只有首頁的欄寬可以控制,
其他頁面的欄寬都沒有辦法控制???
您的需求, 擺明是 '我要怎樣才能把"Test Forum 1"的欄寬調整到跟首頁的"Forum"的欄寬一樣?'
為何又有這個需求呢? :-?
我要怎樣才能把首頁的"Forum"的欄寬調整到跟"Test Forum 1"的欄寬一樣?
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
iaminmd
星球普通子民
星球普通子民
文章: 28
註冊時間: 2007-04-05 04:56

文章 iaminmd »

為了頁面整齊。

我可以把首頁的所有欄寬變的"Test forum 1" 頁面的一樣。
可是不能調整"Test forum 1" 頁面的欄寬。
而且他太寬了,我想要把他調整成適合的寬度。
但是我找不到去哪裡調整。我已經試了兩天了。

這樣的要求很奇怪嗎?
iaminmd
星球普通子民
星球普通子民
文章: 28
註冊時間: 2007-04-05 04:56

文章 iaminmd »

我不懂耶,
為什麼我把broad加上去,
就會整個失去控制?
主題已鎖定

回到「風格問題討論」