十一月 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
}
最後修改 相關圖檔的寬度,以符合寬版面。
重新上傳圖檔。
完成收工!
其它部落格有趣應用
[部落格備份工具] Zoundry 離線部落格編輯軟體
[模版] 有關頁頭「部落格名稱」及「部落格描述」 的修改
有關頁頭「部落格名稱」及「部落格描述」 的修改。
.blogtitle{
color:#ffffff;
text-align:left;
font-size:21px;
font-weight:bold;
padding:20px 50px 0 50px;
}
.description{
color:#ffffff;
text-align:left;
font-size:12px;
padding:30px 50px 0 50px;
line-height:125%;
}
注意 padding 的參數序順 : 上 右 下 左
超連結的文字色彩會決定「部落格名稱的色彩」
.blogtitle a{
color:#FFFFFF;
text-decoration:underline;
}
[Livedoor 模版] 頁尾修正
頁尾會多出一小段的背景圖,請修改一下 foot.template
<br clear="all">
</div> <!-- End of wrapper-->
</div> <!-- End of blogcontainer-->
<DIV style="CLEAR: both"> </DIV>
<DIV id=footer>
<div id="outfooter">
<!-- badbehavior 況態 -->
{$badbehavior->showBB2Status()}
<!-- End of badbehavior 況態 -->
</div>
</DIV>
<!-- 移除
<DIV style="CLEAR: both"> </DIV>
-->
</DIV><!-- End of container-->
</BODY>
</HTML>
十月 28, 2008
[CSS] Template 的新增樣式
如果要多一個類似的 CSS 屬性。 可以拷貝貼上後修改名稱。
再將要變化的部份加入!
.blogbody{
line-height:130%;
text-align:center;
margin:0;
padding:10px 0 20px 0;
background:#ccff75 url("main.gif") repeat-y 50%;
}
不要背景圖,並且加上底色。
.blogbody2{
line-height:130%;
text-align:center;
/* margin:10; */
margin:10px 50px 20px 50px;
/* background:#ccff75 url("main.gif") repeat-y 50%; */
background:#ccff75; /* jay */
}
接著就可以到 template 檔中修改使用的樣式。
<DIV class=blogbody2>
<div class="titlebody"> <!-- 標題下圖 -->
<H3 class=title>{$post->getTopic()}</H3>
</div>






