AL8 Forum
   登錄註冊幫助


標題: [D6.0] Dz6.0 CSS.htm 圖文解說 風格參考
  本主題由 Poka 於 2007-9-10 17:19 加入精華 
 kkt8899sp
 0061146
Rank: 5Rank: 5Rank: 5Rank: 5Rank: 5
點擊查看 kkt8899sp 的詳細資料

頭銜: King

帖子: 769

精華: 1

積分: 8099 點

現金: 820 元

存款: 0 元

閱讀權限: 30

註冊: 2006-12-17

來自: HK

狀態: 離線
 
發表於 2007-9-9 18:09  資料  個人空間  主頁 短消息  加為好友 
Dz6.0 CSS.htm 圖文解說 風格參考

模版:viewthread.htm
對應位置參照圖







1 頁面總框架
所屬CSS class或ID:foruminfo
CSS代碼:


#foruminfo { width: 100%; overflow: hidden; margin: 10px 0; color: {TEXT}; }
#userinfo, #foruminfo #nav { float: left; padding-left: 5px; }
#foruminfo p { margin: 0; }
#foruminfo a{ color: {HIGHLIGHTLINK}; }
#foruminfo em { color: {TABLETEXT}; }
#foruminfo cite { font-weight: bold; }
#foruminfo strong a { font-weight: bold; color: {TABLETEXT}; }
#foruminfo #nav { margin: 0; }

2 頭部導航
1 總框架
所屬CSS class或ID:nav
CSS代碼:


#userinfo, #foruminfo #nav { float: left; padding-left: 5px; }
#nav { margin: 10px 5px; }
#foruminfo #nav { margin: 0; }
#nav a { font-weight: bold; color: {HIGHLIGHTLINK}; }

2 如果打開了版塊下拉菜單,則風格下拉菜單使用一個class
所屬CSS class或ID:dropmenu
CSS代碼:


.dropmenu{ padding-right: 15px !important; background-image:url({IMGDIR}/arrow_down.gif) !important; background-position: 100% 50%!important; background-repeat: no-repeat !important; cursor: pointer; }

3 頁內文字廣告 (注意,本廣告顯示在頭部導航下方,上一主題/下一主題上方,圖中沒有)
所屬CSS class或ID:.ad_text
CSS代碼:


.ad_text{ border: 1px solid {CATBORDER}; margin-bottom: {BOXSPACE}; padding:6px; {PORTALBOXBGCODE}; background-repeat: repeat-x; }
.ad_text table { width: 100%; border-collapse: collapse; }
.ad_text td { background-repeat: repeat-x; background-position: 0 0;padding: 2px 10px; }.ad_textlink1 { float: left; white-space: nowrap; }

4 主題切換-新帖/回覆
1 總框架
所屬CSS class或ID:pages_btns
CSS代碼:


.pages_btns { width: 100%; padding: 0 0 8px; overflow: hidden; }
.pages_btns .pages em { line-height: 26px; }

2 上一主題/下一主題(主題切換)
所屬CSS class或ID:threadflow
CSS代碼:


.pages,.threadflow { float: left; border: 1px solid {CATBORDER}; background:{COMMONBOXBG}; height: 24px; line-height: 26px; color: {LIGHTTEXT};overflow: hidden; }
.threadflow { margin-right: 5px; padding: 0 5px; }

3 新帖/回覆
所屬於CSS class或ID:postbtn(新帖class)/replybtn(回覆class)
CSS代碼:


.postbtn, .replybtn { float: right; }
.postbtn { margin-left: 10px; cursor: pointer; }

4 新帖下拉菜單
所屬CSS class或ID:popupmenu_popup & newspecialmenu
CSS代碼:
popupmenu_popup部分:


.popupmenu_popup{ text-align: left; line-height: 1.4em; padding: 10px; overflow:hidden; border: 1px solid {CATBORDER}; {PORTALBOXBGCODE};background-repeat: repeat-x; background-position: 0 1px; }
.popupmenu_popup .postauthor { width: 180px; }
.popupmenu_popup .postauthor a { color: {HIGHLIGHTLINK}; }
.headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }
.headactions .popupmenu_popup { width: 120px; }
#menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabsli, .postmessage fieldset li, .side li, .formbox li, .notice li {list-style: none; }

newspecialmenu部分:


.newspecialmenu { width: 100px; }
.newspecialmenu li { background: url({IMGDIR}/folder_s.gif) no-repeat 3px 50%; float: left; }
.newspecialmenu li.poll { background-image: url({IMGDIR}/pollsmall.gif); }
.newspecialmenu li.trade { background-image: url({IMGDIR}/tradesmall.gif); }
.newspecialmenu li.reward { background-image: url({IMGDIR}/rewardsmall.gif); }
.newspecialmenu li.activity { background-image: url({IMGDIR}/activitysmall.gif); }
.newspecialmenu li.debate { background-image: url({IMGDIR}/debatesmall.gif); }
.newspecialmenu a { float: left; width: 75px; border-bottom: 1px solid {COMMONBOXBORDER}; padding: 5px 0 5px 25px; }
.newspecialmenu a:hover { text-decoration: none; color: {HIGHLIGHTLINK}; border-bottom-color: {CATBORDER}; }

