Manyou诚邀开发者加盟 | 常见问题
《站长》俱乐部官方群公布 城市联络员机会多多
立即免费下载 Discuz!7.0.0 正式版
安装升级指南 | 用户手册 | 新手建站学堂
基于.net架构的Discuz!NT2.6正式版发布
Comsenz公司2009年招贤纳士,期待您的加盟
Discuz!收费服务内容及价格
7月重庆、成都、西安三地社区运营实战特训速报名
Discuz!/UCHome 专用官方虚拟主机
牧场新服一起联运:豆浆机免费带回家
基于Discuz!的免费论坛空间5D6D
康盛创想《站长》俱乐部18城市互动之旅报名ing
返回列表 回复 发帖

[DST]倾情贡献,DISCUZ!6.0 CSS.htm详细图文解说,让您更方便的进行DISCUZ风格设计!

[DST]倾情贡献,DISCUZ!6.0 CSS.htm详细图文解说

注:由于技术有限,部分内容可能和实际不符合,请见谅
此详解由水月あ无痕制作。
www.discuzsupport.net



模版:viewthread.htm
相应位置请参照图

帖子.gif
2007-8-21 18:22

1 页面总框架
所属CSS class或ID:foruminfo
CSS代码:
  1. #foruminfo { width: 100%; overflow: hidden; margin: 10px 0; color: {TEXT}; }
  2. #userinfo, #foruminfo #nav { float: left; padding-left: 5px; }
  3. #foruminfo p { margin: 0; }
  4. #foruminfo a{ color: {HIGHLIGHTLINK}; }
  5. #foruminfo em { color: {TABLETEXT}; }
  6. #foruminfo cite { font-weight: bold; }
  7. #foruminfo strong a { font-weight: bold; color: {TABLETEXT}; }
  8. #foruminfo #nav { margin: 0; }
复制代码
2 头部导航
1 总框架
所属CSS class或ID:nav
CSS代码:
  1. #userinfo, #foruminfo #nav { float: left; padding-left: 5px; }
  2. #nav { margin: 10px 5px; }
  3. #foruminfo #nav { margin: 0; }
  4. #nav a { font-weight: bold; color: {HIGHLIGHTLINK}; }
复制代码
2 如果打开了版块下拉菜单,则风格下拉菜单使用一个class
所属CSS class或ID:dropmenu
CSS代码:
  1. .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代码:
  1. .ad_text { border: 1px solid {CATBORDER}; margin-bottom: {BOXSPACE}; padding: 6px; {PORTALBOXBGCODE}; background-repeat: repeat-x; }
  2. .ad_text table { width: 100%; border-collapse: collapse; }
  3. .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代码:
  1. .pages_btns { width: 100%; padding: 0 0 8px; overflow: hidden; }
  2. .pages_btns .pages em { line-height: 26px; }
复制代码
2 上一主题/下一主题(主题切换)
所属CSS class或ID:threadflow
CSS代码:
  1. .pages, .threadflow { float: left; border: 1px solid {CATBORDER}; background: {COMMONBOXBG}; height: 24px; line-height: 26px; color: {LIGHTTEXT}; overflow: hidden; }
  2. .threadflow { margin-right: 5px; padding: 0 5px; }
复制代码
3 新帖/回复
所属于CSS class或ID:postbtn(新帖class)/replybtn(回复class)
CSS代码:
  1. .postbtn, .replybtn { float: right; }
  2. .postbtn { margin-left: 10px; cursor: pointer; }
复制代码
4 新帖下拉菜单
所属CSS class或ID:popupmenu_popup & newspecialmenu
CSS代码:
popupmenu_popup部分:
  1. .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;  }
  2. .popupmenu_popup .postauthor { width: 180px; }
  3. .popupmenu_popup .postauthor a { color: {HIGHLIGHTLINK}; }
  4. .headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }
  5. .headactions .popupmenu_popup { width: 120px; }
  6. #menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li, .postmessage fieldset li, .side li, .formbox li, .notice li { list-style: none; }
