久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

PHPWEB 插件邊框模版制作說明

來自站長百科
跳轉至: 導航、? 搜索

導航: 上一頁

邊框模版分為插件邊框模版和標簽邊框模版兩大類。本文介紹插件邊框模版的DIY制作。

插件邊框模版是在插件設置時可以選擇“套”在插件外面的標題欄、邊線、背景的模版。插件邊框和插件內(nèi)容是分離的,插件可以選擇組合不同的邊框模版來獲得不同的效果。

插件邊框模版又分為可選顏色和不可選顏色兩種,其中可選顏色邊框,每套邊框模版需制作16種配色,一般由官方開發(fā)提供。而用戶DIY制作時,只需要制作適合自己網(wǎng)站風格的邊框,即不可選顏色邊框。不可選顏色插件邊框的編號范圍是500-999,邊框的編號和目錄名對應,存放在base/border/目錄下,每個目錄一套邊框。

插件邊框模版由一個tpl.htm文件和圖片組成,圖片放在邊框目錄下的images子目錄,樣式可以使用內(nèi)聯(lián)樣式,也可以將外聯(lián)樣式表放在images 子目錄。由于邊框模版必須適合PHPWEBDIV絕對定位、可隨插件尺寸變化、排版拉動邊框時邊線跟隨鼠標移動、適合可變高度和不可變高度等要求,因此插件邊框的制作必須遵循以下規(guī)則(請別擔心這些規(guī)則,只要照著現(xiàn)有的模版做就是了):

  • 1、將邊框的開始部分放在<!-start-><!-start->標簽之間,結束部分放在<!-end-><!-end->標簽之間
  • 2、邊框模版必須使用div,最外面一層div的class定義為 pdv_border,以使程序識別它是邊框?qū)舆M行處理。
  • 3、邊框最外面一層DIV的樣式必須定義border、margin、padding的值,包括0px的情況,程序需要動態(tài)獲取其樣式值以計算實際顯示高度,保證底線不被插件覆蓋。
  • 4、如果最外面一層定義了border,那么高度應該作height:100%的定義,保證底邊線跟著插件尺寸走。
  • 5、如果是圓角,可以用margin的負值配合圖片實現(xiàn)。
  • 6、邊框模版最里面的層(也就是直接包在插件內(nèi)容外面的那一層),需加入{ #padding# }標簽,就是插件設置時的內(nèi)邊距。
  • 7、更多鏈接用{ #morelink # }標簽,更多鏈接得“更多”字樣(或圖片),需要被包在一個層內(nèi),這這層需定義樣式display:{ #showmore# },這樣當沒有更多鏈接時,可以隱藏更多鏈接

以下介紹一些典型的插件邊框樣例:

樣例一:普通邊框線+標題欄

<!-start->
<div class="pdv_border" style="border:1px #cfcfcf solid;background:#fff;padding:0px;margin:0px;height:100%">
<div style="background:url(images/top.png) repeat-x;height:28px;border-bottom:1px #cfcfcf solid">
<div style="float:left;background:url(images/li.gif) 12px no-repeat;padding-left:26px;color:#555;text-align:left;font:12px/28px simsun;">{ 
#coltitle# }</div>
<div style="float:right;margin-right:8px">
<a href="{ #morelink# }" style="font:12px/26px simsun;color:#555;display:{ #showmore# }">更多>></a>
</div>
</div>
<div  style="padding:{ #padding# }px">
<!-start->
<!-end->
</div>
</div>
<!-end->

樣例二:圓角邊框+標題欄

<!-start->
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;background:url(images/bg.gif) repeat-y">
<div style="height:100%;background:url(images/bg1.gif) right repeat-y">
<div style="height:38px;background:url(images/top.gif) left no-repeat">
 <div style="float:left;background:url(images/l.gif) 12px no-repeat;font:bold 14px/40px Arial;text-align:left;padding-left:35px;color:#333;">
 { #coltitle# }
 </div>
 <div style="float:right;width:50px;height:38px;text-align:right;background:url(images/top.gif) -750px no-repeat">
 <a href="{ #morelink# }" style="font:12px/36px simsun;color:#333;margin-right:12px;display:{ #showmore# }">更多>></a>
 </div>
</div>
<div style="margin:0px 3px;padding:{ #padding# }px">
<!-start->

<!-end->
</div>
</div>
</div>
<div style="margin-top:-13px;height:13px;line-height:13px;background:url(images/bt.gif) left no-repeat"> </div>
<div style="float:right;margin-top:-13px;width:10px;height:13px;line-height:13px;background:url(images/bt.gif) -790px no-repeat"> </div>
<!-end->

注意事項:圓角邊框多用到float,為兼容IE6,必須加入line-height,否則div的高度會被默認顯示為12px,導致顯示問題。

樣例三:固定高度無標題欄邊框模版

<!-start->
<div class="pdv_border" style="border:1px #ddd solid;background:url(images/top.png) repeat-x;padding:{ #padding# }px;margin:0px;height:28px">
<!-start->
<!-end->
</div>
<!-end->

插件邊框制作完成后,將其上傳到base/border/目錄;

然后登錄后臺管理系統(tǒng),選擇模塊插件管理,從基礎模塊后面的“邊框管理”按鈕進入;

在邊框管理界面的右上角,填寫邊框編號和邊框描述,添加邊框

添加完成后,就可以在插件設置時選擇使用新的邊框模版了

相關條目[ ]

參考來源[ ]