5 帖子主體部分:
1 總框架
所屬CSS class或ID:mainbox & viewthread
CSS代碼:
mainbox部分:


.mainbox .headactions { color: {HEADERTEXT}; }
.mainbox .headactions a, .mainbox .headactions span, .mainbox.headactions strong { background: url({IMGDIR}/headactions_line.gif)no-repeat 100% 50%; padding-right: 10px; margin-right: 8px; color:{HEADERTEXT}; }
.mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }
.mainbox { background: {TABLEBG}; border: {BORDERWIDTH} solid {BORDERCOLOR}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; }
.mainbox h1, .mainbox h3, .mainbox h6 { line-height: 31px;padding-left: 1em; {HEADERBGCODE}; background-repeat: repeat-x;background-position: 0 0; color: {HEADERTEXT}; }
.mainbox h1 a, .mainbox h3 a { color: {HEADERTEXT}; }
.mainbox table { width: 100%; }
.mainbox thead th, .mainbox thead td { background: {CATCOLOR}; padding: 2px 5px; line-height: 22px; color: {TEXT}; }
.mainbox thead.category th, .mainbox thead.category td { {CATBGCODE}; }
.mainbox thead.separation th, .mainbox thead.separation td { border-top: 1px solid {BGBORDER} }
.mainbox tbody th, .mainbox tbody td { border-top: 1px solid {BGBORDER}; padding: 5px; }
.mainbox tbody cite, .mainbox tbody em { line-height: 1.3em; }
.mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }
.content .mainbox { padding-bottom: 5px; }
.content .footoperation, .content .mainbox thead th, .content .mainboxthead td,.content .mainbox tbody th, .content .mainbox tbody td {border-top: none; border-bottom: 1px solid {BGBORDER}; }

viewthread部分:


.viewthread { padding-bottom: 1px; }
.viewthread table, #pmprompt table, #forumlinks, #pmlist, #specialpost { table-layout: fixed; }
.viewthread ins { display: block; text-align: center; text-decoration:none; margin-bottom: 1px; background: {COMMONBOXBG}; border-bottom: 1pxsolid {CATBORDER}; line-height: 26px; }
.viewthread ins, .viewthread ins a { color: {NOTICETEXT}; }
.viewthread td.postcontent, .viewthread td.postauthor { vertical-align:top; padding: 0 1px; border: none; overflow: hidden; background:{TABLEBG}; }

2 頭部題目
1 左部(根據主框架的H1標記定義屬性而定)
2 右部(打印/推薦等功能菜單)
所屬CSS class或ID:headactions
CSS代碼:


.blockcode .headactions { color: {TEXT}; font-size: {MSGSMALLSIZE}; cursor: pointer; padding-top: 5px; }
.headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }
.headactions .popupmenu_popup { width: 120px; }
.headactions { float: right; line-height: 1em; padding: 10px 10px 0 0; }
.headactions img { vertical-align: middle; cursor: pointer; padding: 0 5px; }
.mainbox .headactions { color: {HEADERTEXT}; }
.mainbox .headactions a, .mainbox .headactions span, .mainbox.headactions strong { background: url({IMGDIR}/headactions_line.gif)no-repeat 100% 50%; padding-right: 10px; margin-right: 8px; color:{HEADERTEXT}; }
.mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }

6 左部(用戶信息欄)
所屬CSS class或ID:postauthor
CSS代碼:


.viewthreadtd.postcontent, .viewthread td.postauthor { vertical-align: top;padding: 0 1px; border: none; overflow: hidden; background: {TABLEBG}; }
.mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }
.postauthor cite { font-weight: bold; display: block; border-bottom:1px solid {BGBORDER}; height: 21px; overflow: hidden; margin-bottom:5px; }
.postauthor cite label a { float: right; padding: 3px; }
.postauthor dt { float: left; margin-right: 0.5em; color: {TEXT}; }
.postauthor dd, .postauthor dt { height: 1.6em; line-height: 1.6em; }
.postauthor dd { overflow: hidden; }
.postauthor p { margin: 0 10px; }
.postauthor p.customstatus { color: {TEXT} }
.postauthor p em, .postauthor dt em { color: {NOTICETEXT}; }
.postauthor ul { margin: 5px 10px; line-height: 1.6em; overflow: hidden; }
.postauthor li { text-indent: 22px; width: 49.5%; height: 1.6em;overflow: hidden; float: left; background-position: 0 50%;background-repeat: no-repeat; }
.postauthor li.pm { background-image: url({IMGDIR}/buddy_sendpm.gif); }
.postauthor li.buddy { background-image: url({IMGDIR}/user_add.gif); }
.postauthor li.space { background-image: url({IMGDIR}/forumlink.gif); }
.postauthor li.online { background-image: url({IMGDIR}/user_online.gif); color: {NOTICETEXT}; }
.postauthor li.offline { color: {TEXT}; background-image: url({IMGDIR}/user_offline.gif); }
.postauthor li.magic { background-image: url({IMGDIR}/magic.gif);}
.postauthor dl.profile, .postauthor div.bio { margin: 5px 10px; padding-top: 5px; }