复制代码
newspecialmenu部分:
  1. .newspecialmenu { width: 100px; }
  2. .newspecialmenu li { background: url({IMGDIR}/folder_s.gif) no-repeat 3px 50%; float: left; }
  3. .newspecialmenu li.poll { background-image: url({IMGDIR}/pollsmall.gif); }
  4. .newspecialmenu li.trade { background-image: url({IMGDIR}/tradesmall.gif); }
  5. .newspecialmenu li.reward { background-image: url({IMGDIR}/rewardsmall.gif); }
  6. .newspecialmenu li.activity { background-image: url({IMGDIR}/activitysmall.gif); }
  7. .newspecialmenu li.debate { background-image: url({IMGDIR}/debatesmall.gif); }
  8. .newspecialmenu a { float: left; width: 75px; border-bottom: 1px solid {COMMONBOXBORDER}; padding: 5px 0 5px 25px; }
  9. .newspecialmenu a:hover { text-decoration: none; color: {HIGHLIGHTLINK}; border-bottom-color: {CATBORDER}; }
复制代码
5 帖子主体部分:
1 总框架
所属CSS class或ID:mainbox & viewthread
CSS代码:
mainbox部分:
  1. .mainbox .headactions { color: {HEADERTEXT}; }
  2. .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}; }
  3. .mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }
  4. .mainbox { background: {TABLEBG}; border: {BORDERWIDTH} solid {BORDERCOLOR}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; }
  5. .mainbox h1, .mainbox h3, .mainbox h6 { line-height: 31px; padding-left: 1em; {HEADERBGCODE}; background-repeat: repeat-x; background-position: 0 0; color: {HEADERTEXT}; }
  6. .mainbox h1 a, .mainbox h3 a { color: {HEADERTEXT}; }
  7. .mainbox table { width: 100%; }
  8. .mainbox thead th, .mainbox thead td { background: {CATCOLOR}; padding: 2px 5px; line-height: 22px; color: {TEXT}; }
  9. .mainbox thead.category th, .mainbox thead.category td { {CATBGCODE}; }
  10. .mainbox thead.separation th, .mainbox thead.separation td { border-top: 1px solid {BGBORDER} }
  11. .mainbox tbody th, .mainbox tbody td { border-top: 1px solid {BGBORDER}; padding: 5px; }
  12. .mainbox tbody cite, .mainbox tbody em { line-height: 1.3em; }
  13. .mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }
  14. .content .mainbox { padding-bottom: 5px; }
  15. .content .footoperation, .content .mainbox thead th, .content .mainbox thead td,.content .mainbox tbody th, .content .mainbox tbody td { border-top: none; border-bottom: 1px solid {BGBORDER}; }
复制代码
viewthread部分:
  1. .viewthread { padding-bottom: 1px; }
  2. .viewthread table, #pmprompt table, #forumlinks, #pmlist, #specialpost { table-layout: fixed; }
  3. .viewthread ins { display: block; text-align: center; text-decoration: none; margin-bottom: 1px; background: {COMMONBOXBG}; border-bottom: 1px solid {CATBORDER}; line-height: 26px; }
  4. .viewthread ins, .viewthread ins a { color: {NOTICETEXT}; }
  5. .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代码:
  1. .blockcode .headactions { color: {TEXT}; font-size: {MSGSMALLSIZE}; cursor: pointer; padding-top: 5px; }
  2. .headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }
  3. .headactions .popupmenu_popup { width: 120px; }
  4. .headactions { float: right; line-height: 1em; padding: 10px 10px 0 0; }
  5. .headactions img { vertical-align: middle; cursor: pointer; padding: 0 5px; }
  6. .mainbox .headactions { color: {HEADERTEXT}; }
  7. .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}; }
  8. .mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }
复制代码
6 左部(用户信息栏)
所属CSS class或ID:postauthor
CSS代码:
  1. .viewthread td.postcontent, .viewthread td.postauthor { vertical-align: top; padding: 0 1px; border: none; overflow: hidden; background: {TABLEBG}; }
  2. .mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }
  3. .postauthor cite { font-weight: bold; display: block; border-bottom: 1px solid {BGBORDER}; height: 21px; overflow: hidden; margin-bottom: 5px; }
  4. .postauthor cite label a { float: right; padding: 3px; }
  5. .postauthor dt { float: left; margin-right: 0.5em; color: {TEXT}; }
  6. .postauthor dd, .postauthor dt { height: 1.6em; line-height: 1.6em; }
  7. .postauthor dd { overflow: hidden; }
  8. .postauthor p { margin: 0 10px; }
  9. .postauthor p.customstatus { color: {TEXT} }
  10. .postauthor p em, .postauthor dt em { color: {NOTICETEXT}; }
  11. .postauthor ul { margin: 5px 10px; line-height: 1.6em; overflow: hidden; }
  12. .postauthor li { text-indent: 22px; width: 49.5%; height: 1.6em; overflow: hidden; float: left; background-position: 0 50%; background-repeat: no-repeat; }
  13. .postauthor li.pm { background-image: url({IMGDIR}/buddy_sendpm.gif); }
  14. .postauthor li.buddy { background-image: url({IMGDIR}/user_add.gif); }
  15. .postauthor li.space { background-image: url({IMGDIR}/forumlink.gif); }
  16. .postauthor li.online { background-image: url({IMGDIR}/user_online.gif); color: {NOTICETEXT}; }
  17. .postauthor li.offline { color: {TEXT}; background-image: url({IMGDIR}/user_offline.gif); }
  18. .postauthor li.magic { background-image: url({IMGDIR}/magic.gif);}
  19. .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代码:
  1. .specialthread .postcontent label { float: right; display: inline; margin: 12px 12px 0; border: 1px solid {CATBORDER}; padding: 3px 5px; background: {CATCOLOR} no-repeat 3px 50%; }.specialthread .postcontent label strong { color: {NOTICETEXT}; }
  2. .specialthread .postcontent label a { color: {HIGHLIGHTLINK}; }
  3. .rewardthread .postcontent label { background-image: url({IMGDIR}/rewardsmallend.gif); padding-left: 25px; }
  4. .rewardthread .postcontent label.unsolved { background-image: url({IMGDIR}/rewardsmall.gif); float:right; }
  5. .viewthread td.postcontent, .viewthread td.postauthor { vertical-align: top; padding: 0 1px; border: none; overflow: hidden; background: {TABLEBG}; }
复制代码
2顶部功能栏(只看该作者/楼层/帖子字号切换等)
所属CSS class或ID:postinfo
CSS代码:
  1. .postinfo { color: {TEXT}; border-bottom: 1px solid {BGBORDER}; padding: 0 5px; line-height: 26px; height: 26px; overflow: hidden; }
  2. .postinfo strong, .postinfo em { float: right; line-height: 26px !important; cursor: pointer; padding: 0 3px; color: {HIGHLIGHTLINK}; }
  3. .postinfo strong { margin-left: 5px; color: {NOTICETEXT}; font-weight: bold; }
  4. * html .postinfo strong { margin-top: -2px; }
  5. .postinfo strong sup { font-weight: normal; margin-left: 1px; color: {LIGHTTEXT}; }
  6. .postinfo a { color: {HIGHLIGHTLINK}; }
  7. .postinfo label { color:{NOTICETEXT}; cursor: pointer; }
复制代码
3 内容部分
  1 总框架
