sarvel - 2009/11/5 22:06:00
弱弱的问一下 应该怎么修改PA文件里的template里的lanmu.css文件,以实现导航每行显示12个栏目啊?系统默认的是每行显示10个栏目....
请教高手赐教
sarvel - 2009/11/5 22:53:00
自己顶上去!
zxd1972 - 2009/11/7 10:23:00
查看你要修改的!导航页面的源码 找到对应的CSS样式 在后台设置中选择模板的地方点WORD样式的图标进去后找到对应的CSS 修改WIDTH属性就OK了
/*menu样式*/
.menu_box{clear:both;width:100%;}
/**********LOGO在上方样式***********/
.menu_box_style1_1{clear:both;border:0 solid #cccccc;}
.menu_box_style1_1_1{float:left;}
.menu_box_style1_1_2{float:right;padding:0 0 0 0;}
.menu_box_style1_2{clear:both;text-align:left;height:35px;background:url(images/menu_bg.jpg) repeat 0 0;border:0 solid #dddddd;padding-left:10px;}
.menu_style_1{float:left;text-align:center;}
.menu_style_1_last{float:left;text-align:center;}
a.menu_1:link{display:block;height:28px;width:96px;color:#ffffff;text-decoration: none;font-weight:bold;padding:7px 0 0 0}
a.menu_1:visited {display:block;height:28px;width:96px;color:#ffffff;text-decoration:none;font-weight:bold;padding:7px 0 0 0}
a.menu_1:hover {display:block;height:28px;width:96px;color:#FFFFCC;text-decoration:none;font-weight:bold;padding:7px 0 0 0;}
a.menu_current_1{display:block;height:28px;width:110px;color:#ffffff;text-decoration:none;font-weight:bold;padding:7px 0 0 0;background:url(images/menu_bg_1.jpg) no-repeat center top;}
a.menu_current_1:hover{display:block;height:28px;width:110px;color:#ffffff;text-decoration:none;font-weight:bold;padding:7px 0 0 0;}
a.menu_current_1_last{display:block;height:28px;width:110px;color:#ffffff;text-decoration:none;font-weight:bold;padding:7px 0 0 0;background:url(images/menu_bg_1.jpg) no-repeat center top;}
a.menu_current_1_last:hover{display:block;height:28px;width:110px;color:#ffffff;text-decoration:none;font-weight:bold;padding:7px 0 0 0;}
/**********LOGO在左侧样式***********/
.menu_box_style2_1{border:0 solid #cccccc;text-align:right;padding:5px 2px 5px 0}
.menu_box_style2_2{clear:both;height:50px;}
.menu_box_style2_2_1{float:left;width:250px;height:50px;overflow:hidden;text-align:left}
.menu_box_style2_2_2{float:right;width:720px;height:30px;margin:20px 0 0 0;padding-left:30px;text-align:right;overflow:hidden;background:url(images/menu_bg_1.gif) repeat 0 0;}
.menu_style_2{float:left;height:25px;text-align:center;padding:6px 20px 0 20px;background:url(images/menu_style_1.gif) no-repeat right center;}
.menu_style_2_last{float:left;height:25px;text-align:center;padding:6px 0 0 20px;}
a.menu_2:link{color:#ffffff;text-decoration: none;font-weight:normal;padding:8px 0 0 0}
a.menu_2:visited {color:#ffffff;text-decoration:none;font-weight:normal;padding:8px 0 0 0}
a.menu_2:hover {color:#ffffff;text-decoration:none;font-weight:normal;padding:8px 0 0 0;text-decoration:underline;}
a.menu_current_2{color:#ffffff;text-decoration:none;font-weight:bold;padding:8px 0 0 0;}
a.menu_current_2:hover{color:#ffffff;text-decoration:none;font-weight:bold;padding:8px 0 0 0;}
a.menu_current_2_last{color:#ffffff;text-decoration:none;font-weight:bold;padding:8px 0 0 0;}
a.menu_current_2_last:hover{color:#ffffff;text-decoration:none;font-weight:bold;padding:8px 0 0 0;}
width:96px 那几处修改了,就可以,如果不行修改下其他地方的“width”属性!
sarvel - 2009/11/7 13:27:00
谢谢啊 !但你可以说清楚一点吗?不太明白啊
pfreestar - 2009/11/7 16:43:00
页面的宽度/栏目数=栏目宽度,根据这个数据去调整
sarvel - 2009/11/8 16:47:00
谢谢版主!!