左部用戶名下拉菜單(請參照前面的dropmenu屬性)

7 用戶功能欄(請參照樓內部分左部內的pm,buddy,space,online,offline屬性,分別對應的是短消息,好友,空間,在線,離線)

8 右部(帖子內容)
1 主框架
所屬CSS class或ID:postcontent
CSS代碼:


.specialthread.postcontent label { float: right; display: inline; margin: 12px 12px0; border: 1px solid {CATBORDER}; padding: 3px 5px; background:{CATCOLOR} no-repeat 3px 50%; }.specialthread .postcontent label strong{ color: {NOTICETEXT}; }
.specialthread .postcontent label a { color: {HIGHLIGHTLINK}; }
.rewardthread .postcontent label { background-image: url({IMGDIR}/rewardsmallend.gif); padding-left: 25px; }
.rewardthread .postcontent label.unsolved { background-image: url({IMGDIR}/rewardsmall.gif); float:right; }
.viewthread td.postcontent, .viewthread td.postauthor { vertical-align:top; padding: 0 1px; border: none; overflow: hidden; background:{TABLEBG}; }

2頂部功能欄(只看該作者/樓層/帖子字號切換等)
所屬CSS class或ID:postinfo
CSS代碼:


.postinfo{ color: {TEXT}; border-bottom: 1px solid {BGBORDER}; padding: 0 5px;line-height: 26px; height: 26px; overflow: hidden; }
.postinfo strong, .postinfo em { float: right; line-height: 26px!important; cursor: pointer; padding: 0 3px; color: {HIGHLIGHTLINK}; }
.postinfo strong { margin-left: 5px; color: {NOTICETEXT}; font-weight: bold; }
* html .postinfo strong { margin-top: -2px; }
.postinfo strong sup { font-weight: normal; margin-left: 1px; color: {LIGHTTEXT}; }
.postinfo a { color: {HIGHLIGHTLINK}; }
.postinfo label { color:{NOTICETEXT}; cursor: pointer; }

3 內容部分
1 總框架
所屬CSS class或ID:postmessage & defaultpost
CSS代碼:
postmessage部分:


.postmessage { padding: 10px; overflow-x: hidden; }
.postmessage *, .pmmessage *, .register * { line-height: normal; }
.postmessage h2 {font-size: 1.17em; margin-bottom: 0.5em; }
.postmessage .box { border-width: 0; margin: 5px 0; }
.postmessage .typeoption { width: 500px; }
.postmessage .box tbody th, .postmessage .box tbody td { border-top-color: {COMMONBOXBORDER}; }
.postmessage fieldset { font-size: 12px; width: 500px; padding: 10px; border: 1px solid {BGBORDER}; margin-top: 2em; }
.postmessage fieldset li { color: {LIGHTTEXT}; }
.postmessage strong { font-weight: bold; }
.postmessage em { color:{TEXT}; }
.postmessage span.t_tag { cursor: pointer; border-bottom: 1px solid #F00; white-space: nowrap; }
.specialpost .postmessage { text-align: left; min-height: 30px; border-bottom: 1px solid {CATBORDER}; }
* html .specialpost .postmessage { height: 30px; overflow: visible; }
.tradethread .postmessage { min-height: 160px; }
* html .tradethread .postmessage { height: 360px !important; }
.tradeinfo .postmessage { min-height: 100px; }
* html .tradethread .postmessage { height: 100px; }
.debatethread .postmessage { min-height: inherit; height: auto; }
#menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabsli, .postmessage fieldset li, .side li, .formbox li, .notice li {list-style: none; }

defaultpost部分:


.defaultpost { height: auto !important; height:{POSTMINHEIGHT}px; min-height:{POSTMINHEIGHT}px !important; }

2 題目部分(請參照總框架中的h2標記定義)

3 內容部分
所屬CSS class或ID:t_msgfont
CSS代碼:


.t_msgfont, .t_msgfont td { font-size: {MSGFONTSIZE}; line-height: 1.6em; }

對應的小字號CSS代碼:


.t_smallfont, .t_smallfont td { font-size: {MSGSMALLSIZE}; line-height: 1.6em; }

對應的大字號CSS代碼:


.t_bigfont, .t_bigfont td { font-size: {MSGBIGSIZE}; line-height: 1.6em; }

字號間通用CSS代碼:


.t_msgfont *, .t_smallfont *, .t_bigfont * { line-height: normal; }
.t_msgfont a, .t_smallfont a, .t_bigfont a { color: {HIGHLIGHTLINK}; }

4 搜索更多相關主題的帖子(tag)
所屬於CSS class或ID:posttags
CSS代碼:


p.posttags { margin: 2em 0em 0.5em 0em; }
p.posttags a, .footoperation span.posttags a { color: #F00; font-weight: bold; }
p.posttags .postkeywords a, { color: {NOTICETEXT}; }

下面的樓層和頂樓的CSS基本相同,底部的主題切換-新帖/回覆和頂部的CSS一樣

9 相關主題部分
1 主框架部分
所屬CSS class或ID:mainbox & forumlist(mainbox部分請參照前面)
CSS代碼:
forumlist部分:


.forumlist table, .threadlist table { border-collapse: separate; }
.forumlist tbody strong, .threadlist tbody strong , .formbox tbody strong { color: {NOTICETEXT}; }
.forumlist tbody th, .forumlist tbody td, .threadlist tbody th,.threadlist tbody td { color: {TEXT}; padding: 1px 5px; border-bottom:1px solid {TABLEBG}; background-color: {ALTBG1}; }
.forumlist tbody th { height: 40px; }
.forumlist th, .threadlist th { text-align: left; }
.forumlist th { padding-left: 55px !important; }
.forumlist h2 em { color: {HIGHLIGHTLINK}; }
.forumlist tbody th { background-image: url({IMGDIR}/forum.gif); background-repeat: no-repeat; background-position: 13px 50%; }
.forumlist tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }
.forumlist tbody tr:hover th, .forumlist tbody tr:hover td, .threadlisttbody tr:hover th, .threadlist tbody tr:hover td { background-color:{ALTBG2}; }
.forumlist td.lastpost { width: 260px; }
.forumlist cite, .threadlist cite { display: block; }

2 右部"本功能由奇虎搜索實現"
所屬CSS class或ID:headactions(請參照前面)

3 "相關主題"題目(CSS請參照主框架部分的h3標記定義)

10 快速回覆主題
1 主框架
所屬CSS class或ID:box(class) & quickpost(ID)
CSS代碼:
box部分:


.postmessage .box { border-width: 0; margin: 5px 0; }
.postmessage .box tbody th, .postmessage .box tbody td { border-top-color: {COMMONBOXBORDER}; }
.box { background: {TABLEBG}; border: {BORDERWIDTH} solid {CATBORDER}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; }
.box h4 { {PORTALBOXBGCODE}; background-repeat: repeat-x; background-position: 0 0; line-height: 30px; padding: 0 10px; }
.box table { width: 100%; }
.box td { border-top: 1px solid {COMMONBOXBORDER}; }
.box .box li { list-style: none;}

quickpost部分:


#quickpost { overflow: hidden; padding-bottom: 0; }
* html #quickpost { height: 1%; overflow: visible; }
#quickpost #smilieslist { margin: 0 1em; }
#quickpost h5 { margin: 0.5em 1em; }

2「快速回覆主題」題目部分(請參照上面的h4標記定義)

3 左部「選項」部分
1 主框架
所屬CSS class或ID:postoptions
CSS代碼:


.postoptions, .postform, .smilies { float: left; }
.postoptions, .smilies { width: 20%; }
.postoptions p { margin: 2px 0.7em; }

2 選項前多選框
所屬於CSS class或ID:checkbox
CSS代碼:


input[type="radio"], input[type="checkbox"] { border: none; }

4 中部輸入部分
1 主框架
所屬CSS class或ID:postform
CSS代碼:


.postoptions, .postform, .smilies { float: left; }
.postform { width: 59%; padding-bottom: 10px; }
.postform p label { vertical-align: top; font-weight: bold; }
.postform h5 input { width: 60%; }
.postform p, .postform div { margin: 0 1em; }
.postform h4 * { vertical-align: middle; }
.postform h4 input { width: 60%; }
.postform textarea { width: 90%; height: 160px; }
.postform .btns { margin-top: 0.5em; line-height: 30px; color: {LIGHTTEXT}; font-family: 細明體, "Times New Roman"; }
.postform .btns button { vertical-align: middle; }
.postform .btns a { color: {HIGHLIGHTLINK}; }
.postform button { border: none; background: transparent; color: {HIGHLIGHTLINK}; padding: 0; cursor: pointer; }
.postform #postsubmit { float: left; display: inline; margin-left: 2.3em; }
.postform .special, #postform .special { font-weight: bold; color: {HIGHLIGHTLINK};}

2「標題」及輸入框(請參照主框架中的h5定義)

3 內容輸入框
所屬CSS class或ID:autosave
CSS代碼:


.autosave { behavior: url(#default#userdata); }

4 下方提交按鈕及功能按鈕(發表帖子按鈕的定義請參照"發帖"講解最下面的按鈕定義部分)
所屬CSS class或ID:btns
CSS代碼:


.postform .btns { margin-top: 0.5em; line-height: 30px; color: {LIGHTTEXT}; font-family: 細明體, "Times New Roman"; }
.postform .btns button { vertical-align: middle; }
.postform .btns a { color: {HIGHLIGHTLINK}; }
.btns em { color: {LIGHTTEXT}; }
.btns th, .btns td { border: none !important; }

5 右部smilies
所屬CSS class或ID:smilies
CSS代碼:


.postoptions, .postform, .smilies { float: left; }
.postoptions, .smilies { width: 20%; }

1 中間smilieslist部分
所屬CSS class或ID:smilieslist
CSS代碼:


#smilieslist { border: 1px solid {COMMONBOXBORDER}; overflow: hidden; text-align: center; }
#quickpost #smilieslist { margin: 0 1em; }
#smilieslist td { border: none; padding: 8px 0; cursor: pointer; }
#smilieslist td:hover { background: {COMMONBOXBORDER}; }
#smilieslist .pages { float: none; border-width: 1px 0 0; }

2 表情翻頁
所屬CSS class或ID:pages
CSS代碼:


.pages_btns .pages em { line-height: 26px; }
.pages, .threadflow { float: left; border: 1px solid {CATBORDER};background: {COMMONBOXBG}; height: 24px; line-height: 26px; color:{LIGHTTEXT}; overflow: hidden; }
.pages a, .pages strong, .pages em, .pages kbd { float: left; padding: 0 8px; line-height:26px; }
.pages a:hover { background-color: {BGCOLOR}; }
.pages strong { font-weight: bold; color: {NOTICETEXT}; background: {BGBORDER}; }
.pages a.prev, .pages a.next { line-height: 24px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.pages a.next { padding: 0 15px; }
.pages kbd { border-left: 1px solid {CATBORDER}; margin: 0; }
* html .pages kbd { padding: 1px 8px; }
.pages kbd input { border: 1px solid {CATBORDER}; margin-top: 3px!important; * > margin-top: 1px !important; margin: 1px 4px 0 3px;padding: 0 2px; height: 17px; }
.pages kbd>input { margin-bottom: 2px; }

11 論壇跳轉--帖子管理
所屬CSS class或ID:box(class) & footfilter(ID)(box部分請參照前面的代碼)
CSS代碼:


footfilter部分:
#footfilter { padding: 10px; he\ight: 44px; height: 24px; line-height:24px; background: {COMMONBOXBG}; border-color: {COMMONBOXBORDER};font-family: 細明體, "Times New Roman"; }
#footfilter form { float: right; }
#footfilter * { vertical-align: middle; }

模版footer.htm相應位置請參照圖




1 廣告部分CSS
所屬CSS class或ID:ad_footerbanner
注意,另外兩個層的ID:ad_footerbanner2,ad_footerbanner3在CSS中沒有定義,建議沿用本class。
CSS代碼:


.ad_footerbanner { text-align: center; clear: both; margin: 5px }

2 廣告下部,外框架部分CSS
所屬CSS class或ID:footer
CSS代碼:


#footer { border-top: 1px solid {BORDERCOLOR}; background: {ALTBG2}; color: {TEXT}; padding: 12px 0; }

3 廣告下部,內框架部分CSS(用於左部的文字,當然,也限定了右部的層)
所屬CSS class或ID:wrap
CSS代碼:


.wrap { width: {MAINTABLEWIDTH}; text-align: left; margin: 0 auto; overflow: hidden; }  

4 右部分主框架
所屬CSS class或ID:footlinks
CSS代碼:


#footlinks { float: right; margin-top: -3px; text-align: right; }

5 TOP按鈕及界面風格
所屬CSS class或ID:
1 「TOP」按鈕:scrolltop
CSS代碼:


.scrolltop { cursor: pointer; }

2 「界面風格」按鈕:dropmenu(它的ID CSS我沒有找到)
CSS代碼:


.dropmenu{ padding-right: 15px !important; background-image:url({IMGDIR}/arrow_down.gif) !important; background-position: 100% 50%!important; background-repeat: no-repeat !important; cursor: pointer; }

3「界面風格」彈出菜單:popupmenu_popup(CLASS)styleswitcher_menu(ID)
CSS代碼:

.popupmenu_popup部分:
1


#menuli, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li,.postmessage fieldset li, .side li, .formbox li, .notice li {list-style: none; }

2


.popupmenu_popup{ text-align: left; line-height: 1.4em; padding: 10px; overflow:hidden; border: 1px solid {CATBORDER}; {PORTALBOXBGCODE};background-repeat: repeat-x; background-position: 0 1px; }

3


.popupmenu_popup .postauthor { width: 180px; }

4


.popupmenu_popup .postauthor a { color: {HIGHLIGHTLINK}; }

5


.headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }

6


.headactions .popupmenu_popup { width: 120px; }

#styleswitcher_menu部分:
1


#styleswitcher_menu { width: 120px; }

(這裡CSS裡重複了一個)
2


#styleswitcher_menu li.current { font-weight: bold; }

3


#styleswitcher_menu li.current a { color: {TEXT}; }

4


#styleswitcher_menu li.current { font-weight: bold; }

6左部圖
所屬CSS 標記:img


#footer img { float: left; margin: 0 10px 0 0; }

7左部圖右邊文字
所屬CSS class或ID:
1 上方文字部分:copyright
CSS代碼:
1


#copyright, #debuginfo { font: {SMFONTSIZE}/1.5em {SMFONT}; }

2


#copyright strong, #copyright em { font-weight: bold; }

3


#copyright strong a { color: #0954A6; }

4


#copyright em { color: #FF9D25; }

2 下方文字部分:debuginfo
CSS代碼:
1


#copyright, #debuginfo { font: {SMFONTSIZE}/1.5em {SMFONT}; }

2


#debuginfo { color: {LIGHTTEXT}; }





 AL8 Forum © All rights reserved.
頂部
 kkt8899sp
 0061146
Rank: 5Rank: 5Rank: 5Rank: 5Rank: 5
點擊查看 kkt8899sp 的詳細資料

頭銜: King

帖子: 769

精華: 1

積分: 8099 點

現金: 820 元

存款: 0 元

閱讀權限: 30

註冊: 2006-12-17

來自: HK

狀態: 離線
 
發表於 2007-9-9 18:10  資料  個人空間  主頁 短消息  加為好友 
模版以post開頭的部分模版,本部分以發新帖為例子,回覆的代碼基本相同,只是有些字不同而已
註:附加CSS即沒在css.htm中,而在網頁書寫中以style=""形式出現的CSS屬性
相應位置請參照圖







1 頭部導航文字
所屬CSS class或ID:nav
CSS代碼:


#nav { margin: 10px 5px; }
#nav a { font-weight: bold; color: {HIGHLIGHTLINK}; }

2 預覽帖子部分
1 總框架
所屬CSS class或ID:mainbox & viewthread(總量很多,下面再次出現的這兩個class就不把代碼寫出來了)
CSS代碼:
mainbox部分:


.mainbox .headactions { color: {HEADERTEXT}; }
.mainbox .headactions a, .mainbox .headactions span, .mainbox.headactions strong { background: url({IMGDIR}/headactions_line.gif)no-repeat 100% 50%; padding-right: 10px; margin-right: 8px; color:{HEADERTEXT}; }
.mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }
.mainbox { background: {TABLEBG}; border: {BORDERWIDTH} solid {BORDERCOLOR}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; }
.mainbox h1, .mainbox h3, .mainbox h6 { line-height: 31px;padding-left: 1em; {HEADERBGCODE}; background-repeat: repeat-x;background-position: 0 0; color: {HEADERTEXT}; }
.mainbox h1 a, .mainbox h3 a { color: {HEADERTEXT}; }
.mainbox table { width: 100%; }
.mainbox thead th, .mainbox thead td { background: {CATCOLOR}; padding: 2px 5px; line-height: 22px; color: {TEXT}; }
.mainbox thead.category th, .mainbox thead.category td { {CATBGCODE}; }
.mainbox thead.separation th, .mainbox thead.separation td { border-top: 1px solid {BGBORDER} }
.mainbox tbody th, .mainbox tbody td { border-top: 1px solid {BGBORDER}; padding: 5px; }
.mainbox tbody cite, .mainbox tbody em { line-height: 1.3em; }
.mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }
.content .mainbox { padding-bottom: 5px; }
.content .mainbox tbody th, .content .mainbox tbody td { border-top: none; border-bottom: 1px solid {BGBORDER}; }

viewthread部分:


.viewthread { padding-bottom: 1px; }
.viewthread table, #pmprompt table, #forumlinks, #pmlist, #specialpost { table-layout: fixed; }
.viewthread ins { display: block; text-align: center; text-decoration:none; margin-bottom: 1px; background: {COMMONBOXBG}; border-bottom: 1pxsolid {CATBORDER}; line-height: 26px; }
.viewthread ins, .viewthread ins a { color: {NOTICETEXT}; }
.viewthread td.postcontent, .viewthread td.postauthor { vertical-align:top; padding: 0 1px; border: none; overflow: hidden; background:{TABLEBG}; }

2 文字class(頂部title請參照總框架中所有h1標記的定義)
1 左部框架
所屬CSS class或ID:postauthor
CSS代碼:


.mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }

3 發新話題總框架
所屬CSS class或ID:mainbox & formbox
CSS代碼(mainbox部分見上)
formbox部分:


.formbox th { width: 180px; }
.formbox th, .formbox td { padding: 5px; }
.formbox th, .formbox td { border-bottom: 1px solid {BGBORDER}; }
.formbox table a { color: {HIGHLIGHTLINK}; }
.formbox label { cursor: pointer; }
.formbox th ul { padding: 5px 0; margin: 5px 0; }
#menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabsli, .postmessage fieldset li, .side li, .formbox li, .notice li {list-style: none; }
.forumlist tbody strong, .threadlist tbody strong , .formbox tbody strong { color: {NOTICETEXT}; }

4 頂部title
1 積分策略說明
所屬CSS class或ID:.headactions
CSS代碼:


.headactions { float: right; line-height: 1em; padding: 10px 10px 0 0; }
.headactions img { vertical-align: middle; cursor: pointer; padding: 0 5px; }
.mainbox .headactions { color: {HEADERTEXT}; }
.mainbox .headactions a, .mainbox .headactions span, .mainbox.headactions strong { background: url({IMGDIR}/headactions_line.gif)no-repeat 100% 50%; padding-right: 10px; margin-right: 8px; color:{HEADERTEXT}; }
.mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }
.pages_btns { width: 100%; padding: 0 0 8px; overflow: hidden; }
.blockcode .headactions { color: {TEXT}; font-size: {MSGSMALLSIZE}; cursor: pointer; padding-top: 5px; }
.headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }
.headactions .popupmenu_popup { width: 120px; }

