PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

如何使首页顶部布局不变,其他导航背景色显示导航底部 [复制链接]

1#
如何使首页顶部布局不变(图1),其他导航背景色显示导航底部(图2)
TIM截图20170427103510.jpg (, 下载次数:0)

图1(2017/4/27 10:41:11 上传)

TIM截图20170427103510.jpg

TIM截图20170427103617.jpg (, 下载次数:0)

图2(2017/4/27 10:41:11 上传)

TIM截图20170427103617.jpg

分享 转发
TOP
2#

css样式代码

[code]@import url(comm.css);
@import url(/e/css/focus.css);

/*网站基础样式*/
html{-webkit-text-size-adjust:none;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,th,td,p,blockquote,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0px;padding:0px;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display: inline;*zoom:1;}
body{word-wrap:break-word;text-align:center;font:15px/1.8 Tahoma,Verdana,Microsoft YaHei,\5b8b\4f53;color0B0B0B;}

input,select,textarea,button{font-size:100%;}
table{border-collapse:collapse;border-spacing:0;}
img{border:0;}
li{list-style:none;*margin-left:-1px}
.left{float:left}
.right{float:right}
.clear{display:block;clear:both;font-size:0px;height:0px;line-height:0px;width:0px;margin:0px;padding:0px;overflow:hidden}
a{color333;text-decoration:none;}
a:hover{color3194F1;text-decoration:none;}
.page_style{width:100%;margin:0px auto 0px auto;text-align:center;padding-top:112px;}

/*顶部及主菜单样式*/

.top_box{clear:both;width:100%;height:112px;margin-top:0px; repeat-x bottom;*margin-bottom:90px;_margin-bottom:0px; positionixed;background-color:rgba(255,255,255,0.8);z-index:30;top:0px;}
.top_box_inner{ width:1000px;margin:0px auto;}
.top_box .logo{float:left;width:190px;text-align:left;height:62px;padding:23px 0 5px 0;}
.top_box .topcontent{display:block;text-align:right;width:975px;height:30px;}

.menu_box{float:left;width00px;text-align:left;height:90px;position:relative;}

.menu_style_homepage{float:left;width:113px;height:90px;text-align:left;margin-right:1px;}
.menu_style{float:left;width:113px;height:90px;text-align:left;margin-right:1px;}

a.menu{display:block;width:113px;line-height:90px;color333;text-decoration:none;font-size:20px;position:absolute;text-align:center;}
a.menu:hover {color0B98DE;text-decoration:none; no-repeat top center;}

.menu_current a.menu{colorFFFFFF;text-decoration:none;background-color0B98DE;width:100px;height1px;}

/*banner样式*/

.banner{clear:both;text-align:left;overflow:hidden;}
.smallbanner{clear:both;margin:0 0 5px 0;text-align:left}

/*网站主体框架样式*/

.main_box_style{clear:both;overflow:hidden;}


.main_box_style1{clear:both;margin:3px 0 0 0;overflow:hidden;}
.main_box_style1 .main_box_inner_left{float:left;width:220px;margin:0 10px 0 0;overflow:hidden;text-align:left;}
.main_box_style1 .main_box_inner_right{float:right;width:770px;margin:0 0 0 0;overflow:hidden;text-align:left;}

.main_box_style2{clear:both;margin:3px 0 0 0;overflow:hidden;}
.main_box_style2 .main_box_inner_left{float:left;width:770px;margin:0 10px 0 0;overflow:hidden;text-align:left;}
.main_box_style2 .main_box_inner_right{float:right;width:220px;margin:0 0 0 0;overflow:hidden;text-align:left;}

.main_box_style3{clear:both;margin:3px 0 0 0;overflow:hidden;}
.main_box_style3 .main_box_inner_left{display:block;width:100%;height4px;overflow:hidden;text-align:left;background0B98DE;}
.main_box_style3 .main_box_inner_middle{display:block;width:100%;overflow:hidden;text-align:left;}
.main_box_style3 .main_box_inner_right{display:block;width:100%;overflow:hidden;text-align:left;background0B98DE;height:0px;}

.page_l65 .main_box_style3 .main_box_inner_middle{clear:both;width:1000px;margin:0px auto;overflow:hidden;text-align:left;}

/*导航样式*/
.nav_box{clear:both;width:100%;margin:0 0 10px 0;overflow:hidden;}

