Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 修改页首导航栏到顶部的距离-附详细代码-在线等-很急谢谢

[复制链接]
非长人物 发表于 2014-1-30 07:42:58 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X3
浏览器: IE8 firefox 360 chrome 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: http://www.ttsg.com
  1. /*Append Singcere!*/
  2. body {background: #000 url("../../template/singcere_dw/src/img/logo/logo_dw.jpg") no-repeat 50% 0;}
  3. html{overflow-y:scroll;}

  4. #hd h2{display:none;}
  5. #subforum-box td.fl_icn{padding:6px 10px!important;}
  6. .pn { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; border-radius:3px;}
  7. .ie8 #qmenu { line-height: auto; }
  8. #ft { padding: 10px 0; overflow:hidden;}
  9. .ie8 .xld .atc { max-width:none; }
  10. .tip { width:130px;}
  11. .frame-tab .tb .a a { color:{TABLETEXT}}
  12. #diy-tg { margin:7px 6px 0 0;}
  13. #um { width:550px; float:left; padding-right:0;}
  14. #hd .fastlg { float:left; width:550px;}
  15. #toptb { background: none; border: none;}
  16. #toptb a{color: #fff;}
  17. #switchwidth { display: none;}
  18. .rfm { border:none;}
  19. .fl_tb img { border-radius:3px;}
  20. .frame, .frame-tab { border:none;}
  21. .frame-tab .tb {line-height:36px;height:36px;}
  22. .frame-title, .frametitle, .tab-title {height:41px;line-height:34px;background: url(../../template/singcere_dw/src/img/styleskin/style1_btn.png) repeat-x 0 -132px; color:#fff; border:0 none!important;}
  23. .bm_h {height:41px;line-height:34px;background:url(../../template/singcere_dw/src/img/styleskin/{DWBTNIMAGE}) repeat-x 0 -132px; color:#fff; border:0 none!important;}
  24. .bml .bm_h { color:#444;}
  25. .tb .o { border-radius:3px;}
  26. .bm_h .xi2 { color:#fff;}
  27. .xld .atc { float:left; margin-left:0; margin-right:10px;}
  28. /* 用户个人信息页面重定义 */
  29. #uhd { border:none; border-radius:3px; margin-bottom:10px;}
  30. #uhd .tb { border:none;}
  31. #uhd .tb .a a { border:none;}
  32. .miniblog a { background:url({STYLEIMGDIR}/weibo.png) no-repeat; display:block; width:220px; height:90px; text-decoration:none;}
  33. .miniblog a .ct { padding:10px 0 0 50px; }
  34. .miniblog a .qq { background:url({STYLEIMGDIR}/qq_logo.png) no-repeat 10px 12px; }
  35. .miniblog a .sina { background:url({STYLEIMGDIR}/sina_logo.png) no-repeat 10px 12px; }
  36. .miniblog a .lnk { color:#C50743;  }

  37. /* #subforum-box td.fl_icn img{width:48px;height:48px;} */
  38. #subforum-box .bm{border:0 none!important;}
  39. #subforum-box .bm_h{border:0 none!important;height:36px;line-height:36px;background:url({STYLEIMGDIR}/styleskin/{DWBTNIMAGE}) repeat-x 0 -132px;}
  40. #subforum-box .bm_h h2{height:36px;line-height:36px;padding-left:20px;background:url({STYLEIMGDIR}/dwicons_default.png) no-repeat 0 -9px;font-family:\5fae\8f6f\96c5\9ed1;color:#FFF;font-size:14px;}
  41. #subforum-box .bm_h a{font-family:\5fae\8f6f\96c5\9ed1;color:#FFF;font-size:14px;}
  42. #subforum-box .fl_tb td{background:none;border-bottom:1px dashed #CDCDCD!important;padding:6px 0;}
  43. #subforum-box .bm_c{border:1px solid #CECECE;border-top:0 none;background:url({STYLEIMGDIR}/styleskin/{DWBTNIMAGE}) repeat-x 0 -168px;padding:0!important;position:relative;overflow:hidden;}
  44. #subforum-box table.fl_tb{margin-bottom:-1px;}
  45. .xi1,.onerror{color:#F60;}
  46. #chart{color:#666;height:30px;line-height:30px;overflow:hidden;margin-bottom:0!important;}
  47. #chart .chart em{color:#FFF;}
  48. #chart .y a{color:#FFF;}
  49. #chart .chart{color:#aaa;background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -85px -272px;}
  50. #um .pipe{color:#FFF;}
  51. .fl_tb td{background:#FFF url({STYLEIMGDIR}/dwbg_td.png) repeat-x 0 100%;border:0 none!important;}
  52. /* head */
  53. #login-info{text-align:left;width:100%;height:78px;}
  54. #login-info .fastlg{padding-top:10px;}
  55. #login-info .fastlg .pns{padding-left:11px;}
  56. #login-info .fastlg .pns a{color:#CDCDCD;}
  57. #login-info .fastlg .pns label{color:#FFF;}
  58. #login-info .fastlg .pns td a{display:inline-block;padding:0 12px 0 20px;line-height:30px;margin-left:-2px;}
  59. #login-info .fastlg .pns td a.btn-recovery-password{background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -86px -110px;}
  60. #login-info .fastlg .pns td a.btn-register{background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -86px -151px;}
  61. #login-info .fastlg .pns td a.btn-login-by-qq{background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -86px -193px;}
  62. #login-info .fastlg .pns td a.btn-login-by-sina{background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -84px -307px;}
  63. html>body #login-info .fastlg .pns td a.btn-recovery-password{background-position:-86px -112px\9;}
  64. html>body #login-info .fastlg .pns td a.btn-register{background-position:-86px -153px\9;}
  65. * html #header-bg{width:100%;height:114px;position:relative;top:-114px;z-index:-1;margin:0 auto -114px;_background: none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://bbs.duowan.com/static/image/common/styleskin/{DWNAVIMAGE}', sizingMethod='crop');}
  66. html>body #header{background: url(../../template/singcere_dw/src/img/styleskin/style1_nav.png) repeat-x 0 0;}
  67. #hd .wp{zoom:1;padding-top:0;}
  68. #nv{height:36px;line-height:36px;background:none;border:0 none!important;}
  69. #nv li{height:36px;line-height:36px;background:none!important;}
  70. #nv li a{background:none!important;height:36px;line-height:36px;}
  71. #nv a.switch-wide{padding-left:20px;background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -86px 15px;}
  72. html>body #nv a.switch-wide{background-position:-86px 13px\9;}
  73. .widthauto #nv a.switch-wide{background-position:-86px -25px;background-position:-86px -27px\9;-background-position:-86px -25px;}
  74. #nv a.switch-diy{padding:0 20px;background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -85px -148px;color: #fff;}

  75. #um, #um a{color:#FFF;}
  76. #um .a { color: #333}
  77. #um .avt{float:left;margin:5px 10px 0 15px;}
  78. #um .avt img{padding:0;border:0 none;background:none;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;}
  79. #um p{text-align:left;}
  80. #um p strong a{color:#FC0!important;}
  81. #scbar{width:387px;height:32px;line-height:32px;overflow:hidden; float:right; margin: 25px 15px 0 0; background:url({STYLEIMGDIR}/dwbg_search.png) no-repeat 0 0;border:0 none;}
  82. #scbar form{display:block;width:387px;height:32px;overflow:hidden;}
  83. #scbar_txt{width:260px;padding-left:9px;border: none;background: none;}
  84. .scbar_txt_td,.scbar_type_td,.scbar_btn_td{background:none;}
  85. .scbar_icon_td, scbar_hot_td, #scbar_hot { display:none;}
  86. .scbar_btn_td { text-align: center;}
  87. #scbar_btn strong{color:#444 !important; line-height: 24px; padding: 0;}
  88. #pt{color:#666;height:30px;line-height:30px;overflow:hidden;margin:5px 0;}
  89. #pt .z,#pt .z a{color:#FFF;}
  90. #pt .nvhm{background:url({STYLEIMGDIR}/home.gif) no-repeat 0px 7px;}
  91. #pt .z em {background: url({STYLEIMGDIR}/navigation-pipe.png) no-repeat 9px 12px;}
  92. .ie_all #pt .z em { background-position:9px 12px;}
  93. #category_lk{padding:10px;}
  94. /* footer */
  95. #ft{border:0 none;color:#CCC;font-family:Tahoma,Helvetica,sans-serif;font-size:0.83em;}
  96. #ft #frt a{color:#FC0;}
  97. #ft #flk a{color:#CCC;}
  98. /* 帖子页 */
  99. #content-box{zoom:1;padding:15px;background-color:#FFF;}
  100. .tl .th{margin-top:0;}
  101. #content-box .bm_c{padding:0 0 10px;}
  102. .forum-rules{zoom:1;margin:10px 0;padding:10px;border:1px solid #CDCDCD;background-color:#F3F3F3;}
  103. #threadlist .th table th,
  104. #threadlist .th table td{border:0 none !important;}
  105. /* 好友 */
  106. #friends-box{zoom:1;background:#FFF;}
  107. #friedns-box #ct{border:0 none;}
  108. .ct2_a,.ct3_a{background-color:#FFF;border:0 none;}
  109. .ct2_a .mn{padding:15px 0 5px 0;width:795px;}
  110. .ct2_a .mn .tb{padding-top:0;}
  111. .tbn .bbda{border-bottom:1px solid #5B5B5B;}
  112. .tbn .mt{padding:10px 0 10px 15px;}
  113. .tbn li{margin:0;height:36px;line-height:36px;text-indent:30px;border-bottom:1px solid #5B5B5B;}
  114. .tbn li a{height:36px;line-height:36px;font-size:12px;}
  115. .tbn li.a{padding:0;}
  116. .tbn li.a a{color:#333;}
  117. .tbn li span.mtn{margin-top:0!important;padding-right:6px;}
  118. .tbn li.a span.mtn{color:#333;}
  119. /*  */
  120. .forum-info{margin-bottom:15px;}
  121. .forum-info .fl_icn_g{width:auto;height:48px;padding-right:10px;}
  122. .forum-info .fl_icn_g img{height:48px;}
  123. .forum-info h1.xs2{margin-bottom:4px;}
  124. .forum-info h1.xs2 span.i{padding-left:10px;}
  125. /*  */
  126. .tb{padding-left:0px;border-bottom:2px solid {HIGHLIGHTLINK};}
  127. .tb li{margin:0 3px 0 0;}
  128. .tb a{border:0 none;background:#EEE;color:#333;}
  129. .tb .a a,.tb .current a{background:{HIGHLIGHTLINK};color:#FFF;}
  130. /* 家园 */
  131. #wp #ct .appl li a{color:#FFF;}
  132. #wp #ct .appl li.a a{color:#333;}
  133. /* 个人资料 */
  134. #space-profile{background-color:#FFF;margin-top:30px;padding:15px;overflow:hidden;zoom:1;}
  135. #space-profile #pprl{width:700px;}
  136. .ct2 #space-profile .mn{width:700px;}
  137. .tdats .tfxf{width:645px!important;}
  138. .tdats #tba,
  139. .tdats .tscr{width:345px!important;}
  140. /* 论坛版块管理 */
  141. html.widthauto #forum-modcp-box{}
  142. html.widthauto #forum-modcp-box #ct{margin-left:137px;padding:12px 15px;}
  143. html.widthauto #forum-modcp-box #ct .mn{}
  144. html.widthauto #forum-modcp-box #ct .appl{margin-left:-152px;margin-top:-12px;}
  145. /* 快速导航 */
  146. #qmenu{background:none;text-shadow:none;color:#FFF;font-weight:400;width:auto;margin:0;height:36px!important;line-height:36px;padding:0 15px 0 25px;background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat -80px -65px!important;}
  147. html>body #qmenu{background-position:-80px -67px\9!important;}
  148. #qmenu_menu{border:0 none;background:#FFF url({STYLEIMGDIR}/dwbg_pop_menu.png) repeat-x 0 0;
  149. -webkit-box-shadow: 0px 0px 4px rgba(0,0,0,.6);
  150.      -moz-box-shadow: 0px 0px 4px rgba(0,0,0,.6);
  151.           box-shadow: 0px 0px 4px rgba(0,0,0,.6);
  152. }
  153. #qmenu_menu i.arrow{display:block;width:15px;height:8px;overflow:hidden;position:absolute;top:-8px;left:111px;background:url({STYLEIMGDIR}/dwicons_v1.png) no-repeat 0 0;}
  154. table.forum-info-box{width:100%;}
  155. table.forum-info-box td{padding:0!important;background:none!important;vertical-align:top;}
  156. table.forum-info-box td.forum-icon-box{width:1%;}
  157. table.forum-info-box td dl{margin-left:0!important;}
  158. #subforum-box .fl_tb td.fl_g{padding:10px 0!important;}
  159. #subforum-box table.forum-info-box td{border:0 none!important;}
  160. /* 公告链接颜色 */
  161. #anc .xi2{color:#FFF;}
  162. /* 手机版页面 */
  163. body.pg_mobile #ct{background-color:#FFF;margin-top:30px;}
  164. .pl10{padding-left:10px!important;}
  165. /* 裁判点评 */
  166. body.pg_misc #wp .mn #postform{background-color:#FFF;padding:15px;}
  167. /* 发帖表情 */
  168. #smiliesdiv_tb{width:400px!important;padding-left:5px;}
  169. #smiliesdiv_tb li{white-space:nowrap;}
  170. /* 短消息 */
  171. table#pmlist{width:100%;}
  172. table#pmlist td{padding:4px 0;}
  173. /* 发帖按钮 */
  174. .pgs #newspecial,
  175. .pgs #newspecialtmp,
  176. .pgs #post_reply,
  177. .pgs #post_replytmp{width:80px;height:33px;}
  178. .pgs #newspecial:hover,
  179. .pgs #newspecialtmp:hover {background-position:0 -33px;}
  180. .pgs #post_reply:hover,
  181. .pgs #post_replytmp:hover {background-position:0 -99px;}
  182. .pgs #newspecial img,
  183. .pgs #newspecialtmp img,
  184. .pgs #post_reply img,
  185. .pgs #post_replytmp img{visibility:hidden;}
  186. .pgs #newspecial,
  187. .pgs #newspecialtmp,
  188. .pgs #post_reply,
  189. .pgs #post_replytmp{background:url({STYLEIMGDIR}/styleskin/{DWBTNIMAGE}) no-repeat 0 0;}
  190. .pgs #post_reply,
  191. .pgs #post_replytmp{background-position:0 -66px;}
  192. /* 签名档 */
  193. #content-box .user-signature{width:700px;max-height:300px;-height:expression(this.scrollHeight>(300-1) ? "300px":"auto");zoom:1;overflow:hidden;padding-bottom:0;margin-bottom:10px;}
  194. /* 个人资料导航 */
  195. #space-header{height:36px;line-height:36px;overflow:hidden;background:url({STYLEIMGDIR}/styleskin/{DWBTNIMAGE}) repeat-x 0 -132px;}
  196. #space-header-nav{float:left;}
  197. #space-header-nav a,
  198. #space-header-nav b{float:left;color:#FFF;margin:0 15px;font-weight:700;}
  199. #space-header-nav b.current{color:#FC0;}
  200. #space-header-nav span{float:left;color:#FFF;}
  201. #space-profile .mn .bm{border-top:0 none;background:url({STYLEIMGDIR}/styleskin/{DWBTNIMAGE}) repeat-x 0 -168px;}
  202. #space-profile .mn .bm_c .buddy li{width:250px;}
  203. #content-box .bm{background-color:{DWPOSTBODYBGC};}
  204. #forum-box .sub-forum .bm_h{height:36px;line-height:36px;background:url({STYLEIMGDIR}/dwbg_sub_forum.png) repeat-x 0 -164px;}
  205. #forum-box .sub-forum .bm_h h2{height:36px;line-height:36px;background:url({STYLEIMGDIR}/dwbg_sub_forum.png) no-repeat 0 10px;}
  206. #forum-box .sub-forum .bm_h h2 a{color:#333;}
  207. /* 帖子正文 */
  208. #content-box #postlist .pcb{padding-bottom:20px;}
  209. /* 查看参与投票会员页 */
  210. #content-box .voterlist{height:auto;width:100%;overflow:hidden;}
  211. /* logo */
  212. #logo{display:block;width:220px;height:70px;margin:auto;overflow:hidden;text-indent:-9999px;}
  213. #blank100{display:block;width:100%;height:73px;clear:both;margin:auto;}
  214. /* 发送消息-好友群发 */
  215. table#pmlist #buddy{width:80px;}
  216. table#pmlist #buddy label input,
  217. table#pmlist .userlist label input{float:left;display:inline;margin:4px 5px 0 0;margin:-1px 1px 0 0\9;}
  218. table#pmlist .userlist{overflow:hidden;}
  219. table#pmlist .userlist li{float:left;width:20%;height:20px;line-height:20px;}
  220. /* login button */
  221. #login-info .fastlg .pns{padding-left:18px;color:#CDCDCD;padding-top:12px;}
  222. #login-info .fastlg .pns td input{vertical-align:middle;}
  223. #login-info button.btn-login{background:transparent url({STYLEIMGDIR}/btn_login.png) no-repeat 0 0;border:0 none;width:86px;height:30px;}
  224. #login-info button.btn-login em{visibility:hidden;}
  225. /* first screen banner */
  226. .full-banner{width:100%;position:relative;overflow:hidden;}
  227. .full-banner .bd{width:960px;overflow:hidden;margin:auto;}
  228. .full-banner .bd .blank10{display:block;width:100%;height:10px;clear:both;overflow:hidden;}

  229. /* 弹出层隐藏以便移到页面右下角 */
  230. #div_minipage {visibility:hidden;}
复制代码
这个是目前我使用的模版的extend_common.css,这里面是修改哪里是调整“首导航栏到顶部的距离”的,知道的告知下,谢谢!!








您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-24 03:18 , Processed in 0.026051 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表