所属CSS class或ID:postmessage & defaultpost
CSS代码:
postmessage部分:
  1. .postmessage { padding: 10px; overflow-x: hidden; }
  2. .postmessage *, .pmmessage *, .register *  { line-height: normal; }
  3. .postmessage h2 {font-size: 1.17em; margin-bottom: 0.5em; }
  4. .postmessage .box { border-width: 0; margin: 5px 0; }
  5. .postmessage .typeoption { width: 500px; }
  6. .postmessage .box tbody th, .postmessage .box tbody td { border-top-color: {COMMONBOXBORDER}; }
  7. .postmessage fieldset { font-size: 12px; width: 500px; padding: 10px; border: 1px solid {BGBORDER}; margin-top: 2em; }
  8. .postmessage fieldset li { color: {LIGHTTEXT}; }
  9. .postmessage strong { font-weight: bold; }
  10. .postmessage em { color:{TEXT}; }
  11. .postmessage span.t_tag { cursor: pointer; border-bottom: 1px solid #F00; white-space: nowrap; }
  12. .specialpost .postmessage { text-align: left; min-height: 30px; border-bottom: 1px solid {CATBORDER}; }
  13. * html .specialpost .postmessage { height: 30px; overflow: visible; }
  14. .tradethread .postmessage { min-height: 160px; }
  15. * html .tradethread .postmessage { height: 360px !important; }
  16. .tradeinfo .postmessage { min-height: 100px; }
  17. * html .tradethread .postmessage { height: 100px; }
  18. .debatethread .postmessage { min-height: inherit; height: auto; }
  19. #menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li, .postmessage fieldset li, .side li, .formbox li, .notice li { list-style: none; }
复制代码
defaultpost部分:
  1. .defaultpost {  height: auto !important; height:{POSTMINHEIGHT}px; min-height:{POSTMINHEIGHT}px !important; }
复制代码
2 题目部分(请参照总框架中的h2标记定义)

  3 内容部分
所属CSS class或ID:t_msgfont
CSS代码:
  1. .t_msgfont, .t_msgfont td { font-size: {MSGFONTSIZE}; line-height: 1.6em; }
复制代码
对应的小字号CSS代码:
  1. .t_smallfont, .t_smallfont td { font-size: {MSGSMALLSIZE}; line-height: 1.6em; }
复制代码
对应的大字号CSS代码:
  1. .t_bigfont, .t_bigfont td { font-size: {MSGBIGSIZE}; line-height: 1.6em; }
复制代码
字号间通用CSS代码:
  1. .t_msgfont *, .t_smallfont *, .t_bigfont * { line-height: normal; }
  2. .t_msgfont a, .t_smallfont a, .t_bigfont a { color: {HIGHLIGHTLINK}; }
复制代码
4 搜索更多相关主题的帖子(tag)
所属于CSS class或ID:posttags
CSS代码:
  1. p.posttags { margin: 2em 0em 0.5em 0em; }
  2. p.posttags a, .footoperation span.posttags a { color: #F00; font-weight: bold; }
  3. p.posttags .postkeywords a, { color: {NOTICETEXT}; }
复制代码
下面的楼层和顶楼的CSS基本相同,底部的主题切换-新帖/回复和顶部的CSS一样

9 相关主题部分
1 主框架部分
所属CSS class或ID:mainbox & forumlist(mainbox部分请参照前面)
CSS代码:
forumlist部分:
  1. .forumlist table, .threadlist table { border-collapse: separate; }
  2. .forumlist tbody strong, .threadlist tbody strong , .formbox tbody strong  { color: {NOTICETEXT}; }
  3. .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}; }
  4. .forumlist tbody th { height: 40px; }
  5. .forumlist th, .threadlist th { text-align: left; }
  6. .forumlist th { padding-left: 55px !important; }
  7. .forumlist h2 em { color: {HIGHLIGHTLINK}; }
  8. .forumlist tbody th { background-image: url({IMGDIR}/forum.gif); background-repeat: no-repeat; background-position: 13px 50%; }
  9. .forumlist tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }
  10. .forumlist tbody tr:hover th, .forumlist tbody tr:hover td, .threadlist tbody tr:hover th, .threadlist tbody tr:hover td { background-color: {ALTBG2}; }
  11. .forumlist td.lastpost { width: 260px; }
  12. .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部分:
  1. .postmessage .box { border-width: 0; margin: 5px 0; }
  2. .postmessage .box tbody th, .postmessage .box tbody td { border-top-color: {COMMONBOXBORDER}; }
  3. .box { background: {TABLEBG}; border: {BORDERWIDTH} solid {CATBORDER}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; }
  4. .box h4 { {PORTALBOXBGCODE}; background-repeat: repeat-x; background-position: 0 0; line-height: 30px; padding: 0 10px; }
  5. .box table { width: 100%; }
  6. .box td { border-top: 1px solid {COMMONBOXBORDER}; }
  7. .box .box li { list-style: none;}
