十一月 01, 2008
[模版改造] 直接在 html 或 template 中加入 CSS 樣式
有些模版的迴響表單標題的文字位置不是顯示的很正確。也可以用下面的方式來修正哦!
開啟 commentform.template ,加入紅字部份
<form id="NewComment" action="{$url->getBaseUrl()}/index.php" method="post">
<h3 class="title"><div style="text-align: center;padding-top:20px; ">{$locale->tr("add_comment")}</div></h3>
十月 29, 2008
[lviedoor 模版] 加寬為 1024 像素模版
如果要對圖的模版,寬度就一定要特別注意!
可以搜尋 gif jpg 的方式來找到圖檔相關的部份。
背景部份 (置中)
body {
background: #fff url("back.gif") repeat-y 50% 30px;
text-align: center;
font-family: verdana ,arial ,sans-serif;
color: #505050;
}
PS : background: #fff url("back.gif") repeat-y 50% 30px;
代表基礎底色為白色 使用背景圖 back.gif 只有Y軸方向重覆 向右50% 顯示(置中) 向下 30 像素。
接著調整主寬度
div#container {
/* background: url("conback.gif"); */
background: url("conback.gif") repeat-y 50%;
margin: 0 auto;
/* width: 830px */
width: 980px;
text-align: center;
word-break: break-all;
}
調整文章寬度
div#content {
float: left;
/* width: 580px; */
width: 700px;
text-align: center;
/* margin: 5px 195px 100px; */
margin-left: 5px;
}
調整頁頭主圖位置 (置中及指定寬度)
div#banner {
/* background: url("head.gif") no-repeat ; */
background: url("head.gif") no-repeat 50% ;
height: 270px;
width: 980px
}
最後修改 相關圖檔的寬度,以符合寬版面。
重新上傳圖檔。
完成收工!
七月 25, 2008
[模版改造] 如何將「 寬度 800 像素」 的模版改為 100% (或特定寬度)
如果寬度是預設給 800 x 600 螢幕的模版。要放大一點的圖就不方便。有時會超出文章的範圍或破壞版面!
其實只要修改幾個小地方就可以啦! 你可以參考使用的模版修改類似這些 CSS !
參考範例
http://www.tiec.tp.edu.tw/lifetype/1413