.nav_title{font-weight:bold;border:0 solid #cccccc;border-width:0 0 1px 0;height:25px;text-align:left;background:url(images/nav_title_sign.gif) no-repeat 8px 10px;cursor:pointer;overflow:hidden;}
.nav_sign{float:left;text-align:left;padding:5px 0 0 22px;}
.nav_more{float:right;font-weight:normal;paddingpx 10px 0 10px;margin:0 0 0 0;}
.nav_more a{line-height:15px;font-size:10px;}

.nav_content{padding:5px 0px 5px 0px;border:0px solid #cccccc;text-align:left;}

.nav_menu{clear:both;overflow:hidden;}

.nav_menu li{float:left;text-align:left;height4px; margin-left:50px;}
.nav_menu li a{float:left;line-height4px;height4px;font-size:19px;color:white;font-weight:510;}
.nav_menu li a:hover{color:white;background:url(image/ctbg.jpg) no-repeat bottom center;}
.nav_menu li a.current{color:white;background:url(image/ctbg.jpg) no-repeat bottom center;}

.nav_menu li ul li{text-align:left;background-image:none;padding:0 0 0 5px;}
.nav_menu li ul li a{display:inline;line-height:22px;}
.nav_menu li ul li a.current{colorcc0000}

.nav_menu ul li ul li ul{padding:0 0 0 15px;}
.nav_menu ul li ul li span.node{float:left;height:22px;width:15px;background:url(images/node_open.gif) no-repeat 0 0;cursor:pointer;}
.nav_menu ul li ul li span.node_close{float:left;height:22px;width:15px;background:url(images/node_close.gif) no-repeat 0 0;cursor:pointer;}
.nav_menu ul li ul li span{float:left;height:22px;width:15px;background:url(images/subnav.gif) no-repeat 0 0;}

/*模块样式*/
.module_box{clear:both;margin:0 0 5px 0;border:0 solid #cccccc;overflow:hidden;}                 /*模块整行布局样式*/
.module_box_layout_left{float:left;margin:0 0 5px 0;border:0 solid #cccccc;overflow:hidden;}  /*模块左布局样式*/
.module_box_layout_right{float:right;margin:0 0 5px 0;border:0 solid #cccccc;overflow:hidden;}   /*模块右布局样式*/

.module_box_inner{clear:both;text-align:center;padding:5px 0 5px 0;border:0px solid #cccccc;overflow:hidden;height:100%;}/*模块内层容器样式*/
.module_box_layout_left .module_box_inner{clear:both;text-align:center;margin:0 10px 0 0;padding:5px 0 5px 0;} /*模块居左时重写内层样式*/

.module_title{clear:both;width:975px;height:30px;text-align:left;background:url(image/top-bg.png) repeat-x bottom;overflow:hidden;}
.page_l61 .module_sign{float:left;text-align:left;line-height:30px;background:url(image/line4.jpg) no-repeat left center;padding-left:10px;font-size:20px;color000;}
.module_sign{float:left;text-align:left;line-height:30px;background:url(image/line4.jpg) no-repeat left center;padding-left:10px;font-size:20px;color000;}
.module_more{float:right;font-weight:normal;padding:5px 10px 0 10px;margin:0 0 0 0;}
.module_more a{line-height:15px;font-size:12px;}

.module_content{padding:5px 0px 0 0px;text-align:left;}

.module_footer{clear:both;height:1px;overflow:hidden;background-colorcccccc;display:none}
.module_footer .l{float:left;}
.module_footer .r{float:right}

/*子栏目样式*/
.lanmupage .current_location{display:none}
.current_location{clear:both;text-align:left;height:25px;border:1px solid #cccccc;border-width:0 0 1px 0;display:none;}
.current_location_1{float:right;padding:5px 10px 0 0;display:none;}
.current_location_2{float:left;padding:5px 0 0 18px;font-weight:bold;background:url(images/site_icon.gif) no-repeat 2px 10px;display:none;}

.sublanmu_box{text-align:left;padding-bottom:10px; width:1000px;margin:0px auto;}
.sublanmu_content{padding:10px 0px 10px 0px;text-align:left;}
.sublanmu_content_introduct{margin-top:0px;line-height:2.0;font-size:1.1em} /*自定义内容子栏目样式*/
.sublanmu_content_introduct p{margin-bottom:10px;min-height:10px}

.sublanmu_page{clear:both;text-align:center;margin:15px 0 10px 0;font-size:12px;font-family:宋体;}
.sublanmu_page a{vertical-aligniddle;zoom:1;height:15px;line-height:15px;padding:2px 8px 3px 8px;border:1px solid #cccccc;}
.sublanmu_page span.c{padding:2px 2px 3px 2px;font-weight:bold;border:0px solid #cccccc;}
.sublanmu_page span{vertical-aligniddle;zoom:1;height:15px;line-height:15px;padding:2px 8px 3px 8px;}
.sublanmu_page span.c{padding:2px 2px 3px 2px;border:0px solid #cccccc;}


.sublanmu_pn{font-size:13px;margin:15px 0 5px 0}
.sublanmu_pn li{colorD33506}

/*评论*/
.comments_box{text-align:left;border:1px solid #cccccc;margin:10px 0 10px 0;}
.comments_box .title{padding:2px 0 0 10px;height:20px;font-weight:bold;background-colorececec}
.comments_box ul li{padding:5px 0 5px 25px;}
.comments_box .textarea{width:520px;height:100px;border:1px solid #cccccc;border-color000000 #cccccc #cccccc #000000;}

.comments_list{padding:5px 0 0 0;border:0px solid #cccccc;overflow:hidden}
.comments_list .title{display:block;padding:2px 0 3px 5px;height:18px;width:100%;font-weight:bold;}
.comments_list .item{clear:both;margin:0 0 10px 0;overflow:hidden}
.comments_list .header{padding:3px 0 0 10px;height:22px;background-coloreeeeee}
.comments_list .header .floornum{font-size:12px;font-style:Italic;font-weight:bold}
.comments_list .header .left{float:left}
.comments_list .header .right{float:right;padding-right:10px}
.comments_list .quote{display:block;color999999;padding:5px 5px 5px 10px;border:1px solid #ececec}
.comments_list .content{padding:5px 5px 5px 15px}
.comments_list .reply{background:url(public/reply.gif) no-repeat 5px 5px;border:1px dashed #cccccc;padding:2px 5px 2px 25px;margin:2px 0 5px 0;colorD33506}

.comments_page{clear:both;vertical-aligniddle;text-align:right;background-colorffffff;margin:10px 0 10px 0;font-family:宋体;}
.comments_page a{height:15px;line-height:15px;vertical-aligniddle;zoom:1;padding:2px 8px 2px 8px;border:1px solid #cccccc;font-size:12px}
.comments_page span{height:15px;line-height:15px;vertical-aligniddle;zoom:1;padding:2px 5px 2px 5px;font-size:12px}
.comments_page span.c{vertical-aligniddle;padding:2px 3px 2px 3px;font-weight:bold;font-size:12px;}

/*bottom样式*/
.bottom_box{clear:both;padding:0 0 0 0;border:0 solid #666666;margin:5px 0 5px 0;text-align:left;width:100%;backgroundF5F5F5;height:120px;}

/*登陆界面*/
.loginbox_item{height:20px;padding:0 0 0 0;padding:0 5px 5px 0;text-align:left;font-size:9pt;}
.loginbox_textbox{width:100px;height:15px;border:0 solid #cccccc;border-width:1px 1px 1px 1px}
.loginbox_textbox_yzm{width:40px;height:15px;border:0 solid #cccccc;border-width:1px 1px 1px 1px}
.loginbox_submit{width:90px;height:20px;border:0 solid #333333;border-width:0 1px 1px 0;background-colordddddd;cursor:pointer;}
a.logined_hrefnk{font-size:9pt;colorFF0000;text-decoration:underline}
a.logined_href:visited{font-size:9pt;colorFF0000;;text-decoration:underline}
a.logined_href:hover{font-size:9pt;colorFF0000;text-decoration:underline}


/*其他样式*/
.textarea{border:1px solid #cccccc;border-color000000 #cccccc #cccccc #000000;}
.button{width:55px;font-size:9pt;height:19px;cursor:pointer;background-image:url(public/button.gif);background-position: center center;border-top: 0px outset #eeeeee;border-right: 0px outset #888888;border-bottom: 0px outset #888888;border-left: 0px outset #eeeeee;padding-top: 2px;background-repeat: repeat-x;}
.tb{border:1px solid #cccccc;border-color000000 #cccccc #cccccc #000000;}
.bt{height:22px;width:70px;font-size:9pt;background-image:url(public/bt.gif);padding-top:2px;cursor:pointer;border-width:0px;}
[/code]
TOP
3#

还是不行如果把padding-top:112px去掉了,所有导航栏目都会改变

.page_style{width:100%;margin:0px auto 0px auto;text-align:center;padding-top:112px;}
TOP
4#

如图
TIM截图20170427111821.jpg (, 下载次数:0)

(2017/4/27 11:18:48 上传)

TIM截图20170427111821.jpg

TOP
5#

谢谢xiyou老师耐心的服务指导,
TOP
发新话题 回复该主题