复制代码
quickpost部分:
  1. #quickpost { overflow: hidden; padding-bottom: 0; }
  2. * html #quickpost { height: 1%; overflow: visible; }
  3. #quickpost #smilieslist { margin: 0 1em; }
  4. #quickpost h5 { margin: 0.5em 1em; }
复制代码
2“快速回复主题”题目部分(请参照上面的h4标记定义)

3 左部“选项”部分
  1 主框架
所属CSS class或ID:postoptions
CSS代码:
  1. .postoptions, .postform, .smilies { float: left; }
  2. .postoptions, .smilies { width: 20%; }
  3. .postoptions p { margin: 2px 0.7em; }
复制代码
2 选项前多选框
所属于CSS class或ID:checkbox
CSS代码:
  1. input[type="radio"], input[type="checkbox"] { border: none; }
复制代码
4 中部输入部分
  1 主框架
所属CSS class或ID:postform
CSS代码:
  1. .postoptions, .postform, .smilies { float: left; }
  2. .postform { width: 59%; padding-bottom: 10px; }
  3. .postform p label { vertical-align: top; font-weight: bold; }
  4. .postform h5 input { width: 60%; }
  5. .postform p, .postform div { margin: 0 1em; }
  6. .postform h4 * { vertical-align: middle; }
  7. .postform h4 input { width: 60%; }
  8. .postform textarea { width: 90%; height: 160px; }
  9. .postform .btns { margin-top: 0.5em; line-height: 30px; color: {LIGHTTEXT}; font-family: Simsun, "Times New Roman"; }
  10. .postform .btns button { vertical-align: middle; }
  11. .postform .btns a { color: {HIGHLIGHTLINK}; }
  12. .postform button { border: none; background: transparent; color: {HIGHLIGHTLINK}; padding: 0; cursor: pointer; }
  13. .postform #postsubmit { float: left; display: inline; margin-left: 2.3em; }
  14. .postform .special, #postform .special { font-weight: bold; color: {HIGHLIGHTLINK};}
复制代码
2“标题”及输入框(请参照主框架中的h5定义)

  3 内容输入框
所属CSS class或ID:autosave
CSS代码:
  1. .autosave { behavior: url(#default#userdata); }
复制代码
4 下方提交按钮及功能按钮(发表帖子按钮的定义请参照"发帖"讲解最下面的按钮定义部分)
所属CSS class或ID:btns
CSS代码:
  1. .postform .btns { margin-top: 0.5em; line-height: 30px; color: {LIGHTTEXT}; font-family: Simsun, "Times New Roman"; }
  2. .postform .btns button { vertical-align: middle; }
  3. .postform .btns a { color: {HIGHLIGHTLINK}; }
  4. .btns em { color: {LIGHTTEXT}; }
  5. .btns th, .btns td { border: none !important; }
复制代码
5 右部smilies
所属CSS class或ID:smilies
CSS代码:
  1. .postoptions, .postform, .smilies { float: left; }
  2. .postoptions, .smilies { width: 20%; }
复制代码
1 中间smilieslist部分
所属CSS class或ID:smilieslist
CSS代码:
  1. #smilieslist { border: 1px solid {COMMONBOXBORDER}; overflow: hidden; text-align: center; }
  2. #quickpost #smilieslist { margin: 0 1em; }
  3. #smilieslist td { border: none; padding: 8px 0; cursor: pointer; }
  4. #smilieslist td:hover { background: {COMMONBOXBORDER}; }
  5. #smilieslist .pages { float: none; border-width: 1px 0 0; }
复制代码
2 表情翻页
所属CSS class或ID:pages
CSS代码:
  1. .pages_btns .pages em { line-height: 26px; }
  2. .pages, .threadflow { float: left; border: 1px solid {CATBORDER}; background: {COMMONBOXBG}; height: 24px; line-height: 26px; color: {LIGHTTEXT}; overflow: hidden; }
  3. .pages a, .pages strong, .pages em, .pages kbd { float: left; padding: 0 8px; line-height:26px; }
  4. .pages a:hover { background-color: {BGCOLOR}; }
  5. .pages strong { font-weight: bold; color: {NOTICETEXT}; background: {BGBORDER}; }
  6. .pages a.prev, .pages a.next { line-height: 24px; font-family: Verdana, Arial, Helvetica, sans-serif; }
  7. .pages a.next { padding: 0 15px; }
  8. .pages kbd { border-left: 1px solid {CATBORDER}; margin: 0; }
  9. * html .pages kbd { padding: 1px 8px; }
  10. .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; }
  11. .pages kbd>input { margin-bottom: 2px; }
复制代码
11 论坛跳转--帖子管理
所属CSS class或ID:box(class) & footfilter(ID)(box部分请参照前面的代码)
CSS代码:
  1. footfilter部分:
  2. #footfilter { padding: 10px; he\ight: 44px; height: 24px; line-height: 24px; background: {COMMONBOXBG}; border-color: {COMMONBOXBORDER}; font-family: Simsun, "Times New Roman"; }
  3. #footfilter form { float: right; }
  4. #footfilter * { vertical-align: middle; }
复制代码
[ 本帖最后由 伊泽浩 于 2007-8-24 15:31 编辑 ]
3

评分次数

  • tim023

  • lu5266

  • ℡瘋м豬豬

提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
模版footer.htm相应位置请参照图
页尾.gif
2007-8-21 18:25

1 广告部分CSS
所属CSS class或ID:ad_footerbanner
注意,另外两个层的ID:ad_footerbanner2,ad_footerbanner3在CSS中没有定义,建议沿用本class。
CSS代码:
  1. .ad_footerbanner { text-align: center; clear: both; margin: 5px }
复制代码
2 广告下部,外框架部分CSS
所属CSS class或ID:footer
CSS代码:
  1. #footer { border-top: 1px solid {BORDERCOLOR}; background: {ALTBG2}; color: {TEXT}; padding: 12px 0; }
复制代码
3 广告下部,内框架部分CSS(用于左部的文字,当然,也限定了右部的层)
所属CSS class或ID:wrap
CSS代码:
  1. .wrap { width: {MAINTABLEWIDTH}; text-align: left; margin: 0 auto; overflow: hidden; }
复制代码
4 右部分主框架
所属CSS class或ID:footlinks
CSS代码:
  1. #footlinks { float: right; margin-top: -3px; text-align: right; }
复制代码
5 TOP按钮及界面风格
所属CSS class或ID:
1 “TOP”按钮:scrolltop
CSS代码:
  1. .scrolltop { cursor: pointer; }
复制代码
2 “界面风格”按钮:dropmenu(它的ID CSS我没有找到)
CSS代码:
  1. .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
  1. #menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li, .postmessage fieldset li, .side li, .formbox li, .notice li { list-style: none; }
复制代码
2
  1. .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
  1. .popupmenu_popup .postauthor { width: 180px; }
复制代码
4
  1. .popupmenu_popup .postauthor a { color: {HIGHLIGHTLINK}; }
复制代码
5
  1. .headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }
复制代码
6
  1. .headactions .popupmenu_popup { width: 120px; }
复制代码
#styleswitcher_menu部分:
1
  1. #styleswitcher_menu { width: 120px; }
复制代码
(这里CSS里写重复了一个- -|||)
2
  1. #styleswitcher_menu li.current { font-weight: bold; }
复制代码
3
  1. #styleswitcher_menu li.current a { color: {TEXT}; }
复制代码
4
  1. #styleswitcher_menu li.current { font-weight: bold; }
复制代码
6左部图
所属CSS 标记:img
  1. #footer img { float: left; margin: 0 10px 0 0; }
复制代码
7左部图右边文字
所属CSS class或ID:
1 上方文字部分:copyright
CSS代码:
1
  1. #copyright, #debuginfo { font: {SMFONTSIZE}/1.5em {SMFONT}; }
复制代码
2
  1. #copyright strong, #copyright em { font-weight: bold; }
复制代码
3
  1. #copyright strong a { color: #0954A6; }
复制代码
4
  1. #copyright em { color: #FF9D25; }
复制代码
2 下方文字部分:debuginfo
CSS代码:
1
  1. #copyright, #debuginfo { font: {SMFONTSIZE}/1.5em {SMFONT}; }
复制代码
2
  1. #debuginfo { color: {LIGHTTEXT}; }
复制代码
汗,疯猪个MJJ的,我都设了权限255你都能来抢沙发!!~~

模版以post开头的部分模版,本部分以发新帖为例子,回复的代码基本相同,只是有些字不同而已
注:附加CSS即没在css.htm中,而在网页书写中以style=""形式出现的CSS属性
相应位置请参照图

发帖.gif
2007-8-21 18:28

1 头部导航文字
所属CSS class或ID:nav
CSS代码:
  1. #nav { margin: 10px 5px; }
  2. #nav a { font-weight: bold; color: {HIGHLIGHTLINK}; }
复制代码
2 预览帖子部分
1 总框架
所属CSS class或ID:mainbox & viewthread(总量很多,下面再次出现的这两个class就不把代码写出来了)
CSS代码:
mainbox部分:
  1. .mainbox .headactions { color: {HEADERTEXT}; }
  2. .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}; }
  3. .mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }
  4. .mainbox { background: {TABLEBG}; border: {BORDERWIDTH} solid {BORDERCOLOR}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; }
  5. .mainbox h1, .mainbox h3, .mainbox h6 { line-height: 31px; padding-left: 1em; {HEADERBGCODE}; background-repeat: repeat-x; background-position: 0 0; color: {HEADERTEXT}; }
  6. .mainbox h1 a, .mainbox h3 a { color: {HEADERTEXT}; }
  7. .mainbox table { width: 100%; }
  8. .mainbox thead th, .mainbox thead td { background: {CATCOLOR}; padding: 2px 5px; line-height: 22px; color: {TEXT}; }
  9. .mainbox thead.category th, .mainbox thead.category td { {CATBGCODE}; }
  10. .mainbox thead.separation th, .mainbox thead.separation td { border-top: 1px solid {BGBORDER} }
  11. .mainbox tbody th, .mainbox tbody td { border-top: 1px solid {BGBORDER}; padding: 5px; }
  12. .mainbox tbody cite, .mainbox tbody em { line-height: 1.3em; }
  13. .mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }
  14. .content .mainbox { padding-bottom: 5px; }
  15. .content .mainbox tbody th, .content .mainbox tbody td { border-top: none; border-bottom: 1px solid {BGBORDER}; }
复制代码
viewthread部分:
  1. .viewthread { padding-bottom: 1px; }
  2. .viewthread table, #pmprompt table, #forumlinks, #pmlist, #specialpost { table-layout: fixed; }
  3. .viewthread ins { display: block; text-align: center; text-decoration: none; margin-bottom: 1px; background: {COMMONBOXBG}; border-bottom: 1px solid {CATBORDER}; line-height: 26px; }
  4. .viewthread ins, .viewthread ins a { color: {NOTICETEXT}; }
  5. .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代码:
  1. .mainbox td.postauthor { width: 180px; background: {ALTBG2}; padding: 5px; overflow: hidden; }
复制代码
3 发新话题总框架
所属CSS class或ID:mainbox & formbox
CSS代码(mainbox部分见上)
formbox部分:
  1. .formbox th { width: 180px; }
  2. .formbox th, .formbox td { padding: 5px; }
  3. .formbox th, .formbox td { border-bottom: 1px solid {BGBORDER}; }
  4. .formbox table a { color: {HIGHLIGHTLINK}; }
  5. .formbox label { cursor: pointer; }
  6. .formbox th ul { padding: 5px 0; margin: 5px 0; }
  7. #menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li, .postmessage fieldset li, .side li, .formbox li, .notice li { list-style: none; }
  8. .forumlist tbody strong, .threadlist tbody strong , .formbox tbody strong  { color: {NOTICETEXT}; }
复制代码
4 顶部title
1 积分策略说明
所属CSS class或ID:.headactions
CSS代码:
  1. .headactions { float: right; line-height: 1em; padding: 10px 10px 0 0; }
  2. .headactions img { vertical-align: middle; cursor: pointer; padding: 0 5px; }
  3. .mainbox .headactions { color: {HEADERTEXT}; }
  4. .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}; }
  5. .mainbox .headactions strong { font-weight: bold; background-image: url({IMGDIR}/arrow_left.gif); }
  6. .pages_btns { width: 100%; padding: 0 0 8px; overflow: hidden; }
  7. .blockcode .headactions { color: {TEXT}; font-size: {MSGSMALLSIZE}; cursor: pointer; padding-top: 5px; }
  8. .headactions .popupmenu_popup a, .headactions .popupmenu_popup strong { color: {TEXT}; background: none; white-space: nowrap; }
  9. .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代码:
  1. #threadtypes table td, #threadtypes table th { border-top: 1px solid {BGBORDER}; border-bottom: 0;}
复制代码
外部附加CSS:
  1. 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代码
  1. #smilieslist { border: 1px solid {COMMONBOXBORDER}; overflow: hidden; text-align: center; }
  2. #quickpost #smilieslist { margin: 0 1em; }
  3. #smilieslist td { border: none; padding: 8px 0; cursor: pointer; }
  4. #smilieslist td:hover { background: {COMMONBOXBORDER}; }
  5. #smilieslist .pages { float: none; border-width: 1px 0 0; }
复制代码
8 editor编辑按钮部分
1 总框架
所属CSS class或ID:editor
CSS代码:
  1. #editor { border: solid; border-color: {CATBORDER}; border-width: 1px 1px 0; background: {COMMONBOXBG}; }
  2. #editor td { border: none; padding: 2px; }
复制代码
2 编辑按钮框架
所属CSS class或ID:editortoolbar
CSS代码:
  1. .editortoolbar table { width: auto; }
  2. .editortoolbar a, .editortoolbar .a { display: block; padding: 1px; border: 1px solid {COMMONBOXBG}; cursor: pointer; }
  3. .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代码:
  1. .editor_text { border: 1px solid; border-color: {CATBORDER} {CATBORDER} {CATBORDER} {CATBORDER}; }
  2. .editor_text textarea { border: none; width: 99%; font: 12px/1.6em "Courier New", Courier, monospace; }
复制代码
2 输入部分
标记为textarea,请参照上面的标记部分
附加CSS:WIDTH: 99%; HEIGHT: 250px
textarea控制DISCUZ代码模式的背景颜色
所见即所得模式的背景颜色修改可参照以下方法

查找
  1. #wysiwyg { font: {MSGFONTSIZE}/1.6em {FONT} !important; }
复制代码
将其修改为
  1. #wysiwyg { font: {MSGFONTSIZE}/1.6em {FONT} !important; background:{ALTBG2};}
复制代码
10 上传附件title(请参考总框架中的TH标记)
1 阅读权限及售价部分
所属CSS class或ID:nums
CSS代码:
  1. td.nums { width: 80px; text-align: center; }
复制代码
11 发新话题按钮
控制标签:BUTTON
CSS代码:
  1. button { border: 1px solid; border-color: {COMMONBOXBORDER} {LIGHTTEXT} {LIGHTTEXT} {COMMONBOXBORDER}; background: {CATCOLOR}; height: 2em; line-height: 2em; cursor: pointer; }(所有的按钮基本都是这个控制,如首页的快速登陆)
  2. button.submit { margin-right: 1em; border: 1px solid; border-color: #FFFDEE #FDB939 #FDB939 #FFFDEE; background: #FFF8C5; color: {NOTICETEXT}; padding: 0 10px; }(部分提交按钮由这个控制,比如这里的提交按钮,登陆页面的提交等)
复制代码
[ 本帖最后由 缘亦如此 于 2007-8-21 18:42 编辑 ]
自己占个位!~

PS:疯猪MJJ


還好我撿到了一樓...要不樓上的那個豬我強烈的PS

死豬...懶豬...

[ 本帖最后由 ご壞壞〆瀦ㄣ 于 2007-8-21 18:31 编辑 ]
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
有这份心就不错了,顶一下占位置
精彩免费资源分享平台http://www.p2ip.com欢迎光临!
支持           
阿福阿喜
www.afuaxi.com

麻木了,不知道Discuz!7.0 的风格怎么去写了
顶一下占位置
返回列表