DiscuzX2.5模板样式表-common.css

重定义浏览器默认样式

  1. * { word-wrap: break-word; }
  2. body { BGCODE; }
  3. body, input, button, select, textarea { font: FONTSIZE FONT; color: TABLETEXT; }
  4. textarea { resize: none; }
  5. body, ul, ol, li, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset, .pr, .pc { margin: 0; padding: 0; }
  6. table { empty-cells: show; border-collapse: collapse; }
  7. caption, th { text-align: left; font-weight: 400; }
  8. ul li, .xl li { list-style: none; }
  9. h1, h2, h3, h4, h5, h6 { font-size: 1em; }
  10. em, cite, i { font-style: normal; }
  11. a { color: LINK; text-decoration: none; }
  12. a:hover { text-decoration: underline; }
  13. a img { border: none; }
  14. label { cursor: pointer; }

左右浮动

左右浮动效果就是大家通俗所说的横排并列效果,DiscuzX在程序中已经内置了代码
例如:两列广告并排只需要在代码中加上<div class="z"></div><div class="y"></div>
  1. .z { float: left; } .y { float: right; }

Clearfix,避免因子元素浮动而导致的父元素高度缺失能问题

  1. .cl:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .cl { zoom: 1; }

重定义 元素的样式,去除默认边距

  1. hr { display: block; clear: both; *margin-top: -8px !important; *margin-bottom: -8px !important; }
  2. .mn hr, .sd hr { margin: 0 10px; }
  3. .area hr { margin-left: 0 !important; margin-right: 0 !important; }

定义 1px 高度实线样式的 元素,具有两个个扩展样式,.l2 和 .l3,分别实现 2px 和 3px 的实线分割线

  1. hr.l { height: 1px; border: none; background: COMMONBORDER; color: COMMONBORDER; }
  2. hr.l2 { height: 2px; }
  3. hr.l3 { height: 3px; }