2 右部title請參照總框架中所有h1標記的定義

5 標題輸入部分
1 標題外框
CSS代碼:BORDER-BOTTOM-WIDTH: 0px
2 主題分類外框
CSS代碼:BORDER-BOTTOM-WIDTH: 0px
3 標題輸入框
所屬CSS class或ID:threadtypes
CSS代碼:


#threadtypes table td, #threadtypes table th { border-top: 1px solid {BGBORDER}; border-bottom: 0;}

外部附加CSS:


BORDER-TOP-WIDTH:0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px;BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px;BORDER-RIGHT-WIDTH: 0px

6 內容部分
所屬CSS class或ID:posteditor_left
無CSS代碼

7 smilies
所屬CSS class或ID:smilieslist
CSS代碼


#smilieslist { border: 1px solid {COMMONBOXBORDER}; overflow: hidden; text-align: center; }
#quickpost #smilieslist { margin: 0 1em; }
#smilieslist td { border: none; padding: 8px 0; cursor: pointer; }
#smilieslist td:hover { background: {COMMONBOXBORDER}; }
#smilieslist .pages { float: none; border-width: 1px 0 0; }

8 editor編輯按鈕部分
1 總框架
所屬CSS class或ID:editor
CSS代碼:


#editor { border: solid; border-color: {CATBORDER}; border-width: 1px 1px 0; background: {COMMONBOXBG}; }
#editor td { border: none; padding: 2px; }

