本帖最后由 Catch_C 于 2010-9-26 12:31 编辑
暂时在本地测试,还没修改完毕,上一个效果图给大家看看
现在又个问题是官方导航栏的背景无法显示,调试了很久
看有没高手能够搞定!!!
修改方法:
用官方的Header.html文件替换克米风格里面的,
然后,打开extend_common.css,把克米导航部分删除或者加注释
- .n_nav{width:962px;overflow:hidden;margin:0 auto;height:35px;background:url({STYLEIMGDIR}/comiis_title_bg.png) no-repeat right top;padding:0 8px 0 0;}
- .n_nav .n_hd{width:7px;height:35px;background:url({STYLEIMGDIR}/comiis_title_bg.png) no-repeat left top;float:left;overflow:hidden;}
- .n_nav .n_bd{width:955px;height:35px;background:url({STYLEIMGDIR}/comiis_title_bg.png) repeat-x 0px -124px;float:left;overflow:hidden;}
- .nav_hd{width:955px;overflow:hidden;}
- .nav_hd_ul{margin:3px 0 0 0;}
- .nav_hd_ul li{float:left;}
- .nav_hd_ul li a{display:block;height:31px;line-height:30px;padding:0 18px 0 0px;float:left;background:url({STYLEIMGDIR}/comiis_x.png) no-repeat right center;font-size:14px;font-weight:bold;color:#fcfcfc;}
- .nav_hd_ul li a span{display:block;height:31px;padding:0 0 0 18px;float:left;cursor:pointer;text-decoration:none;}
- .nav_hd_ul li a:hover, .nav_hd_ul li.current a {background:url({STYLEIMGDIR}/comiis_an_r.png) no-repeat right center;color:{HIGHLIGHTLINK};text-decoration:none;}
- #index.current a{background:url({STYLEIMGDIR}/comiis_an_rs.png) no-repeat right center;color:{HIGHLIGHTLINK};text-decoration:none;}
- .nav_hd_ul li a:hover span,.nav_hd_ul li.current a span{background:url({STYLEIMGDIR}/comiis_an_l.png) no-repeat left center;text-decoration:none;}
- .nav_hd_ad{float:right;width:151px;height:25px;line-height:25px;color:#333;overflow:hidden;text-indent:10px;margin:2px 0 0 0;}
- .nav_bd_ul{margin:8px 0px 0 -1px;float:left;width:960px;}
- .nav_bd_ul li{height:25px;width:94px;line-height:25px;border-left:1px dashed #ccc;float:left;}
- .nav_bd_ul li a{font-size:14px;color:#333;display:block;width:60px;height:25px;background:url({STYLEIMGDIR}/comiis_ico.png) no-repeat 10px 9px;padding:0 13px 0 19px;text-decoration:none;}
- .nav_bd_ul li a:hover{background:url({STYLEIMGDIR}/comiis_navbg.gif) no-repeat 5px center;color:#333;text-decoration:none;}
- .ico_sj{padding:12px 0 0 5px;}
- .lk .m li {height: 40px;}
复制代码 然后打开default/common/common.css
把页头部分粘贴进去(本人很菜,只能全部粘贴)- /* 页头 */
- #hd .wp { padding: 10px 0 0; }
- #diy-tg { position: absolute; top: 0; right: 15px; z-index:100; }
- /*.hdc { border-bottom: {HEADERBORDER} solid #005DC3; }*/
- .hdc { position: relative; z-index: 3; background: {HEADERBGCOLOR}; }
- #hd h2 { padding: 0 20px 8px 0; float: left; }
- #space #hd h2 { margin-top: 0; }
- #hd .fastlg { position: absolute; bottom: 8px; right: 0; }
- #scbar { overflow: hidden; width: 100%; height: 36px; line-height: 36px; background: url({IMGDIR}/search.gif) repeat-x 0 0; }
- #scbar table { background: url({IMGDIR}/search.gif) no-repeat 0 -36px; }
- #scbar td { padding: 0 2px; white-space: nowrap; }
- #scbar #srchtxt { margin-top: 2px\9; margin-right: 10px; margin-left: 35px; width: 250px; height: 18px; line-height: 18px; border: none; background: transparent; outline: none; }
- #scbar label { margin-right: 8px; cursor: pointer; }
- #scbar #search_submit { width: 51px; height: 36px; border: none; background: transparent url({IMGDIR}/search.gif) no-repeat 0 -77px; cursor: pointer; }
- #scbar .hot { padding-left: 1em; }
- #sc td { padding: 0 3px; }
- #srchtxt { font-size: 12px; line-height: 22px; }
- .ie6 #srchtxt { line-height: 20px; }
- #sc #search_submit { width: 51px; height: 32px; border: none; background: transparent url({IMGDIR}/search.gif) no-repeat 0 -79px; cursor: pointer; }
- #sctype_menu { width: 100px; }
- #sctype_menu input { position: absolute; width: 0; height: 0; opacity: 0; }
- #sctype_menu a { padding: 0; }
- #sctype_menu label { display: block; padding: 3px 15px; line-height: 1.5; cursor: pointer; }
- #nv { overflow: hidden; padding-left: 3px; height: 33px; {MENUBGCODE}; }
- #nv li { float: left; padding-right: 1px; height: 33px; line-height: 33px; background: url({IMGDIR}/nv_a.png) no-repeat 100% 0; font-weight: 700; font-size: 14px; }
- .ie_all #nv li { line-height: 36px; }
- .ie6 #nv li { line-height: 33px; }
- #nv a { float: left; padding: 0 20px; height: 33px; }
- #nv a { color: {MENUTEXT}; }
- #nv li span { display: none; }
- #nv li.a { margin-left: -1px; {MENUHOVERBGCODE}; }
- #nv li.a a { color: {MENUHOVERTEXT}; }
- #mu { position: relative; z-index: 1; }
- .ie6 #mu, .ie7 #mu { line-height: 0; font-size: 0; }
- #mu ul { background: url({IMGDIR}/mu_bg.png) no-repeat 0 100%; line-height: 22px; z-index: 2; font-size: 12px; }
- #mu li { float: left; height: 32px }
- #mu a { float: left; display: inline; margin: 5px 10px; padding: 0 20px; white-space: nowrap; }
- #mu a:hover { margin: 4px 9px; border: 1px solid {SPECIALBORDER}; background: {SPECIALBG}; color: {HIGHLIGHTLINK}; }
- .floatmu { position: absolute; left: 0; top: 0; }
- #um { position: absolute; z-index: -1; bottom: 8px; right: 0; padding-right: 60px;_padding-right: 54px; line-height: 2.3; width: 90%}
- #um, #um a { color: {HEADERTEXT}; }
- #um p { text-align: right; }
- #um .avt { display: inline; margin-right: -60px; }
- .vwmy { padding-left: 16px; background: url({IMGDIR}/user_online.gif) no-repeat 0 2px; }
- /* .topnav .new, .sch .new 分别为为个人中心和搜索页面头部新消息样式 */
- #um .new, .topnav .new, .sch .new { padding-left: 20px; background-repeat: no-repeat; background-position: 0 50%; color: {HIGHLIGHTLINK}; font-weight: 700; }
- #myprompt.new { background-image: url({IMGDIR}/notice.gif); background-position: 3px 50%; }
- #pm_ntc.new { background-image: url({IMGDIR}/new_pm.gif); }
- #task_ntc { background-image: url({IMGDIR}/new_task.gif); }
- #um .pipe { margin: 0 5px 0 0; }
-
- #qmenu { float: right !important; margin: 3px 10px 0 0; display: inline; padding: 0 0 0 10px !important; width: 85px; height: 26px; background: url({IMGDIR}/qmenu.png) no-repeat 0 0; line-height: 26px; }
- #qmenu_menu { margin: -8px 0 0 1px; width: 92px; }
- #qmenu_menu a { padding-left: 26px; background-position: 6px 50%; background-repeat: no-repeat; }
- #qmenu_menu a:hover { background-color: {SPECIALBG}; color: {HIGHLIGHTLINK}; text-shadow: none; }
复制代码 |