定义 1px 高度虚线样式的 元素

  1. hr.da { height: 0; border: none; border-top: 1px dashed COMMONBORDER; background: transparent; color: transparent; }
  2. hr.bk { margin-bottom: 10px !important; *margin-bottom: 2px !important; height: 0; border: none; border-top: 1px solid WRAPBG; background: transparent; color: transparent; }
  3. .n .sd hr.bk { border-top-color: #F9F9F9; }
  4. hr.m0 { margin-left: 0; margin-right: 0; }

页面中标题级别的文字 [!]此处须整合为一个单独 class

  1. .wx --> weight text 粗体字,通常用于大标题
  2. .wx, .ph { font-family: "Microsoft YaHei", "Hiragino Sans GB", STHeiti, Tahoma, SimHei, sans-serif; font-weight: 100; }
  3. Page header .ph { font-size: 20px; }
  4. Main title .mt { padding: 10px 0; font-size: 16px; }

文字字号,分为四个级别

  1. .xs0 { font-family: SMFONT; font-size: SMFONTSIZE; -webkit-text-size-adjust: none; }
  2. .xs1 { font-size: 12px !important; }
  3. .xs2 { font-size: 14px !important; }
  4. .xs3 { font-size: 16px !important; }

文字字号,分为四个级别

  1. .xg1, .xg1 a { color: LIGHTTEXT !important; }
  2. .xg1 .xi2 { color: HIGHLIGHTLINK !important; }
  3. .xg2 { color: MIDTEXT; }

文字提亮级别,分为两级,默认模板中,1为橙色,2为蓝色

  1. .xi1, .onerror { color: NOTICETEXT; }
  2. .xi2, .xi2 a, .xi3 a { color: HIGHLIGHTLINK ; }

文字字号,分为四个级别

  1. .xw0 { font-weight: 400; }
  2. .xw1 { font-weight: 700; }

边框样式,该模块仅作用于元素的下边框,分为虚线和实线两种,宽度均为 1px

  1. .bbda { border-bottom: 1px dashed COMMONBORDER; }
  2. .bbs { border-bottom: 1px solid COMMONBORDER !important; }

去除边框

  1. .bw0 { border: none !important; }
  2. .bw0_all, .bw0_all th, .bw0_all td { border: none !important; }

去除背景,bg0_c、bg0_i 和 bg0_all 分别为去除背景颜色、去除背景图片和去除所有背景元素

  1. .bg0_c { background-color: transparent !important; }
  2. .bg0_i { background-image: none !important; }
  3. .bg0_all { background: none !important; }

黄色背景的提示条,一般用在单行醒目提示,不可用于多行块级区域

  1. .ntc_l { padding: 5px 10px; background: #FEFEE9; }
  2. .ntc_l .d { width: 20px; height: 20px; background: url(template/cr180_x/images/op.png) no-repeat 0 0; line-height: 9999px; overflow: hidden; }
  3. .ntc_l .d:hover { background-position: 0 -20px; }

圆角 [!]此处考虑弃用

  1. .brs, .avt img, .oshr { -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
  2. .brm { -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; }
  3. .brw { -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; }

外边距样式,作用于元素的上下外边距,上下各具有 n, m, w 三个级别

  1. .mtn { margin-top: 5px !important; }
  2. .mbn { margin-bottom: 5px !important; }
  3. .mtm { margin-top: 10px !important; }
  4. .mbm { margin-bottom: 10px !important; }
  5. .mtw { margin-top: 20px !important; }
  6. .mbw { margin-bottom: 20px !important; }

内边距样式,作用于元素的上下内边距,上下各具有 n, m, w 三个级别

  1. .ptn { padding-top: 5px !important; }
  2. .pbn { padding-bottom: 5px !important; }
  3. .ptm { padding-top: 10px !important; }
  4. .pbm { padding-bottom: 10px !important; }
  5. .ptw { padding-top: 20px !important; }
  6. .pbw { padding-bottom: 20px !important; }

标准尺寸头像样式,默认为 48px*48px,带边框

中等尺寸和小尺寸头像样式,中等尺寸为宽度 120px,高度按比例;小尺寸为 24px*24px
  1. .avt img { padding: 2px; width: 48px; height: 48px; background: WRAPBG; border: 1px solid; border-color: COMMONBGCOMMONBORDER COMMONBORDER COMMONBG; }
  2. .avtm img { width: 120px; height: auto; }
  3. .avts img { width: 24px; height: 24px; vertical-align: middle; }

页面中无数据输出时,用此样式显示相关提示,如无特殊必要,建议使用 而不是

  1. .emp { padding: 20px 10px; }
  2. .emp a { color: HIGHLIGHTLINK; text-decoration: underline !important; }

纵向及横向对齐方式

  1. .vm { vertical-align: middle; }
  2. .vm * { vertical-align: middle; }
  3. .hm { text-align: center; }

隔行换色时深色背景

  1. .alt, .alt th, .alt td { background-color: COMMONBG; }

类似统计中需注意的文字样式 [!]此处须考虑名称简写为 ntc

  1. .notice { clear: both; margin: 5px 0; padding: 3px 5px 3px 20px; background: url(template/cr180_x/images/notice.gif) no-repeat 2px 6px; }

相应页面中 AJAX 请求时的状态显示

  1. #ajaxwaitid { display: none; position: absolute; right: 0; top: 0; z-index: 1; padding: 0 5px; background: #D00; color: LIGHTLINK; }

下拉菜单

  1. .showmenu { padding-right: 16px; background: url(template/cr180_x/images/arrwd.gif) no-repeat 100% 50%; cursor: pointer; white-space: nowrap; }
  2. #um .showmenu { margin-right: -5px; }

鼠标样式,可以根据需要按序添加

  1. .cur1 { cursor: pointer; }

如果验证码有错乱,可添加此样式.sec

(全局,修改时要小心,会涉及分享、快速回复和 feed日志相册中的评论等地方)
  1. .ie6 .sec .p_pop { white-space: expression(this.offsetWidth >= 220 ? 'normal' : 'nowrap'); width: expression(this.offsetWidth >= 220 ? 200 : 'auto'); }

必填项

  1. .rq { color: red; }

单行输入框(px)、多行文本框(pt)和选择框(ps/select)

  1. .px, .pt, .ps, select { border: 1px solid; border-color: INPUTBORDERDARKCOLOR INPUTBORDER INPUTBORDERINPUTBORDERDARKCOLOR; background: INPUTBG url(template/cr180_x/images/px.png) repeat-x 0 0; color: TEXT; }
  2. .px, .pt { padding: 2px 4px; line-height: 17px; }
  3. .px { height: 17px; }
  4. .pxs { width: 30px !important; }
  5. .fdiy .tfm .px, .fdiy .tfm .pt { width: auto; }
  6. .p_fre { width: auto !important; }
  7. .er { border-color: #F66 #FFBDB9 #FFBDB9 #F66; background-color: #FDF4F4; background-image: url(template/cr180_x/images/px_e.png); }
  8. .pt { overflow-y: auto; }
  9. div.pt { height: 100px; line-height: 100px; }
  10. .ps, select { padding: 2px 2px 2px 1px; }
  11. 自动调整高度的 textarea by Pony
  12. .pts { vertical-align: top; overflow: hidden; }
  13. .cmt .pts { width: 60%; }

按钮样式

  1. button::-moz-focus-inner { border: 0; padding: 0; }
  2. .pn { vertical-align: middle; overflow: hidden; margin-right: 3px; padding: 0; height: 23px; border: 1px solid #999; background: #E5E5E5 url(template/cr180_x/images/pn.png) repeat-x 0 0; cursor: pointer; -moz-box-shadow: 0 1px 0 #E5E5E5; -webkit-box-shadow: 0 1px 0 #E5E5E5; box-shadow: 0 1px 0 #E5E5E5; }
  3. .pn:active { background-position: 0 -23px; }
  4. .ie6 .pn { overflow-x: visible; width: 0; }
  5. .pn em, .pn span, .pn strong { padding: 0 10px; line-height: 21px; }
  6. .pn em, .pn strong { font-weight: 700; }
  7. .ie7 .pn em, .ie7 .pn span, .ie7 .pn strong { padding: 0 5px; line-height: 18px; }
  8. a.pn { height: 21px; line-height: 21px; color: TABLETEXT !important; }
  9. a.pn:hover { text-decoration: none; }
  10. .ie6 a.pn { width: auto; }
  11. .ie6 a.pn em, .ie6 a.pn span, .ie6 a.pn strong { display: block; }
  12. .ie7 a.pn em, .ie7 a.pn span, .ie7 a.pn strong { line-height: 21px; }
  13. .pnc, a.pnc { border-color: #235994; background-color: #06C; background-position: 0 -48px; color: #FFF !important; }
  14. .pnc:active { background-position: 0 -71px; }
  15. .pnpost .pn { height: 26px; }

单选按钮(pr)、多选框(pc)和label(lb)

  1. .pr, .pc { vertical-align: middle; margin: 0 5px 1px 0; padding: 0; }
  2. .ie6 .pr, .ie6 .pc, .ie7 .pr, .ie7 .pc { margin-right: 2px; }
  3. .lb { margin-right: 20px; }

小尺寸的输入框和按钮样式。该样式在模板中保留,目前样式为空。

  1. .pns .px {}
  2. .pns .pn {}

模拟下拉菜单样式

  1. .ftid { float: left; margin-right: 6px; }
  2. .ftid select { float: left; height: 23px; }
  3. .ftid a { display: block; overflow: hidden; padding: 0 17px 0 4px; height: 21px; line-height: 21px; text-decoration: none !important; font-size: 12px; font-weight: 400; color: TABLETEXT !important; border: 1px solid; border-color: INPUTBORDERDARKCOLORINPUTBORDER INPUTBORDER INPUTBORDERDARKCOLOR; background: WRAPBGurl(template/cr180_x/images/newarow.gif) no-repeat 100% 0; }
  4. .ftid a:hover, .ftid a:focus { background-position: 100% -23px; }
  5. ctrl 'select' width
  6. .ftid select { width: 94px; }
  7. .sslt a { width: 54px; }
  8. .sslt select { width: 60px; }
  9. .sltm { padding: 5px 11px 5px 10px; border: 1px solid DROPMENUBORDER; background-color: WRAPBG; text-align: left; }
  10. .sltm li { padding: 2px 0; color: MIDTEXT; cursor: pointer; }
  11. .sltm li:hover { color: HIGHLIGHTLINK; }
  12. .sltm li.current { color: NOTICETEXT; }

分享按钮 收藏按钮 邀请按钮

  1. .oshr:hover { text-decoration: none; }
  2. .ofav { background-image: url(template/cr180_x/images/fav.gif); }
  3. .oivt { background-image: url(template/cr180_x/images/activitysmall.gif); }

表单样式

  1. .tfm { width: 100%; }
  2. .tfm caption, .tfm th, .tfm td { vertical-align: top; padding: 7px 0; }
  3. .tfm caption h2 { font-size: 16px; }
  4. .vt th, .vt td { vertical-align: top; }
  5. .tfm th { padding-top: 9px; padding-right: 5px; width: 130px; }
  6. .tfm th .rq { float: right; font-size: 14px; }
  7. .tfm .pt, .tfm .px { margin-right: 3px; width: 330px; }
  8. .tfm .c, .tfm .tedt, .m_c .tfm .tedt { width: 338px; }
  9. .tfm .d { clear: both; margin: 5px 0; color: LIGHTTEXT; }
  10. .tfm .d em { margin-left: 5px; color: red; }
  11. .tfm .d strong { margin-left: 5px; }
  12. .tfm .d a { color: HIGHLIGHTLINK; }
  13. .tfm .p { text-align: right; }
  14. .tfm .pcl label { display: block; padding: 0 2px 5px; }
  15. .tfm .pcl .pc { margin-right: 5px; padding: 0; }
  16. .tfm .l th, .tfm .l td { padding-top: 0; padding-bottom: 0; }
  17. .bn .tfm caption, .bn .tfm th, .bn .tfm td { padding-top: 5px; padding-bottom: 5px; }

发帖页面、弹窗等的标题栏

  1. .pbt { margin-bottom: 10px; }
  2. .ie6 .pbt .ftid a, .ie7 .pbt .ftid a { margin-top: 1px; }
  3. #custominfo.mtn { margin-bottom: -5px; }

提示信息 alert_win - altw

  1. .altw { width: 350px; }
  2. .altw .fltc { margin-bottom: 0; padding: 8px; }
  3. .alert_right, .alert_error, .alert_info { padding: 6px 0 6px 58px; min-height: 40px; height: auto !important; height: 40px; line-height: 160%; background:url(template/cr180_x/images/right.gif) no-repeat 8px 8px; font-size: 14px; }
  4. .alert_error { background-image: url(template/cr180_x/images/error.gif); }
  5. .alert_error a { font-weight: 700; color: HIGHLIGHTLINK; }
  6. .alert_info { background-image: url(template/cr180_x/images/info.gif); }
  7. .alert_btnleft { margin-top: 8px; }
  8. .alert_btn { margin-top: 20px; text-align: center; }
  9. .alert_act { margin-top: 20px; padding-left: 58px; }

发帖导航 by lushnis

  1. .pbnv { float: left; white-space: nowrap; overflow: hidden; width: 400px; padding: 7px 0; }
  2. .pbl { overflow: hidden; margin: 9px 0; width: 621px; border-width: 1px 0 1px 1px; border-style: solid; border-color: #CCC; background: WRAPBG; }
  3. .pbl li { float: left; overflow-x: hidden; overflow-y: auto; padding: 5px; width: 196px; height: 300px; border-right: 1px solid #CCC; }
  4. .pbl p { height: 25px; line-height: 25px; }
  5. .pbl a { display: block; white-space: nowrap; overflow: hidden; padding: 0 4px; text-decoration: none; color: HIGHLIGHTLINK; border: solid WRAPBG; border-width: 1px 0; }
  6. .pbl a:hover { text-decoration: none; background-color: #F3F3F3; }
  7. .pbl .highlightlink { color: #08C; }
  8. .pbls a, .pbls a:hover { background-color: #EEE; color: MIDTEXT; font-weight: 700; }
  9. .pbsb { background: url(template/cr180_x/images/arrow.gif) right -33px no-repeat; }

通用容器,定义页面宽度

  1. .wp { margin: 0 auto; width: 960px; } #wp .wp { width: auto; }

页头

  1. #toptb { line-height: 24px; }
  2. #toptb a { float: left; padding: 0 4px; height: 24px; }
  3. #toptb a.showmenu { padding-right: 15px; }
  4. #toptb a.hover { background-color: #FFF; }
  5. #toptb .pipe { float: left; display: none; }
  6. #hd { border-bottom: HEADERBORDER solid SPECIALBORDERHEADERBGCODE }
  7. #hd .wp { padding: 10px 0 0; }
  8. #diy-tg { float: right; width: 55px; background: url(static/image/diy/panel-toggle.png) no-repeat 100% 1px; text-indent: -9999px; overflow: hidden; }
  9. #diy-tg_menu { position: absolute; margin: -2px 0 0 -1px; padding: 6px 0; width: 72px; height: 48px; background: url(static/image/diy/panel-toggle-drop.png) no-repeat 0 0; text-align: center; }
  10. #diy-tg_menu a { float: none !important; }
  11. #toptb #diy-tg_menu { margin: -6px 0 0 -10px; }
  12. .hdc { min-height: 70px; }
  13. .ie6 .hdc { height: 70px; }
  14. #hd h2 { padding: 0 20px 8px 0; float: left; }
  15. #space #hd h2 { margin-top: 0; }
  16. #hd .fastlg { padding-top: 10px; }
  17. #scbar { height: 44px; border: solid SPECIALBG; border-width: 0 1px 1px; background: url(template/cr180_x/images/search.png) repeat-x 0 0; line-height: 44px; overflow: hidden; }
  18. .scbar_icon_td { width: 50px; background: url(template/cr180_x/images/search.png) no-repeat 0 -74px; }
  19. .scbar_txt_td, .scbar_type_td { background: url(template/cr180_x/images/search.png) repeat-x 0 -222px; }
  20. #scbar_txt { width: 400px; border: 1px solid #FFF; outline: none; font-size: 14px; }
  21. .scbar_narrow #scbar_txt { width: 260px; }
  22. .scbar_btn_td { width: 67px; background: url(template/cr180_x/images/search.png) no-repeat 0 -296px; text-align: center; }
  23. #scbar_btn { margin: 0; padding: 0; border: none; background: transparent none; }
  24. .scbar_type_td { background: url(template/cr180_x/images/search.png) no-repeat 0 -370px; }
  25. #scbar_type { display: block; padding-left: 5px; text-align: left; text-decoration: none; }
  26. #scbar_type_menu { margin-top: -8px; }
  27. #scbar_hot { padding-left: 8px; height: 45px; overflow: hidden; }
  28. #scbar_hot strong, #scbar_hot a { float: left; margin-right: 8px; white-space: nowrap; }
  29. #nv { overflow: hidden; padding-left: 3px; height: 33px; MENUBGCODE; }
  30. #nv li { float: left; padding-right: 1px; height: 33px; line-height: 33px; background: url(template/cr180_x/images/nv_a.png) no-repeat 100% 0; font-weight: 700; font-size: 14px; }
  31. .ie_all #nv li { line-height: 36px; }
  32. .ie6 #nv li { line-height: 33px; }
  33. #nv li a { float: left; padding: 0 15px; height: 33px; }
  34. #nv li a { color: MENUTEXT; }
  35. #nv li span { display: none; }
  36. #nv li.a { margin-left: -1px; MENUHOVERBGCODE; }
  37. #nv li.a a { color: MENUHOVERTEXT; }
  38. #nv li a:hover { background: url(template/cr180_x/images/nv_a.png) no-repeat 50% -66px; }
  39. #nv li.hover a:hover, #nv li.hover a { background: url(template/cr180_x/images/nv_a.png) no-repeat 50% -99px; }
  40. #mu { position: relative; z-index: 1; }
  41. .ie6 #mu, .ie7 #mu { line-height: 0; font-size: 0; }
  42. #mu ul { background: url(template/cr180_x/images/mu_bg.png) no-repeat 0 100%; line-height: 22px; z-index: 2; font-size: 12px; }
  43. #mu li { float: left; height: 32px }
  44. #mu a { float: left; display: inline; margin: 5px 6px; padding: 0 10px; white-space: nowrap; }
  45. #mu a:hover { margin: 4px 5px; border: 1px solid SPECIALBORDER; background: SPECIALBG; color: HIGHLIGHTLINK; text-decoration: none; }
  46. .floatmu { position: absolute; left: 0; top: 0; }
  47. #um { padding-top: 10px; padding-right: 60px; _padding-right: 54px; line-height: 2.3; zoom: 1; }
  48. #um, #um a { color: HEADERTEXT; }
  49. #um p { text-align: right; }
  50. #um .avt { display: inline; margin-right: -60px; }
  51. .vwmy { padding-left: 16px; background: url(template/cr180_x/images/user_online.gif) no-repeat 0 2px; }
  52. .vwmy.qq { background: url(template/cr180_x/images/connect_qq.gif) no-repeat scroll 0 0; padding-left: 20px; }
  53. .topnav .new, .sch .new 分别为为个人中心和搜索页面头部新消息样式
  54. #um .new, .topnav .new, .sch .new, #toptb .new { padding-left: 20px; background-repeat: no-repeat; background-position: 0 50%; color: HIGHLIGHTLINK; font-weight: 700; }
  55. #myprompt.new { background-image: url(template/cr180_x/images/notice.gif); background-position: 3px 50%; }
  56. #pm_ntc.new { background-image: url(template/cr180_x/images/new_pm.gif); }
  57. #task_ntc { background-image: url(static/image/feed/task.gif); }
  58. #um .pipe { margin: 0 5px 0 0; }
  59. #extcreditmenu { margin-right: 2px !important; padding-top: 3px; padding-bottom: 3px; padding-left: 10px; }
  60. #extcreditmenu.a { position: relative; z-index: 302; margin-right: 1px !important; border: 1px solid; border-color:DROPMENUBORDER; border-bottom: none; background-color: WRAPBG; }
  61. #extcreditmenu_menu { margin-top: -1px; width: auto; }
  62. #extcreditmenu_menu li { float: none; display: block; padding-left: 10px !important; padding-right: 3em !important; }
  63. #qmenu { float: right; display: inline; margin: 3px 4px 0; padding: 0 12px 0 0; width: 83px; height: 26px; background: url(template/cr180_x/images/qmenu.png) no-repeat 0 0; line-height: 26px; text-align: center; color: HIGHLIGHTLINK; font-weight: 700; text-shadow: 0 1px 0 #FFF; overflow: hidden; }
  64. #qmenu:hover { text-decoration: none; }
  65. #qmenu.a { position: relative; z-index: 302; background-position: 0 -30px; }
  66. .ie8 #qmenu { line-height: 30px; }
  67. #qmenu_menu { margin-top: -1px; padding: 20px 5px 10px; width: 180px; border-color: #9A9A9A; }
  68. #qmenu_menu ul li { float: left; }
  69. #qmenu_menu ul a { margin-bottom: 10px; padding: 47px 0 0; width: 60px; border: none; border-radius: 4px; background: url(template/cr180_x/images/noicon.gif) no-repeat 50% 5px; text-align: center; }
  70. #qmenu_menu ul a:hover { background-color: SPECIALBG; color: HIGHLIGHTLINK; text-shadow: none; }

页面主区域

  1. #ct { min-height: 300px; }
  2. .ie6 #ct { height: 300px; }
  3. .mn { overflow: hidden; }
  4. .ct1 { border: 1px solid WRAPBORDERCOLOR; border-top: none; }
  5. .ct2 .mn { float: left; width: 730px; margin-bottom: 1em; }
  6. .ct2 .sd { float: right; width: 220px; overflow: hidden; _overflow-y: visible; }
  7. .appl { float: left; overflow: hidden; margin-bottom: 10px; padding: 6px 10px; width: 117px; }
  8. .ct2_a, .ct3_a { border: 1px solid WRAPBORDERCOLORSIDEBGCODE }
  9. .ct2_a_r { border: none; background-image: none; }
  10. .ct2_a h1.mt { display: none; }
  11. .ct2_a .tb { margin-top: 3px; }
  12. .ct2_a .mn { float: right; width: 810px; }
  13. .ct2_a .mn { display: inline; margin-right: 10px; padding-top: 10px; width: 800px; }
  14. #nv_userapp .ct2_a .mn, .ct2_a_r .mn { margin-right: 0; width: 810px; }
  15. .ct3_a .mn { float: left; margin-left: 20px; width: 565px; }
  16. .ct3_a .sd { float: right; width: 220px; }
  17. #nv_home .ct3_a .sd .bm { margin-right: 10px; border: none; }
  18. #nv_home .ct3_a .sd .bm_c { padding: 10px 0; }
  19. .mw { width: 100%; float: none; }
  20. .mnw { clear: both; border-top: 1px solid #CCC; }
  21. .mnh { width: 643px; background: COMMONBG; margin-bottom: 0; }

页尾

  1. #ft { padding: 10px 0 50px; border-top: 1px solid COMMONBORDER; line-height: 1.8; color: FOOTERTEXT; }
  2. #flk { text-align: right; }
  3. #flk img { vertical-align: middle; }
  4. #scrolltop { visibility: hidden; position: fixed; bottom: 100px; display: block; margin: -30px 0 0; width: 26px; height: 50px; background: url(template/cr180_x/images/scrolltop.png) no-repeat 50% 0; line-height: 999px; overflow: hidden; cursor: pointer; }
  5. .ie6 #scrolltop { position: absolute; bottom: auto; }
  6. #nv_home #ft, .pg_announcement #ft, .pg_modcp #ft, .pg_portalcp #ft, .pg_ranklist #ft, #nv_userapp #ft { border-top: none; }

通用的区域块

.bm 是最常用的区块元素,默认带有 1px 的边框和 10px 的下边距。一般情况下,.bm 内应包括两个子容器:.bm_h 和 .bm_c,前者代表区块头部,带有灰色背景和下边框;后者是容器主体,默认带有 10px 的内边距。 .bm 另有三种子样式 .bmw Weight 头部为彩色背景 .bml Lite 头部无背景填充 .bmn Notice 整体带有彩色背景,常用于提示信息
  1. .bm, .bn { margin-bottom: 10px; }
  2. .bm { border: 1px solid COMMONBORDER; background: WRAPBG; }
  3. .bm_c { padding: 10px; }
  4. .drag {}
  5. .bm_h .o { float: right; width: 30px; }
  6. .bm_h .o img { float: right; margin-top: 11px; cursor: pointer; }
  7. .bm_h .i { padding-left: 10px; }
  8. .bm_h .pn { margin-top: 4px; }
  9. .bm_h { padding: 0 10px; height: 31px; border-top: 1px solid #FFF; border-bottom: 1px solid CONTENTSEPARATE; background:COMMONBG; line-height: 31px; white-space: nowrap; overflow: hidden; }
  10. .bmw { border: 1px solid COMMONBORDER; }
  11. .bmw .bm_h { border-top-color: WRAPBG; border-right: 1px solid WRAPBG; border-bottom-color: CONTENTSEPARATE; border-left: 1px solid WRAPBG; background: SPECIALBG; }
  12. .bmw .bm_h a { color: HIGHLIGHTLINK; }
  13. .bml .bm_h { padding-top: 5px; border: none; background: transparent; }
  14. .bml .bm_c { padding-top: 0; }
  15. .bmn { padding: 7px 10px; border-color: SPECIALBORDER; background: SPECIALBG; }
  16. .fl { border: 1px solid COMMONBORDER; border-top: none; background: WRAPBG; }
  17. .fl .bm { margin-bottom: 0; border: none; }
  18. .fl .bm_h { border-width: 1px 0; border-color: SPECIALBORDERTITLEBGCODE; }
  19. .fl .bm_c, #online .bm_c, .lk .bm_c { padding-top: 0; padding-bottom: 0; }
  20. .bm2 .bm2_b { float: left; width: 49%; border: 1px solid COMMONBORDER; }
  21. .bm2 .bm2_b_y { float: right; }
  22. .bw0 { background: transparent; }
  23. 宽布局下的通用块 .bw { padding: 0 15px; }

面包屑导航

  1. #pt { margin: 2px 0; height: 29px; border:none; background: transparent; line-height: 29px; }
  2. #pt .z { padding-right: 10px; }
  3. #pt .z a, #pt .z em, #pt .z span { float: left; height: 29px; }
  4. #pt .z em { width: 20px; background: url(template/cr180_x/images/pt_item.png) no-repeat 3px 10px; line-height: 200px; overflow: hidden; }
  5. .nvhm { width: 16px; background: url(template/cr180_x/images/search.png) no-repeat -8px -119px; line-height: 200px; overflow: hidden; }
  6. XP 或 Windows 7,IE 最高版本为 8 或 9,这几种组合情况对字体的渲染存在差异,所以需要对背景进行微调,以适应更多情况 by Pony 11050511
  7. .ie_all #pt .z em { background-position: 3px 9px; }
  8. .ie_all .nvhm { background-position: -8px -120px; }

论坛皮肤下用户页面头部

  1. #uhd { padding-top: 10px;border: 1px solid #CCC; border-bottom: none; background: SPECIALBG; }
  2. #uhd .tb a { border-width: 1px 0; border-top-color: SPECIALBG; border-bottom-color: WRAPBORDERCOLOR; }
  3. #uhd .tb .a a { border: 1px solid #CCC; border-bottom-color: #FFF; }
  4. .ie6 #uhd .tb .a { position: relative; }
  5. #uhd .mn { float: right; margin-right: 15px; margin-bottom: -30px; line-height: 28px; }
  6. #uhd .mn a { padding: 2px 0 2px 20px; background: no-repeat 0 50%; color: MIDTEXT; }
  7. #uhd .mn a:hover { color: HIGHLIGHTLINK; }
  8. #uhd .mn .addflw a { background-image: url(template/cr180_x/images/flw_ico.png); }
  9. #uhd .mn .addf a { background-image: url(static/image/feed/friend.gif); }
  10. #uhd .mn .pm2 a { background-image: url(template/cr180_x/images/pmto.gif); }
  11. #uhd .h { padding-left: 75px; }
  12. #uhd .avt { display: inline; float: left; margin-left: -65px; }
  13. #uhd .mt { padding-bottom: 0; }
  14. #uhd .flw_hd { float: right; width: 260px; margin-right: 10px; margin-bottom: -30px; }
  15. #uhd .tns th, #uhd .tns td { padding-left: 20px; text-align: left; }
  16. #uhd .flw_hd .o { padding-left: 20px; }

统计数据

  1. .tns { padding: 10px 0; }
  2. .tns table { width: 100%; }
  3. .tns th, .tns td { text-align: center; font-size: 12px; }
  4. .sd .tns th, .sd .tns td { width: 110px !important; }
  5. .tns th { border-right: 1px solid #CCC; }
  6. .tns th p, .tns td p { font-size: 14px; margin: 0; }
  7. .pls .tns { padding: 0 10px 10px; }
  8. .pls .tns th p, .pls .tns td p { font-size: 12px; margin: 0; }

带图标页面头部 ih. --> icon header

  1. .ih .icn { float: left; width: 60px; }
  2. .ih dl { margin-left: 60px; }
  3. .ih dt { font-size: 14px; font-weight: 700; }
  4. .ih dd { padding-bottom: 1em; }
  5. .ih dd strong { margin: 0 2em 0 4px; color: #C00; }

标签样式

  1. .tb { margin-top: 10px; padding-left: 5px; line-height: 30px; border-bottom: 1px solid COMMONBORDER; }
  2. .tb li { float: left; margin: 0 3px -1px 0; }
  3. .ie6 .tb .a, .ie6 .tb .current { position: relative; }
  4. .tb a { display: block; padding: 0 10px; border: 1px solid COMMONBORDER; background: SPECIALBG; }
  5. .tb .a a, .tb .current a { border-bottom-color: WRAPBG; background: WRAPBG; font-weight: 700;}
  6. .tb a:hover { text-decoration: none; }
  7. .tb .y { float: right; margin-right: 0; }
  8. .tb .y a { border: none; background: transparent; }
  9. .tb .o { margin: 1px 4px 0 2px; border: 1px solid #235994; }
  10. .tb .o, .tb .o a { height: 23px; line-height: 23px; background: #06C url(template/cr180_x/images/pn.png) repeat-x 0 -48px; }
  11. .tb .o a { padding: 0 15px; border: none; font-weight: 700; color: #FFF; }
  12. .ie6 .tb .o a { float: left; }
  13. .tb_h { margin: 0; padding: 0; background-color: SPECIALBG; }
  14. .tb_h li { margin-right: 0; }
  15. .tb_h a { border-top: none; border-left: none; }
  16. .tb_h .o { margin-top: 2px; }
  17. .tb_s { margin-top: 0; line-height: 26px; }
  18. 类似menu的Tab
  19. .tbmu { padding: 8px 10px 8px 0; border-bottom: 1px dashed COMMONBORDER; }
  20. .tbmu a { color: HIGHLIGHTLINK; }
  21. .tbmu .a { color: LINK; font-weight: 700; }
  22. tab的强调信息提示
  23. .tbms { padding: 10px 10px 10px 26px; border: 1px dashed #FF9A9A; background: url(template/cr180_x/images/notice.gif) no-repeat 10px 50%; }
  24. .tbms_r { background-image: url(template/cr180_x/images/data_valid.gif); }
  25. 极简 Tab
  26. .tbx { margin: 10px 0; }
  27. .tbx span { margin-right: 10px; cursor: pointer; }
  28. .tbx .a { padding: 3px 5px; border: solid #999; border-width: 0 1px 1px 0; background: COMMONBGurl(template/cr180_x/images/thead.png) repeat-x 0 -20px; }
  29. .tbx strong { color: NOTICETEXT; }
  30. 类似相册侧边切换页面用的
  31. .obn { border-bottom: 1px solid COMMONBORDER; }
  32. .obn select { width: 100%; margin-bottom: 5px; }

广告

  1. 页头广告 .a_h { padding-top: 5px; }
  2. 二级导航广告 .a_mu { border: solid COMMONBORDER; border-width: 0 1px 1px; background: COMMONBG; }
  3. 页尾广告 .a_f { margin: 5px auto; }
  4. 日志内容广告 .a_b { float: right; margin: 0 0 5px 5px; }
  5. 格子广告 .a_t { margin-bottom: 10px; }
  6. .a_t table { width: 100%; }
  7. .a_t td { padding: 4px 15px; border: 1px solid COMMONBORDER; }
  8. 帖内广告 .a_pr { float: right; overflow: hidden; }
  9. .a_pt, .a_pb { background: url(template/cr180_x/images/ad.gif) no-repeat 0 50%; margin-bottom: 6px; padding-left: 20px; zoom: 1; }
  10. 漂浮广告 .a_fl, .a_fr { float: right; position: fixed; top: 350px; z-index: 100; }
  11. .a_fl { left: 0; }
  12. .a_fr { right: 0; text-align: right; }
  13. * html .a_fl, * html .a_fr { position: absolute; top: expression(offsetParent.scrollTop+350); }
  14. 对联广告 .a_cb { top: 20px }
  15. * html .a_cb { top: expression(offsetParent.scrollTop+20); }
  16. 文章漂浮广告 .a_af { float:left; margin-right: 10px; margin-bottom: 10px; }
  17. 右下角广告 .a_cn { position: fixed; right: 10px; bottom: 10px; z-index: 300; }
  18. * html .a_cn { position: absolute; top: expression(offsetParent.scrollTop+document.documentElement.clientHeight-this.offsetHeight); }
  19. .a_cn .close { text-align: right; }
  20. .a_h, .a_mu, .a_c, .a_p, .a_f, .a_t { text-align: center; }

文本列表

  1. .xl li { margin: 2px 0; }
  2. .xl em { float: right; padding-left: 5px; }
  3. .xl em, .xl em a { color: LIGHTTEXT; }
  4. .xl label, .xl label a { color: #C00; }
  5. .xl1 li { height: 1.5em; overflow: hidden; }
  6. .xl1_elp { float: left; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  7. .xl2 li { float: left; margin: 2px 0; padding: 0; width: 48.6%; height: 1.5em; overflow: hidden; }
  8. .xl ol, ol.xl { background: url(template/cr180_x/images/sortnum.png) no-repeat 0 3px; line-height: 21px; }
  9. .xl ol li, ol.xl li { background: none; padding-left: 20px; }
  10. .xl ol li, ol.xl li { height: 21px; }
  11. .xld dt { padding: 8px 0 5px; font-weight: 700; }
  12. .xld dd { margin-bottom: 8px; }
  13. text with thumbnail image ( must with the additional class .cl )
  14. .xld .m { float: left; margin: 8px 8px 10px 0; }
  15. .xld .atc { float: right; margin-left: 20px; }
  16. .ie8 .xld .atc { max-width: 86px; }
  17. .xld .atc img { padding: 2px; max-width: 80px; max-height: 80px; border: 1px solid #CCC; background: WRAPBG; }
  18. .ie6 .xld .atc img { width: expression(this.width > 80 && this.width>=this.height ? 80 : true); height: expression(this.height > 80 && this.width<=this.height ? 80 : true); }
  19. .xld a.d, .xl a.d, .attc a.d, .c a.d, .sinf a.d { float: right; width: 20px; height: 20px; overflow: hidden; line-height: 100px; background: url(template/cr180_x/images/op.png) no-repeat 0 -2px; }
  20. .attc a.d { float: left; }
  21. .xld a.d:hover, .xl a.d:hover, .attc a.d:hover, .c a.d:hover, .sinf a.d:hover { background-position: 0 -22px; }
  22. .xld a.b { background-position: 0 -40px; }
  23. .xld a.b:hover { background-position: 0 -60px; }
  24. .xlda dl { padding-left: 65px; }
  25. .xlda .m { display: inline; margin: 8px 0 8px -65px; }
  26. .xlda .avt img { display: block; }
  27. .xlda dd img { max-width: 550px; }
  28. * html .xlda dd img { width: expression(this.width > 550 ? 550 : true); }
  29. .xlda dd a { color: HIGHLIGHTLINK; }
  30. .xlda dd .hot { color: NOTICETEXT; }

图片列表

  1. .ml {}
  2. .ml li { float: left; padding: 0 5px 5px; text-align: center; overflow: hidden; }
  3. .ml img { display: block; margin: 0 auto; }
  4. .ml p, .ml span { display: block; width: 100%; height: 20px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  5. .ml span, .ml span a { color: LIGHTTEXT; }
  6. .mls li { padding: 0 0 5px; width: 66px; }
  7. .mls .avt { display: block; margin: 0 auto; width: 54px; }
  8. .mls img { width: 48px; height: 48px; }
  9. .mls p { margin-top: 5px; }
  10. .mlm li { padding: 0 0 5px; width: 150px; }
  11. .mlm img { width: 120px; height: 120px; }
  12. .mla li { width: 140px; height: 224px; }
  13. .mla1 li { height: 150px; }
  14. .mla .c { margin: 0 auto; width: 136px; height: 150px; background: url(template/cr180_x/images/gb.gif) no-repeat 0 0; text-align: left; }
  15. .mla .a { background-position: 0 100%; }
  16. .mla .c a { display: block; padding: 14px 4px 3px 8px; width: 120px; height: 120px; overflow: hidden; }
  17. .mla img { max-width: 120px; max-height: 120px; _width: expression(this.width > 120 && this.width>=this.height ? 120 : true); _height: expression(this.height > 120 && this.width<=this.height ? 120 : true); }
  18. .mlp li { width: 140px; height: 140px; }
  19. .mlp .d { padding: 0 0 5px; width: 150px; height: 180px; }
  20. .mlp img { padding: 2px; max-width: 120px; max-height: 120px; border: 1px solid #CCC; background: WRAPBG; }
  21. * html .mlp img { width: expression(this.width > 120 && this.width>=this.height ? 120 : true); height: expression(this.height > 120 && this.width<=this.height ? 120 : true); }

用户头像列表时,各种状态图标。.gm -> 管理员; .gs -> 明星会员 ; .gol -> 在线会员;

  1. .gm, .gs, .gol { position: absolute; overflow: hidden; margin: -3px 0 0 -3px; width: 60px; height: 18px; background: url(template/cr180_x/images/gst.gif) no-repeat 0 0; display: block; ie6 }
  2. .gs { background-position: 0 -18px; }
  3. .gol { background-position: 0 -36px; }

应用列表

  1. .appl ul { margin: 3px 0; }
  2. .appl li { display: block; height: 28px; line-height: 28px; white-space: nowrap; word-wrap: normal; font-size: 14px; text-overflow: ellipsis; overflow: hidden; }
  3. .appl li a { text-decoration: none !important; }
  4. .appl img { margin: 5px 5px -3px 0; }
  5. .appl span { float: right; font-size: 12px; }
  6. .appl span a { color: LIGHTTEXT; }
  7. .appl span a:hover { color: HIGHLIGHTLINK; }
  8. 应用侧边 by Pony
  9. .myo li { height: auto; line-height: 1.5; }
  10. .myo img { margin-bottom: -1px; }
  11. .myo a { color: HIGHLIGHTLINK; }
  12. 侧边管理列表
  13. .tbn { margin: -6px -10px 0; }
  14. .tbn ul { margin: 0; }
  15. .tbn li { margin: 0 10px; height: 33px; border-bottom: 1px dashed #CCC; }
  16. .tbn li.a { margin: -1px 0 0; padding: 0 10px 0 9px; border-top: 1px solid COMMONBORDER; border-bottom-style: solid; background: WRAPBG; }
  17. .tbn ul a { display: block; height: 33px; line-height: 33px; }
  18. .tbn .mt { padding: 10px; }

道具 magic

  1. .mg_img { padding: 10px; width: 76px; height: 76px; background: url(template/cr180_x/images/magic_imgbg.gif) no-repeat 0 0; }

友情链接

  1. .lk img { float: left; margin-right: 5px; margin-bottom: 5px; width: 88px; height: 31px; }
  2. .lk p { color: MIDTEXT; }
  3. .lk .m li { clear: left; padding: 0 0 10px 98px; }
  4. .lk .m img { display: inline; margin-top: 4px; margin-top\*: 1px\9; margin-left: -98px; }
  5. .lk .x li { float: left; margin-right: 5px; width: 88px; height: 1.5em; overflow: hidden; }
  6. .lk_logo .lk_content { float: left; }

简易编辑器

  1. .tedt { width: 98%; border: 1px solid; border-color: #999 #CCC #CCC #999; }
  2. .tedt .bar { padding: 0 10px 0 0; height: 25px; line-height: 25px; border-bottom: 1px solid COMMONBORDER; background:COMMONBG; }
  3. .fpd a { float: left; margin: 2px 5px 0 0; width: 20px; height: 20px; background: url(static/image/editor/editor.gif) no-repeat; text-indent: -9999px; line-height: 20px; overflow: hidden; }
  4. .fpd a.fbld { background-position: 0 0; }
  5. .fpd a.fclr { background-position: -60px 0; }
  6. .fpd a.fmg { background-position: 0 -20px; }
  7. .fpd a.flnk { background-position: -40px -20px; }
  8. .fpd a.fqt { background-position: -140px -20px; }
  9. .fpd a.fcd { background-position: -120px -20px; }
  10. .fpd a.fsml { background-position: -20px -20px; }
  11. .fpd a.fat { background-position: -140px 0; }
  12. .tedt .area { padding: 4px; background: WRAPBG; zoom: 1; }
  13. .tedt .pt { width: 100%; margin-right: 0; padding: 0 !important; border: none; background: WRAPBG none; }
  14. .tedt .pt:focus { outline: none; -moz-box-shadow: none; }
  15. .m_c .tedt { width: 600px; }

表情

  1. .sllt { padding: 10px 5px 5px !important; }
  2. .sllt td { padding: 8px; border: none; cursor: pointer; }
  3. .sllt_p { *float: left; text-align: right; }
  4. .sllt_p a { margin-right: 5px; color: #069; text-decoration: underline; }
  5. .sl_pv { margin-top: 5px; padding: 8px; background: #FAFAFA; border: 1px solid #CCC; }
  6. .ie6 .slg, .ie7 .slg { width: expression(this.parentNode.offsetWidth); }

风格切换菜单

  1. #toptb a#sslct { width: 10px; background: url(template/cr180_x/images/style_switch.png) no-repeat 50% 50%; text-indent: -9999px; overflow: hidden; }
  2. #sslct_menu { padding: 6px 10px 10px; }
  3. .sslct_btn { float: left; margin: 4px 4px 0 0; width: 12px; height: 12px; border: 1px solid COMMONBORDER; cursor: pointer; }
  4. .sslct_btn i { float: left; display: inline; margin: 1px; width: 10px; height: 10px; background: #2E80D1; overflow: hidden; font-style: normal; }

弹出菜单、弹出层及弹出窗口

  1. .p_pop, .p_pof, .sllt { padding: 4px; border: 1px solid; min-width: 60px; border-color: DROPMENUBORDER;DROPMENUBGCODE; box-shadow: 1px 2px 2px rgba(0,0,0,0.3); }
  2. .ie6 .p_pop { width: 100px; }
  3. .p_pof .p_pop { padding: 0; border: none; box-shadow: none; }
  4. .p_pof { width: 500px; }
  5. .p_opt { padding: 10px; }
  6. .p_pop li { display: inline; }
  7. .p_pop a { display: block; padding: 3px 5px; border-bottom: 1px solid SPECIALBG; white-space: nowrap; }
  8. .p_pop li:last-child a { border: none; }
  9. .ie6 .p_pop a { position: relative; }
  10. .p_pop a:hover, .p_pop a.a, #sctype_menu .sca { background-color: SPECIALBG; color: HIGHLIGHTLINK; text-decoration: none; }
  11. .blk -> block 内容较为复杂的弹出层使用 .blk 的 class,内部的 a 标签重新定义
  12. .blk a, .inlinelist a { display: inline; padding: 0; border: none; }
  13. .blk a:hover { background: none; color: LINK; text-shadow: none; text-decoration: underline; }
  14. .inlinelist { padding: 5px; }
  15. .inlinelist a { float: left; width: 5em; height: 2em; overflow: hidden; text-align: center; line-height: 2em; }
  16. .h_pop { min-width: 120px; border-top: none; }
  17. .txt 和 .textarea 属于旧的命名规范,待整理 by lushnis .p_opt .txt, .p_opt .txtarea { margin: 5px 0; }
  18. .p_pop .flbc, .p_pof .flbc{margin-right: 8px;margin-top: 4px;}
  19. 弹出层 以下 class 都可以分开写,单独定义,以便个性化
  20. 四条边、四个角的公用样式
  21. .t_l, .t_c, .t_r, .m_l, .m_r, .b_l, .b_c, .b_r { overflow: hidden; FLOATMASKBGCODE; opacity: 0.2; filter: alpha(opacity=20); }
  22. 四个角
  23. .t_l, .t_r, .b_l, .b_r { width: 8px; height: 8px; }
  24. 上下两条边
  25. .t_c, .b_c { height: 8px; }
  26. 左右两条边
  27. .m_l, .m_r { width: 8px; }
  28. .t_l { -moz-border-radius: 8px 0 0 0; -webkit-border-radius: 8px 0 0 0; border-radius: 8px 0 0 0; }
  29. .t_r { -moz-border-radius: 0 8px 0 0; -webkit-border-radius: 0 8px 0 0; border-radius: 0 8px 0 0; }
  30. .b_l { -moz-border-radius: 0 0 0 8px; -webkit-border-radius: 0 0 0 8px; border-radius: 0 0 0 8px; }
  31. .b_r { -moz-border-radius: 0 0 8px 0; -webkit-border-radius: 0 0 8px 0; border-radius: 0 0 8px 0; }
  32. .m_c { FLOATBGCODE; }
  33. 弹出层内容区 by Pony
  34. .m_c .tb { margin: 0 0 10px; padding: 0 10px; }
  35. .m_c .c { padding: 0 10px 10px; }
  36. .m_c .o { padding: 8px 10px; height: 26px; text-align: right; border-top: 1px solid #CCC; background: COMMONBG; }
  37. 分享时会用到
  38. .m_c .el { width: 420px; }
  39. .m_c .el li { padding: 0; border: none; }
  40. .flb 弹出层header
  41. .flb { padding: 10px 10px 8px; height: 20px; line-height: 20px; }
  42. .flb em { float: left; font-size: 14px; font-weight: 700; color: HIGHLIGHTLINK; }
  43. .flb em a { text-decoration: none; }
  44. .flb .needverify { float: left; margin-left: 8px; padding-left: 13px; width: 45px; height: 21px; line-height: 21px; background: url(template/cr180_x/images/re_unsolved.gif) no-repeat 0 0; font-size: 12px; color: LIGHTTEXT; font-weight: 400; }
  45. .flb .onerror, .flb .onright { padding-left: 20px; height: auto; line-height: 140%; white-space: nowrap; font-size: 12px; font-weight: 400; }
  46. .flb .onerror { background: url(template/cr180_x/images/check_error.gif) no-repeat 0 50%; }
  47. .flb .onright { background: url(template/cr180_x/images/check_right.gif) no-repeat 0 50%; color: MIDTEXT; }
  48. .flb span { float: right; color: LIGHTTEXT; }
  49. .flb span a, .flb strong { float: left; text-decoration: none; margin-left: 8px; font-weight: 400; color: LINK; }
  50. .flb span a:hover { color: LIGHTTEXT; }
  51. .flbc { float: left; width: 20px; height: 20px; overflow: hidden; text-indent: -9999px; background: url(template/cr180_x/images/cls.gif) no-repeat 0 0; cursor: pointer; }
  52. .flbc:hover { background-position: 0 -20px; }
  53. .floatwrap { overflow: auto; overflow-x: hidden; margin-bottom: 10px; height: 280px; }
  54. .f_c { }
  55. .f_c li { list-style: none; }
  56. .f_c hr.l { margin: 0; }
  57. .f_c a { color: HIGHLIGHTLINK; }
  58. .f_c .list { margin: 0 auto 10px; width: 570px; border-top: 3px solid COMMONBORDER; }
  59. .f_c .list th, .f_c .list td { padding: 5px 2px; height: auto; border-bottom: 1px dashed COMMONBORDER; }
  60. .f_c .list .btns th, .f_c .list .btns td { border-bottom: none; }
  61. .f_c .th th, .f_c .th td { padding: 10px 0; }
  62. .f_c .list th { background: none; }

弹窗未开启时 nofloat

  1. .nfl { height: auto !important; height: 320px; min-height: 320px; }
  2. .nfl .f_c { margin: 60px auto; padding: 20px; width: 580px; border: 3px solid COMMONBG; background: WRAPBG; }
  3. .nfl .loginform { height: auto; }
  4. .nfl .clause { width: auto; height: auto; }

下拉菜单

  1. .hasd {}
  2. .hasd input { float: left; width: 121px; }
  3. .hasd input.crl { padding: 0; width: 20px; height: 20px; background: none; border-style: solid; border-color:INPUTBORDERDARKCOLOR INPUTBORDER INPUTBORDER INPUTBORDERDARKCOLOR; border-width: 1px 0 1px 1px; }
  4. .hasd .spmediuminput { width: 115px; }
  5. .dpbtn { float: left; overflow: hidden; text-indent: -9999px; width: 21px; height: 21px; border-width: 1px 1px 1px 0; border-style: solid; border-color: INPUTBORDERDARKCOLOR INPUTBORDER INPUTBORDER INPUTBORDERDARKCOLOR; background:WRAPBG url(template/cr180_x/images/newarow.gif) no-repeat 100% 0; }
  6. .dpbtn:hover { background-position: 100% -23px; }
  7. .hasd label { float: left; }
  8. .tpclg h4 a.dpbtn { float: right; border-width: 1px; }
  9. .tpclg h4 { font-weight: 400; }
  10. .tpclg .pt { margin: 5px 0; width: 212px; overflow: hidden; }
  11. 下面两行为评分时用到的
  12. .mark .dt, .mark .tpclg h4 { width: 270px; }
  13. .mark .tpclg .pt { width: 260px; }
  14. #postbox dd.hasd input { width: 99px; margin-right: 0; }

弹窗 编辑器 颜色框 colorbox

  1. .colorbox{ width: 130px !important; }
  2. .colorbox input { float: left; margin: 2px; padding: 0; width: 12px; height: 12px; border: 0; cursor: pointer; }

短消息对话框 .pm -> personal_message (window)

  1. .pm { overflow: hidden; width: 400px; }
  2. .pm .flb { margin-bottom: 0; padding: 1px 5px 4px; background: #CCC url(template/cr180_x/images/pm.png) repeat-x 0 -101px; }
  3. * html .pm .flb { padding: 4px 5px 1px; }
  4. .pm .flb em { padding-left: 15px; background: url(template/cr180_x/images/pm.png) no-repeat 0 -65px; text-shadow: 1px 1px 1px WRAPBG; color: LINK; font-size: 12px; }
  5. .pm .flbc { background-image: url(template/cr180_x/images/pm.png); }
  6. .pm_tac { padding: 5px 10px; background: COMMONBG; }
  7. .pm .c { padding: 0; background: COMMONBG; }
  8. .pmb { position: relative; padding: 20px 20px 0; width: 360px; height: 280px; overflow: auto; overflow-x: hidden; }
  9. .pmb li { position: relative; margin-bottom: 10px; }
  10. .pmt { overflow: hidden; position: absolute; bottom: 0; left: -6px; text-indent: -999px; width: 7px; height: 7px; background: url(template/cr180_x/images/pm.png) no-repeat -13px -40px; zoom: 1; }
  11. .pmd { float: left; padding: 5px 8px; background: #F0F0F0 url(template/cr180_x/images/pm-bg1.png) repeat-x; border: 1px solid; border-color: #E7E7E7 #BBB #999 #E7E7E7; word-wrap: break-word; -moz-box-shadow: 2px 2px 4px #DDD; -webkit-box-shadow: 2px 2px 4px #DDD; box-shadow: 2px 2px 4px #DDD; -moz-border-radius: 10px 10px 10px 0; -webkit-border-radius: 10px 10px 10px 0; border-radius: 10px 10px 10px 0; }
  12. .pmd, .pmd img { max-width: 292px; }
  13. * html .pmd { width: expression(this.offsetWidth > 292 ? 292+'px':'auto'); }
  14. * html .pmd img { width: expression(this.width > 292 ? 292 : true); }
  15. 短消息下的引用和代码样式
  16. .pmd .quote { overflow: hidden; margin: 0; padding-left: 16px; background: url(template/cr180_x/images/qa.gif) no-repeat 0 0; color: MIDTEXT; }
  17. .pmd .quote blockquote { display: inline; margin: 0; padding-right: 16px; background: url(template/cr180_x/images/qz.gif) no-repeat 100% 100%; }
  18. .pmd .blockcode { overflow: hidden; margin: 0; padding: 0; background: transparent; color: MIDTEXT; }
  19. .pmd .blockcode code { font-family: Monaco, Consolas, "Lucida Console", "Courier New", serif; font-size: 12px; line-height: 1.8em; }
  20. * html .pmd .blockcode code { font-family: "Courier New", serif; }
  21. .pmm .pmt { right: -6px; left: auto; background-position: 0 -47px; }
  22. .pmm .pmd { float: right; background: #FEF5E7 url(template/cr180_x/images/pm-bg2.png) repeat-x; border-color: #FFC68C #F9D4A7 #F3BB65 #DDC4A9; -moz-box-shadow: -2px 2px 4px #DDD; -webkit-box-shadow: -2px 2px 4px #DDD; box-shadow: -2px 2px 4px #DDD; -moz-border-radius: 10px 10px 0 10px; -webkit-border-radius: 10px 10px 0 10px; border-radius: 10px 10px 0 10px; }
  23. .pmb h4 { text-align: center; }
  24. .pmfm { padding: 0 15px 15px; }
  25. .pmfm .tedt { width: 365px; }
  26. .pmfm .pt { height: 65px; }
  27. .pmfm .pn { float: right; }
  28. .pma a { margin-right: 5px; }

短消息联系人列表

  1. .pmo { position: absolute; top: 8px; right: 10px; overflow: hidden; padding-left: 10px; width: 130px; height: 31px; line-height: 24px; line-height \*: 26px\9; background: url(template/cr180_x/images/pn.png) repeat-x 0 -320px; text-shadow: 1px 1px 1pxWRAPBG; }
  2. .pmo em { display: block; padding: 3px 5px 4px 0; background: url(template/cr180_x/images/pn.png) no-repeat 100% -360px; }
  3. .pmo a { overflow: hidden; white-space: nowrap; display: block; padding-right: 10px; background: url(template/cr180_x/images/pm.png) no-repeat 100% -222px; outline: none; }
  4. .pmo .b { background-position: 100% -278px; }
  5. .pmfl -> pm_friend_list (Window)
  6. .pmfl { position: absolute; top: 35px; right: 10px; z-index: 200; width: 138px; border: solid #CCC; border-width: 0 1px 1px; background: WRAPBG; }
  7. .pmfl .s, .pmfl .o { padding: 5px; border-bottom: 1px solid #CCC; background: COMMONBG; }
  8. .pmfl .o { border-bottom-color: WRAPBG; }
  9. .pmfl .s .px { padding-left: 20px; width: 101px; background: WRAPBG url(template/cr180_x/images/pm.png) no-repeat 0 -160px; }
  10. .pmfl .o .ps { width: 100%; }
  11. .pmfl ul { overflow: auto; overflow-x: hidden; width: 138px; height: 306px; }
  12. .pmfl li { padding: 5px; height: 24px; }
  13. .pmfl .avt { float: left; width: 29px; height: 29px; }
  14. .pmfl .avt img { padding: 0; width: 24px; height: 24px; border: none; }
  15. 跳动的头像样式 by Pony
  16. .pmfl .newpm img { margin: 1px 0 0 1px; }
  17. .pmfl p { overflow: hidden; white-space: nowrap; width: 78px; }
  18. 当前交谈的用户
  19. .pmfl p .a { color: red; }
  20. 在线的用户
  21. .pmfl p .ol { color: LINK; }
  22. .pmfl strong { color: #000; }

登录和注册

  1. .rfm { margin: 0 auto; width: 760px; border-bottom: 1px dotted COMMONBORDER; }
  2. .rfm a { color: HIGHLIGHTLINK; }
  3. .rfm .rq {}
  4. .rfm th, .rfm td { padding: 10px 2px; vertical-align: top; line-height: 24px; }
  5. .rfm .tipwide { padding-top: 0; }
  6. .rfm th { padding-right: 10px; width: 10em; text-align: right; }
  7. .rfm .px { width: 220px; }
  8. .rfm .px:focus { border-color: HIGHLIGHTLINK; background: #FFF; }
  9. .rfm .p_tip { position: absolute; z-index: 2; display: none; padding-left: 10px; width: 390px; background: WRAPBG; color:MIDTEXT; font-style: normal; }
  10. .rfm .p_chk { position: absolute; z-index: 1; padding-left: 10px; width: 390px; color: red; font-weight: 700; font-family: FONT; }
  11. .rfm #emailmore { position: absolute; }
  12. .p_right { background: url(template/cr180_x/images/check_right.gif) no-repeat 10px 12px; width: 30px; }
  13. #returnmessage4 { display: none; padding: 10px 0; border-bottom: 1px solid COMMONBORDER; background: #FFE; text-align: center; font-weight: 700; }
  14. #returnmessage4.onerror { display: block; }
  15. .rfm .l { margin: 0; }
  16. .blr .c { padding: 0 10px 10px; }
  17. .login_slct a { margin-right: -8px; padding-right: 16px; background: url(template/cr180_x/images/arrwd.gif) no-repeat 100% 50%; }
  18. .fwin .rfm, .nfl .f_c .rfm { width: 500px; }
  19. .fwin .rfm th, .fwin .rfm td, .nfl .f_c .rfm th, .nfl .f_c .rfm td { padding: 6px 2px; }
  20. .fwin .loginb button { margin-left: 11.3em; }
  21. .nfl .f_c .loginb button { margin-left: 12em; }

密码强度检测

  1. .passlevel { padding-left: 70px; background: url(template/cr180_x/images/passlevel.png) no-repeat 0 5px; }
  2. .passlevel1 { background-position: 0 -35px; }
  3. .passlevel2 { background-position: 0 -75px; }
  4. .passlevel3 { background-position: 0 -115px; }

自定义的注册信息

  1. .m_c .blr { margin: 0 auto; }
  2. .lgfm { font: FONTSIZE FONT; float: left; margin-bottom: 10px; *margin-bottom: -10px; padding: 20px 0; width: 280px; border-right: 1px solid #CCC; }
  3. .rgs { margin-bottom: 10px; }
  4. .lgfm label, .lgfm p, .reginfo { clear: both; overflow: hidden; display: block; margin-bottom: 10px; line-height: 22px; }
  5. .reginfo label { display: inline; }
  6. .reg_c { float: left; width: 200px; }
  7. .lgfm .txt, .lgfm .px { padding: 2px 4px; height: 16px; border: 1px solid; border-color: INPUTBORDERDARKCOLORINPUTBORDER INPUTBORDER INPUTBORDERDARKCOLOR; background-image: none; }
  8. .lgfm .txt, .lgfm .px, .lgfm .pt { width: 170px; }
  9. .lgfm .ftid a, .lgfm .ftid a:hover { height: 20px; background-position: 100% -1px; border-color: INPUTBORDERDARKCOLORINPUTBORDER INPUTBORDER INPUTBORDERDARKCOLOR; }
  10. .fsb { clear: both; margin-top: 8px; padding: 10px; }
  11. .fsb .z { padding-top: 5px; }
  12. .m_c .fsb { background: COMMONBG; border-top: 1px solid #CCC; }
  13. .fsb .pns { margin-right: 8px; }
  14. .lgfm em, .fsb em { float: left; width: 60px; }
  15. .fsb .pnr { *margin-top: 4px; }
  16. .nlf .txt{ width: 230px; }
  17. .brls { overflow: auto; margin-bottom: 10px; width: 470px; height: 240px; }
  18. .sipt { float: none; margin: 0 0 10px; width: 234px; height: 20px; background-color: WRAPBG; border: 1px solid; border-color:INPUTBORDERDARKCOLOR INPUTBORDER INPUTBORDER INPUTBORDERDARKCOLOR; clear: left; }
  19. .sipt a { float: left; width: 54px; border: none; }
  20. .sipt a:hover, .sipt a:focus { border: none; }
  21. .sipt .txt { float: left; width: 154px; border: none; outline: none; background: WRAPBG; }
  22. .sltp { float: none; margin: 10px 0; clear: both; }
  23. .sltp a, .sltp a:hover, .sltp a:focus { height: 20px; line-height: 20px; border-color: #EEE; background-color: transparent; background-position: 100% -1px; color: #069 !important; }
  24. .sltp a:hover, .sltp a:focus { background-position: 100% -24px; }
  25. .lpsw label { float: left; padding-left: 4px; width: 61px; line-height: 150%; }
  26. .clck, .sipt .clck { background: WRAPBG url(template/cr180_x/images/clck.gif) no-repeat 98% 50%; }
  27. .lgf { float: left; overflow: visible; margin: 47px 25px 10px 40px; }
  28. .lgf h4 { margin-bottom: 10px; font-weight: 400; font-size: 14px; }
  29. .lgf a { color: HIGHLIGHTLINK; }
  30. .minf { margin-top: 23px; }

showmessage 处的登录框

  1. #messagelogin { margin-top: 5px; border-top: 1px solid COMMONBORDER; }
  2. #messagelogin .flb { padding-left: 0; }
  3. #messagelogin .blr { margin: 0; }
  4. #messagelogin .lgfm { padding-top: 0; }
  5. #messagelogin .minf { margin-top: 0; }
  6. #messagelogin .fsb { padding: 0; }

页面头部的快速登录

  1. .fastlg { line-height: 24px; }
  2. .fastlg td { padding: 2px 0 2px 4px; }
  3. .fastlg_fm { margin-right: 5px; padding-right: 5px; border-right: 1px solid COMMONBORDER; }
  4. #ls_fastloginfield_ctrl { line-height: 20px; border: none; background-color: transparent; background-position: 100% -1px; }
  5. #ls_fastloginfield_ctrl:hover { background-position: 100% -24px; }
  6. .psw_w { padding-left: 5px; }
  7. .fastlg_l { padding-right: 4px !important; border-right: 1px solid SPECIALBG; }

打招呼

  1. .poke { margin-bottom: 10px; }
  2. .poke li { float: left; margin: 0 1% 5px 0; width: 32%; height: 22px; }
  3. .poke img { vertical-align: middle; }

普通数据列表

  1. .dt { border-top: 1px solid COMMONBORDER; width: 100%; }
  2. .dt th { background: COMMONBG; }
  3. .dt td, .dt th { padding: 7px 4px; border-bottom: 1px solid COMMONBORDER; }
  4. .dt .c { width: 50px; }

用来展示数据的表格

  1. .tdat { width: 100%; border: 1px solid COMMONBORDER; }
  2. .tdat th, .tdat td { padding: 4px 5px; border: 1px solid COMMONBORDER; }
  3. == um 公告 帮助 message 通用列表 lum -- um list ==
  4. .um { margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px dashed COMMONBORDER; clear: left; }
  5. .umh { margin-bottom: 10px; overflow: hidden; }
  6. .umh h2, .umh h3 { clear: left; font-size: 14px; float: left; background: WRAPBG url(template/cr180_x/images/arrow.gif) no-repeat right 6px; padding-right: 14px; cursor: pointer; }
  7. .schfaq h3 { background: none; cursor: default; }
  8. .umh h3 a { color: MIDTEXT; }
  9. .umh h3 span { font-size: 12px; font-weight: 400; color: MIDTEXT; }
  10. .umh h2 em, .umh h3 em { margin-left: 8px; font-size: 12px; color: LIGHTTEXT; font-weight: 400; }
  11. .umh_act { float: right; }
  12. .umh .umh_cb { display: none; }
  13. .umh .umh_ext { display: block; }
  14. .umn { background: url(template/cr180_x/images/dash.gif) repeat-x 0 10px; clear: left; }
  15. .umn h3 { background: WRAPBG url(template/cr180_x/images/arrow.gif) no-repeat right -35px; font-size: 14px; }
  16. .umn .umh_cb { display: block; background-color: WRAPBG; color: MIDTEXT; cursor: pointer; }
  17. .umn .umh_ext { display :none; }
  18. .lum {}
  19. .lum h2 { font-size: 14px; }
  20. .lum ul { padding: 1em 0 1em 2em; margin-bottom: 1em; border-bottom: 1px dashed COMMONBORDER; }
  21. .lum ul li { padding: 0.2em 0; }

分页 发帖按钮 返回首页 下一页

  1. .pgs {}
  2. .pgs #newspecial, .pgs #newspecialtmp, .pgs #post_reply, .pgs #post_replytmp { float: left; margin-right: 5px; }
  3. .pg { float: right; }
  4. .pg, .pgb { line-height: 26px; }
  5. .pg a, .pg strong, .pgb a, .pg label { float: left; display: inline; margin-left: 4px; padding: 0 8px; height: 26px; border: 1px solid; border-color: SPECIALBORDER; background-color: WRAPBG; background-repeat: no-repeat; color: LINK; overflow: hidden; text-decoration: none; }
  6. .pg a.nxt, .pgb a { padding: 0 10px; }
  7. .pg a:hover, .pgb a:hover { border-color: HIGHLIGHTLINK; color: HIGHLIGHTLINK; }
  8. .pg a.nxt { padding-right: 25px; background-image: url(template/cr180_x/images/arw_r.gif); background-position: 90% 50%; }
  9. .pg a.prev { background-image: url(template/cr180_x/images/arw_l.gif); background-position: 50% 50%; }
  10. .pg strong { background-color: SPECIALBG; }
  11. .pgb a { padding-left: 25px; background-image: url(template/cr180_x/images/arw_l.gif); background-position: 10px 50%; }
  12. .pg label { cursor: text; }
  13. .ie6 .pg label { padding-top: 3px; height: 23px; }
  14. .pg label .px { padding: 0; width: 25px; height: 16px; line-height: 16px; }
  15. #pgt .pg, #pgt .pgb { margin-top: 5px; }

用于行动的按钮

  1. .bac {margin: 0; padding: 0; width: 70px; height: 30px;line-height: 30px; color: LINK; overflow: hidden; text-decoration: none; background: url(template/cr180_x/images/pg_arw.png) no-repeat 0 0; text-align: center; text-indent: -7px; display: block;}
  2. #psd .bn .mbn input, #postbox input { margin-right: 4px; }
  3. #postbox .mbn, #psd .mbn { height: 1.6em; line-height: 1.6em; }

用于积分奖励提示等弹出层提示

  1. .popupcredit {}
  2. .pc_l, .pc_c, .pc_inner, .pc_r { width: 29px; height: 56px; line-height: 56px; background: url(template/cr180_x/images/popupcredit_bg.gif) no-repeat 0 0; }
  3. .pc_c { width: 200px; background-position: 0 -56px; background-repeat: repeat-x; }
  4. .pc_inner { white-space: nowrap; text-align: center; width: auto; background-position: 50% -112px; }
  5. .pc_inner i { margin-right: 10px; font-size: 12px; font-style: normal; color: LIGHTLINK; font-weight: 400; }
  6. .pc_inner span { margin-right: 15px; color: #FFEA97; font-size: 14px; font-weight: 700; }
  7. * html .pc_inner span { display: inline-block; }
  8. .pc_inner span a { color: #FFEA97; text-decoration: underline; }
  9. .pc_inner span em { color: LIGHTLINK; font-size: 18px; font-weight: 400; }
  10. .pc_inner span u { font-size: 10px; text-decoration: none; }
  11. .pc_inner span em.desc { color: #930; }
  12. .pc_btn img { opacity: 0.5; }
  13. .pc_btn:hover img { opacity: 1; }
  14. .pc_r { background-position: -30px 0; }

快速跳转菜单

  1. #fjump_menu { padding: 7px 0 10px 10px; background: COMMONBG; }
  2. .ie6 #fjump_menu { width: expression(this.getElementsByTagName('li')[2] ? '600px' : (this.getElementsByTagName('li')[1] ? '400px' : '200px')); }
  3. #fjump_menu .sch { position: absolute; top: 6px; right: 10px; }
  4. .jump_bdl { overflow: hidden; }
  5. .jump_bdl li { float: left; overflow-x: hidden; overflow-y: auto; margin-right: 10px; padding: 5px; width: 178px; height: 300px; border: 1px solid WRAPBORDERCOLOR; background: WRAPBG; }
  6. .bdl_title li { float: left; margin-right: 9px; padding: 0 1px; width: 189px; height: 33px; line-height: 23px; font-weight: 700; }
  7. .bdl_title .px { width: 80px; }
  8. .jump_bdl p { overflow: hidden; height: 25px; line-height: 25px; }
  9. .jump_bdl .sub { text-indent: 1em; }
  10. .jump_bdl .child { text-indent: 2em; }
  11. .jump_bdl a { display: block; position: static !important; padding: 0 4px; text-decoration: none; color: TABLETEXT; }
  12. .jump_bdl .a a, .jump_bdl .a a:hover { background-color: SPECIALBG; }

可用道具列表 - 高亮道具用到的

  1. .mgcmn { width: 100px; }
  2. .mgcmn a { padding-left: 25px; line-height: 16px !important; }
  3. .mgcmn img { position: absolute; margin-left: -20px; }
  4. .cmen { overflow: hidden; width: 63px; }
  5. .cmen a { overflow: hidden; float:left; width: 20px; height: 20px; }

热点:站长推荐内容,在页面右下角弹出

  1. .focus { position: fixed; right: 10px; bottom: 0; z-index: 300; overflow: hidden; width: 270px; background: WRAPBG; }
  2. * html .focus { position: absolute; top: expression(offsetParent.scrollTop+document.documentElement.clientHeight-this.offsetHeight); }
  3. .fctrl { margin-left: 10px; font-weight: 400; }
  4. .fctrl img { margin-bottom: -4px; }
  5. .fctrl em { display: inline-block; }
  6. .focus .m img { width: 60px; height: 60px; }
  7. .focus dt { padding-top: 0; }

分享的验证码(全局)

  1. .m_c .sec .secq { display: block; margin: 5px 0 10px; }

类似评分窗口中的评分原因选择的样式

  1. .reason_slct {}
  2. .reason_slct .reasonselect { height: 4.3em; overflow: scroll !important; overflow-x: auto !important; }
  3. .reason_slct .reasonselect li { white-space: nowrap; }
  4. .reason_slct .pt, .reason_slct .px { width: 25.2em !important; }
  5. .reasonarea { height: 5.8em; }

模拟注意不要让 button 太宽

  1. .filebtn { position: relative; margin: 0 auto; width: 60px; overflow: hidden; }
  2. .filebtn .pf { position: absolute; right: 0; height: 23px; opacity: 0; filter:alpha(opacity=0); }

上传弹出层

  1. .upfile { width: 220px; }
  2. .uploadform { padding: 0 10px; border: 1px dashed COMMONBORDER; background: COMMONBG; }

Flash 上传时的处理界面,结构参见 /static/js/fileprogress.js

  1. .progressWrapper { overflow: hidden; width: 100%; }
  2. .progressContainer { overflow: hidden; margin: 5px; padding: 4px; border: solid 1px #E8E8E8; background-color: #F7F7F7; }
  3. .message { overflow: hidden; margin: 1em 0; padding: 10px 20px; border: solid 1px #FD9; background-color: #FFC; } Message
  4. .red { border: solid 1px #B50000; background-color: #FFEBEB; } Error
  5. .green { border: solid 1px #DDF0DD; background-color: #EBFFEB; } Current
  6. .blue { border: solid 1px #CEE2F2; background-color: #F0F5FF; } Complete
  7. .progressName { overflow: hidden; white-space: nowrap; width: 323px; height: 18px; text-align: left; font-weight: 700; color: #555; }
  8. .progressBarInProgress, .progressBarComplete, .progressBarError { clear: both; margin-top: 2px; width: 0; height: 2px; background-color: blue; font-size: 0; }
  9. .progressBarComplete { visibility: hidden; width: 100%; background-color: green; }
  10. .progressBarError { visibility: hidden; width: 100%; background-color: red; }
  11. .progressBarStatus { white-space: nowrap; margin-top: 2px; width: 337px; text-align: left; }
  12. a.progressCancel { display: block; float: right; width: 14px; height: 14px; background: url(template/cr180_x/images/cancelbutton.gif) no-repeat -14px 0; font-size: 0; }
  13. a.progressCancel:hover { background-position: 0 0; }
  14. .swfupload { vertical-align: top; }

拖拽及页面 DIY

  1. .title { padding: 0 10px; height: 32px; font-size: 14px; font-weight: 700; line-height: 32px; overflow: hidden; }
  2. .frame-title, .frametitle, .tab-title { background: COMMONBG url(template/cr180_x/images/title.png) repeat-x 0 100%; }
  3. 新的框架结构
  4. .frame-1-1-l, .frame-1-1-1-l, .frame-1-1-1-c, .frame-2-1-l, .frame-1-2-l, .frame-3-1-l, .frame-1-3-l { float: left; }
  5. .frame-1-1-r, .frame-1-1-1-r, .frame-2-1-r, .frame-1-2-r, .frame-3-1-r, .frame-1-3-r { float: right; }
  6. .frame-1-1-l, .frame-1-1-r { width: 49.9% }
  7. .frame-1-1-1-l, .frame-1-1-1-c, .frame-1-1-1-r, .frame-2-1-r, .frame-1-2-l { width: 33.3%; }
  8. .frame-2-1-l, .frame-1-2-r { width: 66.6%; }
  9. .frame-3-1-l, .frame-1-3-r { width: 74.9%; }
  10. .frame-3-1-r, .frame-1-3-l { width: 24.9%; }
  11. End
  12. X1 之前的框架结构
  13. .frame .mn { margin-bottom: 0; }
  14. .frame .sd { min-height: 0; _height: auto; }
  15. .frame-1-1 .col-r { float: right; width: 49.9%; }
  16. .frame-1-1 .col-l { float: left; width: 49.9%; }
  17. .frame-1-2 .mn, .frame-1-2 .col-r, .frame .frame-1-2 .mn, .frame .frame-1-2 .col-r { float: right; width: 66.6%; }
  18. .frame-1-2 .sd, .frame-1-2 .col-l, .frame .frame-1-2 .sd, .frame .frame-1-2 .col-l { float: left; width: 33.3%; }
  19. .frame-2-1 .mn, .frame-2-1 .col-l, .frame .frame-2-1 .mn, .frame .frame-2-1 .col-l { float: left; width: 66.6%; }
  20. .frame-2-1 .sd, .frame-2-1 .col-r, .frame .frame-2-1 .sd, .frame .frame-2-1 .col-r { float: right; width: 33.3%; }
  21. .frame-1-3 .mn, .frame-1-3 .col-r, .frame .frame-1-3 .mn, .frame .frame-1-3 .col-r { float: right; width: 74.9%;}
  22. .frame-1-3 .sd, .frame-1-3 .col-l, .frame .frame-1-3 .sd, .frame .frame-1-3 .col-l { float: left; width: 24.9%;}
  23. .frame-3-1 .mn, .frame-3-1 .col-l, .frame .frame-3-1 .mn, .frame .frame-3-1 .col-l { float: left; width: 74.9%;}
  24. .frame-3-1 .sd, .frame-3-1 .col-r, .frame .frame-3-1 .sd, .frame .frame-3-1 .col-r { float: right; width: 24.9%}
  25. .frame-1-1-1 .col-l { float: left; width: 33.3%; }
  26. .frame-1-1-1 .col-c { float: left; width: 33.3%; }
  27. .frame-1-1-1 .col-r { float: right; width: 33.3%; }
  28. .frame .frame-1-1-1 .col-l, .frame .frame-1-1-1 .col-c, .frame .frame-1-1-1 .col-r { padding: 0; width: 33%; }
  29. .frame .frame-1-1 .col-l, .frame .frame-1-1 .col-r { width: 49.9%; }
  30. End
  31. .frame .title .titletext, .block .title .titletext{ float: left; }
  32. .frame-tab .tab-title .titletext { float: left; margin: 0 10px; }
  33. .tab-title { padding: 0; width: 100% !important; border: none; }
  34. .frame-tab .tb { margin-top: 0; padding-left: 15px; line-height: 32px; border: none; }
  35. .frame-tab .tb li { margin: 0; margin-left: -1px; font-weight: 400; }
  36. .frame-tab .tb li, .frame-tab .tb li a { -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; border-top: none; background: transparent none; }
  37. * html .frame-tab .tb li a { float: left; }
  38. .frame-tab .tb .a a { background: #FFF; font-weight: 700; }
  39. .frame-tab .tb-c { padding: 10px 16px; }
  40. .block { margin: 10px 10px 0; }
  41. .frame-1-2 .sd .block, .col-l .block, .frame-2-1 .mn .block, .frame-1-1-1 .col-c .block, .frame-1-3 .sd .block, .frame-3-1 .mn .block { margin-right: 10px; }
  42. .frame-1-2 .mn .block, .col-r .block, .frame-2-1 .sd .block, .frame-1-1-1 .col-c .block, .frame-1-3 .mn .block, .frame-3-1 .sd .block { margin-left: 10px; }
  43. body#space .block { margin: 0 5px 10px; }
  44. .temp {margin:1px;}
  45. 重定义 frame
  46. #ct .frame { margin: 0; border: none; }
  47. .bx { border: none; }
  48. .bx .frame-1-1-1 { background: transparent url(template/cr180_x/images/vline2.png) repeat-y 320px 0; }
  49. .bx .frame-2-1 { background: transparent url(template/cr180_x/images/vline.png) repeat-y 645px 0; }
  50. 拖动生成的页面元素 by lushnis
  51. .drag .block .title { margin-bottom: 0; padding-left: 0; font-size: 14px; font-weight: 700; }
  52. 重定义 block
  53. #ct .sd .block { margin: 0; }
  54. .block .xl1 ul li { padding-left: 10px; background: url(template/cr180_x/images/dot.gif) no-repeat 0 50%; }
  55. .ie_all .block .xl1 ul li { background-position: 0 6px; }
  56. Frame stylies by lushnis
  57. .xfs { border-top: none; }
  58. .xfs .frame-title, .xfs .frametitle, .xfs .tab-title { border: none; background: transparent url(template/cr180_x/images/mu.png) repeat-x 0 0; }
  59. .xfs .frame-title, .xfs .frametitle, .xfs .tab-title, .xfs .frame-title a, .xfs .frametitle a, .xfs .tab-title a { color: #FFF !important; }
  60. .xfs .tb li a { height: 32px; border: none !important; }
  61. .xfs .tb .a a { background: transparent url(template/cr180_x/images/mu.png) no-repeat 50% -165px; }
  62. .xfs_1 { border-color: #2267B5; }
  63. .xfs_1 .frame-title, .xfs_1 .frametitle, .xfs_1 .tab-title { background-color: #2267B5; background-position: 0 0; }
  64. .xfs_1 .tb .a a { background-position: 50% -66px; }
  65. .xfs_2 { border-color: #A90000; }
  66. .xfs_2 .frame-title, .xfs_2 .frametitle, .xfs_2 .tab-title { background-color: #A90000; background-position: 0 -99px; }
  67. .xfs_2 .tb .a a { background-position: 50% -165px; }
  68. .xfs_3 { border-color: #006C6C; }
  69. .xfs_3 .frame-title, .xfs_3 .frametitle, .xfs_3 .tab-title { background-color: #006C6C; background-position: 0 -198px; }
  70. .xfs_3 .tb .a a { background-position: 50% -264px; }
  71. .xfs_4 { border-color: #EC5A00; }
  72. .xfs_4 .frame-title, .xfs_4 .frametitle, .xfs_4 .tab-title { background-color: #EC5A00; background-position: 0 -297px; }
  73. .xfs_4 .tb .a a { background-position: 50% -363px; }
  74. .xfs_5 { border-color: #6F099E; }
  75. .xfs_5 .frame-title, .xfs_5 .frametitle, .xfs_5 .tab-title { background-color: #6F099E; background-position: 0 -396px; }
  76. .xfs_5 .tb .a a { background-position: 50% -462px; }
  77. .xfs_nbd { border: none; }
  78. .xfs_nbd .block { margin-top: 0; margin-bottom: 10px; }
  79. .xfs_nbd .col-l .block, .xfs_nbd .frame-1-1-l .block, .xfs_nbd .frame-2-1-l .block, .xfs_nbd .frame-1-2-l .block, .xfs_nbd .frame-3-1-l .block, .xfs_nbd .frame-1-3-l .block, .xfs_nbd .frame-1-1-1-l .block { margin-left: 0; }
  80. .xfs_nbd .sd .block, .xfs_nbd .col-r .block, .xfs_nbd .frame-1-1-r .block, .xfs_nbd .frame-2-1-r .block, .xfs_nbd .frame-1-2-r .block, .xfs_nbd .frame-3-1-r .block, .xfs_nbd .frame-1-3-r .block, .xfs_nbd .frame-1-1-1-r .block { margin-right: 0; }
  81. Block stylies by lushnis
  82. .xbs { background: no-repeat 0 100%; }
  83. .xbs .title { padding-left: 0; padding-right: 10px; background: no-repeat 100% 0; }
  84. .xbs .titletext { float: left; padding-left: 10px; background: no-repeat 0 0; }
  85. .xbs .dxb_bc { padding-bottom: 6px; background: transparent no-repeat 100% 100%; }
  86. .xbs .module, .xbs .portal_block_summary { padding: 10px 10px 4px; border-style: solid; border-width: 0 1px; }
  87. .xbs_1 { border: 1px solid #CCC; }
  88. .xbs_1 .title { padding: 0 10px; height: 31px; border-bottom: 1px solid #CCC; background: url(template/cr180_x/images/thead.png) repeat-x 0 0; line-height: 31px; }
  89. .xbs_1 .title, .xbs_1 .title a { color: #666 !important; }
  90. .xbs_1 .dxb_bc { padding: 9px 10px; }
  91. .xbs_2 { background-image: url(static/image/diy/bs_2_ft.png); }
  92. .xbs_2 .title, .xbs_2 .titletext { background-image: url(static/image/diy/bs_2_hd.png); }
  93. .xbs_2 .title, .xbs_2 .title a { color: #F60 !important; }
  94. .xbs_2 .dxb_bc { background-image: url(static/image/diy/bs_2_ft_r.png); }
  95. .xbs_2 .module, .xbs_2 .portal_block_summary { border-color: #E0E0E0; }
  96. .xbs_3 { background-image: url(static/image/diy/bs_3_ft.png); }
  97. .xbs_3 .title, .xbs_3 .titletext { background-image: url(static/image/diy/bs_3_hd.png); }
  98. .xbs_3 .title, .xbs_3 .title a { color: #FFF !important; }
  99. .xbs_3 .dxb_bc { background-image: url(static/image/diy/bs_3_ft_r.png); }
  100. .xbs_3 .module, .xbs_3 .portal_block_summary { border-color: #B2B2B2; background-color: #F1F1F1; }
  101. .xbs_4 { background-image: url(static/image/diy/bs_4_ft.png); }
  102. .xbs_4 .title, .xbs_4 .titletext { background-image: url(static/image/diy/bs_4_hd.png); }
  103. .xbs_4 .title, .xbs_4 .title a { color: #FFF !important; }
  104. .xbs_4 .dxb_bc { background-image: url(static/image/diy/bs_4_ft_r.png); }
  105. .xbs_4 .module, .xbs_4 .portal_block_summary { border-color: #B2B2B2; }
  106. .xbs_5 { background-image: url(static/image/diy/bs_5_ft.png); }
  107. .xbs_5 .title { padding: 0 10px; height: 30px; border: 1px solid; border-color: #F08C3B #F08C3B #DDD; background: url(static/image/diy/bs_5_hd.png) repeat-x 0 0; line-height: 30px; }
  108. .xbs_5 .title, .xbs_5 .title a { color: #BC4A2D !important; }
  109. .xbs_5 .dxb_bc { padding-bottom: 10px; background-image: url(static/image/diy/bs_5_ft_r.png); }
  110. .xbs_5 .module, .xbs_5 .portal_block_summary { padding: 10px 10px 0; border-color: #F08C3B; }
  111. .xbs_6 { background-image: url(static/image/diy/bs_6_ft.png); }
  112. .xbs_6 .title, .xbs_6 .titletext { background-image: url(static/image/diy/bs_6_hd.png); line-height: 24px; }
  113. .xbs_6 .titletext { height: 32px; }
  114. .xbs_6 .title, .xbs_6 .title a { color: #FFF !important; }
  115. .xbs_6 .dxb_bc { background-image: url(static/image/diy/bs_6_ft_r.png); }
  116. .xbs_6 .module, .xbs_6 .portal_block_summary { border-color: #4B85A0; }
  117. .xbs_7 { background-image: url(static/image/diy/bs_7_ft.png); }
  118. .xbs_7 .title, .xbs_7 .titletext { background-image: url(static/image/diy/bs_7_hd.png); }
  119. .xbs_7 .title, .xbs_7 .title a { color: #444 !important; }
  120. .xbs_7 .dxb_bc { background-image: url(static/image/diy/bs_7_ft_r.png); }
  121. .xbs_7 .module, .xbs_7 .portal_block_summary { border-color: #E5E5E5; }
  122. .fcs { font-size: 12px; }
  123. .fcs dt, .fcs dd { margin: 0; padding: 0; }
  124. .fcs dt { font-size: 18px; font-weight: 100; }
  125. .fcs dd, .fcs dd a { color: MIDTEXT; }

幻灯片

  1. .slideblock { position: relative; }
  2. .slideshow { clear: both; }
  3. .slideshow li { position: relative; overflow: hidden; }
  4. .slideshow span.title { position: absolute; bottom: 0; left: 0; margin-bottom: 0; width: 100%; height: 32px; line-height: 32px; font-size: 14px; text-indent: 10px; }
  5. .slideshow span.title, .slidebar li { background: rgba(0, 0, 0, 0.3); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr = #30000000, endColorstr = #30000000); color: LIGHTLINK; overflow: hidden; }
  6. .slidebar li { float: left; margin-right: 1px; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 10px; cursor: pointer; }
  7. .slidebar li.on { background: rgba(255, 255, 255, 0.5); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr = #50FFFFFF, endColorstr = #50FFFFFF); color: #000; font-weight: 700; }

清除DIY产生的多余样式使用的公共样式

  1. .cl_frame_bm { margin: 0 !important; border: 0 !important;}
  2. .cl_block_bm { margin: 0 !important; border: 0 !important;}
  3. .cl_block_bm .dxb_bc { margin: 0 !important;}

侧边调用 投票

  1. .b_poll dt { padding-left: 20px; background: url(template/cr180_x/images/pollsmall.gif) no-repeat 0 9px; }
  2. .b_poll dd li { padding: 0 0 4px 20px; }
  3. .b_poll dd li .pc { float: left; margin: 4px 0 0 -20px; }
  4. .b_debate {}
  5. .b_debate dt { padding-left: 20px; background: url(template/cr180_x/images/debatesmall.gif) no-repeat 0 10px; }
  6. .b_debate .chart { position: relative; margin: 8px auto; padding: 0; width: 279px; height: 78px; background: url(template/cr180_x/images/p_debate_chart.png) no-repeat 0 0; }
  7. .b_debate .chart strong { position: absolute; top: 25px; width: 80px; font-size: 14px; text-align: center; }
  8. .b_debate .chart .debater2 { right: 0; }
  9. .b_debate .chart1, .b_debate .chart2 { position: absolute; left: 80px; bottom: 0; width: 40px; background: url(template/cr180_x/images/p_debate_chart.png) no-repeat 0 -78px; }
  10. .b_debate .chart2 { left: 159px; background-position: 100% -78px; }
  11. .b_debate p { height: 1.5em; overflow: hidden; }
  12. .b_hstab td { padding: 5px 0; border-bottom: 1px solid COMMONBORDER; }

弹出的气泡信息,1、2、3、4 分别指气泡尖角从左上到左小顺时针方向的位置

  1. .tip { position: absolute; padding: 10px; width: 260px; border: 1px solid #B1B1B1; background: #FEFEE9; }
  2. .tip_1, .tip_2 { margin-top: 8px; }
  3. .tip_3, .tip_4 { margin-top: -8px; }
  4. .tip_horn { position: absolute; width: 11px; height: 6px; overflow: hidden; }
  5. .tip_1 .tip_horn { left: 5px; top: -6px; background: url(template/cr180_x/images/tip_top.png); }
  6. .tip_2 .tip_horn { right: 5px; top: -6px; background: url(template/cr180_x/images/tip_top.png); }
  7. .tip_3 .tip_horn { right: 5px; bottom: -6px; background: url(template/cr180_x/images/tip_bottom.png); }
  8. .tip_4 .tip_horn { left: 5px; bottom: -6px; background: url(template/cr180_x/images/tip_bottom.png); }
  9. .tip_js .tip_horn { right: 61px; bottom: -6px; background: url(template/cr180_x/images/tip_bottom.png); }
  10. .aimg_tip { margin-top: 0; }

推荐商品

  1. em.hot { position: absolute; left: -2px; top: -2px; text-indent: -9999px; overflow: hidden; background: url(template/cr180_x/images/hot.png) no-repeat 0 0; }

板块、群组、空间主区域/侧边搜索

  1. .gsh { text-align: center; }
  2. .gsh h1 { margin: 1em 0 0.5em -60px; font-size: 16px; font-weight: 100; }
  3. .gsh .px { width: 272px; }
  4. .gsh .pns .px { margin-right: 3px; width: 190px; }

名片

  1. .card { padding: 0; width: 295px !important; border-color: SPECIALBORDER; background: #FDFEFF; }
  2. .card .p_opt { padding: 0; }
  3. .card .avt { position: absolute; display: inline; margin-left: -70px; width: 70px; }
  4. .card_mn, .card_info { padding: 10px 10px 10px 80px; }
  5. .card_mn { min-height: 56px; }
  6. .ie6 .card_mn { height: 56px; }
  7. .card_info { border: dashed COMMONBORDER; border-width: 1px 0; }
  8. .card_msg { width: 95%; height: 4em; }
  9. .card a { padding: 0; display: inline !important; white-space: normal; border-bottom: none; }
  10. .card a:hover { background-color: transparent !important; color: TABLETEXT; text-shadow: none; }
  11. .card .o { clear: both; padding: 5px 10px; }
  12. .card .o a { float: left; margin: 3px 5px 3px 0; padding: 2px 0; width: 5em; border: 1px solid SPECIALBORDER; background:SPECIALBG url(template/cr180_x/images/card_btn.png) repeat-x 0 100%; line-height: 14px; text-align: center; }
  13. .ie_all .card .o a { padding: 3px 0 0; }
  14. .card .mgc, .card .f { padding: 0 10px 5px; }
  15. .card .f li { display: block; }

模块中编辑单条数据BIU、颜色选择器其中 colorwd 要配合 pn 使用(不要合并 colorwd 的 background,因为其他配色会受影响)

  1. .ss em { display: block; float: left; margin-right: 2px; padding-left: 7px; width: 16px; line-height: 23px; background: #EEE; cursor: pointer; }
  2. .ss em.a { background: #09F; color: #FFF; }
  3. .dopt a { float: left; margin-right: 3px; width: 21px !important; height: 21px; line-height: 21px; text-align: center; }
  4. .dopt_b, .dopt_i, .dopt_l { border: 1px solid #F1F5FA; outline: none; }
  5. .dopt .cnt { border: 1px solid #999; background-color: WRAPBG; }
  6. .colorwd { margin-left: 3px; width: 23px !important; background-color: MIDTEXT; background-image: url(template/cr180_x/images/pn_color.png) !important; background-repeat: no-repeat; background-position: 0 0; }
  7. .colorwd:active { background-position: 0 0; }
  8. .ie6 .colorwd, .ie7 .colorwd { background-position: -1px -1px; }
  9. .ie6 a.colorwd, .ie7 a.colorwd { background-position: 0 0; }
  10. .colorpx { margin: 0 -3px 0 3px; border-right: none; }

DIY图片幻灯片未加载时隐藏,模块标识隐藏

  1. .slidebox, .block-name {display: none; }
  2. .imgzoom_title { padding: 10px 0 0; color: #666; }
  3. .imgzoom_exif { position: absolute; left: 10px; bottom: 24px; padding: 0 6px; height: 18px; background: rgba(0,0,0,.6); text-align: left; line-height: 1.5; color: white; overflow: hidden;}
  4. .imgzoom_exif_hover { height: auto; }
  5. .ie_all .imgzoom_exif, .imgzoom_exif_hover { background: #000; }
  6. .ie6 .imgzoom_exif { bottom: 39px; }

你可能感兴趣的:(discuz)