2 編輯按鈕框架
所屬CSS class或ID:editortoolbar
CSS代碼:


.editortoolbar table { width: auto; }
.editortoolbar a, .editortoolbar .a { display: block; padding: 1px; border: 1px solid {COMMONBOXBG}; cursor: pointer; }
.editortoolbar a.hover, .editortoolbar a:hover, .editortoolbar .a1 {background-color: {ALTBG2}; border: 1px solid {BORDERCOLOR};text-decoration: none; }

9 內容輸入部分
1 總框架
所屬CSS class或ID:editor_text
CSS代碼:


.editor_text { border: 1px solid; border-color: {CATBORDER} {CATBORDER} {CATBORDER} {CATBORDER}; }
.editor_text textarea { border: none; width: 99%; font: 12px/1.6em "Courier New", Courier, monospace; }

2 輸入部分
標記為textarea,請參照上面的標記部分
附加CSS:WIDTH: 99%; HEIGHT: 250px
textarea控制DISCUZ代碼模式的背景顏色
所見即所得模式的背景顏色修改可參照以下方法

查找


#wysiwyg { font: {MSGFONTSIZE}/1.6em {FONT} !important; }

將其修改為


#wysiwyg { font: {MSGFONTSIZE}/1.6em {FONT} !important; background:{ALTBG2};}

10 上傳附件title(請參考總框架中的TH標記)
1 閱讀權限及售價部分
所屬CSS class或ID:nums
CSS代碼:


td.nums { width: 80px; text-align: center; }

11 發新話題按鈕
控制標籤:BUTTON
CSS代碼:


button{ border: 1px solid; border-color: {COMMONBOXBORDER} {LIGHTTEXT}{LIGHTTEXT} {COMMONBOXBORDER}; background: {CATCOLOR}; height: 2em;line-height: 2em; cursor: pointer; }

所有的按鈕基本都是這個控制,如首頁的快速登陸


button.submit { margin-right: 1em; border: 1px solid; border-color:#FFFDEE #FDB939 #FDB939 #FFFDEE; background: #FFF8C5; color:{NOTICETEXT}; padding: 0 10px; }

部分提交按鈕由這個控制,比如這裡的提交按鈕,登陸頁面提交等



本圖文參考水月無痕, 由 kkfriend 重製香港版本.
部分內容可能和實際不符, 參考時如有錯漏, 請于指正.

[ 本帖最後由 kkt8899sp 於 2007-9-9 18:20 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 kung仔
 0034704
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 kung仔 的詳細資料

頭銜: Forum Legend

暱稱: 無念無相無住

自述: 病毒專殺工具

帖子: 3809

精華: 0

積分: 7156 點

現金: 40 元

存款: 316 元

閱讀權限: 70

註冊: 2005-11-11

狀態: 離線
 
發表於 2007-9-9 18:12  資料  個人空間  短消息  加為好友  添加 kung仔 為MSN好友 通過MSN和 kung仔 交談
不錯 支持下先,遲d正返個風格先




 AL8 Forum © All rights reserved.
頂部
 不懂我是誰
 0068464
 此發帖者帳號尚未激活

頭銜: Inactive Member

帖子: 1305

精華: 0

積分: 8724 點

現金: 108 元

存款: 7564 元

閱讀權限: 10

註冊: 2007-2-26

狀態: 離線
 
發表於 2007-9-9 18:17  資料  個人空間  短消息  加為好友 
回覆 #3 kung仔 的帖子

無圖 整不了

[ 本帖最後由 不懂我是誰 於 2007-9-9 18:18 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 邊個
 0057619
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1682

精華: 0

積分: 14131 點

現金: 76 元

存款: 1100 元

閱讀權限: 70

註冊: 2006-11-11

來自: 水星

狀態: 離線
 
發表於 2007-9-9 18:31  資料  個人空間  主頁 短消息  加為好友  QQ ICQ 狀態
精華 , 支持




 AL8 Forum © All rights reserved.
頂部
 nelsonck
 0067621
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 149

精華: 0

積分: 1480 點

現金: 100 元

存款: 0 元

閱讀權限: 20

註冊: 2007-2-17

狀態: 離線
 
發表於 2007-9-10 09:52  資料  個人空間  短消息  加為好友 
Thanks a lot !  




 AL8 Forum © All rights reserved.
頂部
 Ivan7
 0002644
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: 熙

帖子: 2374

精華: 1

積分: 9931 點

現金: 418 元

存款: 1259 元

閱讀權限: 70

註冊: 2004-6-4

來自: 外太空

狀態: 離線
 
發表於 2007-9-10 18:10  資料  個人空間  主頁 短消息  加為好友 
好有用
嚴重支持!!!
寫風格真係靠你




 AL8 Forum © All rights reserved.
頂部
 happything
 0040526
Rank: 1

頭銜: Newbie

帖子: 22

精華: 0

積分: 274 點

現金: 100 元

存款: 0 元

閱讀權限: 10

註冊: 2006-2-24

狀態: 離線
 
發表於 2007-9-13 18:37  資料  個人空間  短消息  加為好友 
這樣我們這新人,
也能擁有自已想要的風格了。




 AL8 Forum © All rights reserved.
頂部
 小鮪魚
 0022295
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 473

精華: 0

積分: 6554 點

現金: 16 元

存款: 0 元

閱讀權限: 25

註冊: 2005-5-27

狀態: 離線
 
發表於 2007-9-21 00:26  資料  個人空間  短消息  加為好友 
那 Logo 如何修改成 整張圖片的呢?




 AL8 Forum © All rights reserved.
頂部
 SM狂徒
 0085602
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 122

精華: 0

積分: 240 點

現金: 15 元

存款: 11 元

閱讀權限: 20

註冊: 2007-8-27

來自: AL8 Form

狀態: 離線
 
發表於 2007-9-21 00:42  資料  個人空間  短消息  加為好友 
THX!!對我很有用




 AL8 Forum © All rights reserved.
頂部
 wantgo
 0038167
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 210

精華: 0

積分: 1990 點

現金: 95 元

存款: 0 元

閱讀權限: 20

註冊: 2006-1-7

來自: Taipei

狀態: 離線
 
發表於 2007-10-23 15:25  資料  個人空間  主頁 短消息  加為好友 
真是太偉大了!
說明的太詳細深入~





全球網路購物平台中心~
wantgomall.com
wantgo.com.cn
 AL8 Forum © All rights reserved.
頂部
 叛逆↓彤B
 0070018
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror