建站之星产品帮助

查看: 8084|回复: 17
打印 上一主题 下一主题

模块标题背景怎样分开

[复制链接]
跳转到指定楼层
1#
发表于 2011-9-17 14:13:09 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
我的 模版 左边模块的所有标题背景 用的都是一张图片,右边所有模块标题背景用的也一张图片~!
这样导致我修改左边或者右边某一个模块的标题背景,其他所有的都跟着改变了~!
怎样才能给他们分开,或者给某一个模块单独指定一个标题背景~!

2#
发表于 2011-9-17 14:41:58 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
3#
 楼主| 发表于 2011-9-17 14:57:27 | 只看该作者
本帖最后由 yueningfeng 于 2011-9-17 15:01 编辑

会点简单的网页设计,但不懂PHP
下面是style.css里面左侧模版和标题,还有自定义模版的代码,left_class_bg.gif是左侧模版标题的背景,我现在想添加一个left_class_bg11.gif的图片作为左侧自定义模版的标题背景,要加一条什么样的代码~!在哪里加?

/*--- 左侧 ---*/
#left,#left2{width:674px;float:left;margin-right:11px;_display:inline;overflow:hidden; }
#left .blk_t,#left2 .blk_t, .contenttoolbar,#left2 .art_list_title{font-size:13px;height:43px;line-height:43px;;text-indent:40px;color:#333; font-weight:normal; background:url(../images/left_class_bg.gif) no-repeat #545454; }
#left .art_list_con, #left .prod_list_con,#left2 .art_list_con, #left2 .prod_list_con{margin-bottom:9px; padding:8px; zoom:1; overflow:auto;scrollbar-face-color: #E6E6E6;
scrollbar-highlight-color: #ffffff;scrollbar-shadow-color: #ffffff;scrollbar-3dlight-color: #B0B0B0;scrollbar-arrow-color: #666666;scrollbar-track-color: #f5f5f5;scrollbar-color: #B0B0B0;scrollbar-darkshadow-color: #9C9C9C; border-top:none;}
#left .art_list_con ul li,#left2 .art_list_con ul li{border-bottom:1px dashed #CCC; height:30px; line-height:30px;}
#left .art_list_con ul li .l_title,#left2 .art_list_con ul li .l_title{float:left; width:460px; height:30px; overflow:hidden; background:url(../images/news_arrow.gif) no-repeat left; background-position:0px 10px; padding-left:15px; }
#left .art_list_con ul li .n_time,#left2 .art_list_con ul li .n_time{float:right; color: #7E7E7E; padding-right:15px;}
#left .art_list_title{ display:none; }
#left2 .art_list{ margin-bottom:10px;}
#left2 .art_list_time{ float:right; margin-right:10px;}
#left2 .list_con ul.flink_index, #left .list_con ul.flink_index, #right .list_con ul.flink_index{line-height:2em;list-style:none; overflow:auto;zoom:1;}
#left .login_con, #left2 .login_con{ width:320px; margin:0 auto;}

/*--- 标题 ---*/
.login_title,.list_title,.cart_title,.newprod_title{font-size:13px;height:31px;line-height:31px;background:url(../images/left_class_bg.gif) no-repeat;text-indent:35px;color:#FFF;font-weight:bold; overflow:hidden;}
.list_title a,.list_title a:visited{color:#1A6592;}
.art_list_title{height:35px;line-height:35px;text-indent:35px;
color:#000 ;font-weight:normal;overflow:hidden;}
.order_title, .first_reg_title{background:url(../images/order_title_bg.gif) no-repeat; height:31px;line-height:31px;text-indent:35px;
color:#FFF; font-weight:bold; overflow:hidden;}

/*--- 自定义 ---*/
.custom_con{ border:1px solid #eaeaea; padding:15px; margin-bottom:9px;text-align:justify; text-justify:inter-ideograph; border-top:none;}
.custom_con td{text-align:justify; text-justify:inter-ideograph;}
4#
发表于 2011-9-17 15:41:30 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
5#
 楼主| 发表于 2011-9-17 17:43:12 | 只看该作者
本帖最后由 yueningfeng 于 2011-9-17 17:44 编辑

那个帖子只说让加入:body {background:url("../images/bg.jpg") no-repeat scroll center top transparent;margin:0;}

问题是在什么地方加入?  还有,这个代码是适用于背景的,图片管用吗?
我的模版的style.css代码已经拿出来了~! 能直接告诉我加在什么地方吗?

我试了试几个地方,加上以后都不对~!
6#
发表于 2011-9-17 17:59:47 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
7#
 楼主| 发表于 2011-9-19 09:09:05 | 只看该作者
你发的帖子是教我怎样用火狐浏览器编辑代码修改,我想知道的是怎样给单独某一个 模块的 标题背景图片 换成另一个图   情况我在上面已经说了啊 现在的情况是左边的 模块标题背景图片 全都是一致的 都指向同一个图片
右边的也是

我想知道的是应该怎样修改,我就是用火狐没找到呢 你们能告诉我吗 代码我都发出来饿~1
8#
发表于 2011-9-19 09:20:46 | 只看该作者
建站之星每个模块都有独立的class您可以通过查看源代码得到。通过独立的class来定义您的标题背景
9#
 楼主| 发表于 2011-9-19 09:56:02 | 只看该作者
我知道每个模块有独立的class样式,我要修改的内容 无非就在style.css里面
/*--- 左侧 ---*/
/*--- 标题 ---*/
/*--- 自定义 ---*/
这三项里面 我都把代码发在帖子里了 不能看看吗 问题是不知道怎么改,在哪一行改, 到现在不会还不明白我问的是什么吧?
10#
发表于 2011-9-19 10:35:21 | 只看该作者
请参考2楼回复
11#
 楼主| 发表于 2011-9-19 10:45:14 | 只看该作者
本帖最后由 yueningfeng 于 2011-9-19 10:49 编辑

咱不带这样的啊,老是让我参考,那个恢复对我确实无效啊,不能详细告诉一下吗?
*--- 标题 ---*/
.login_title,.list_title,.cart_title,.newprod_title{font-size:13px;height:31px;line-height:31px;background:url(../images/left_class_bg.gif) no-repeat;text-indent:35px;color:#FFF;font-weight:bold; overflow:hidden;}
.list_title a,.list_title a:visited{color:#1A6592;}
.art_list_title{height:35px;line-height:35px;text-indent:35px;
color:#000 ;font-weight:normal;overflow:hidden;}
.order_title, .first_reg_title{background:url(../images/order_title_bg.gif) no-repeat; height:31px;line-height:31px;text-indent:35px;
color:#FFF; font-weight:bold; overflow:hidden;}

这个是我的模版style.css里面的标题的代码~!
我都发出来了~!不能告诉我在哪一行做什么样的改动吗?
里面的left_class_bg.gif和order_title_bg.gif分别是左边和右边的标题背景~!
但左边所有模块都是用的left_class_bg.gif作为背景
右边都是用的order_title_bg.gif作为背景
不能给每个模块自定义不不同的背景吗???

真是求了~!麻烦认真给恢复一下~!
12#
发表于 2011-9-19 11:09:27 | 只看该作者
您需要在css中加入模块的独立的class.您可以通过查看源代码得到。
13#
 楼主| 发表于 2011-9-19 11:16:14 | 只看该作者
能换句回答的话吗~!这是干什么啊 管理员大人~!
源代码我看得到啊,我都已经看了好几遍了啊~1
你告诉我怎么添加那个独立的class不行吗~~!
14#
 楼主| 发表于 2011-9-19 14:29:14 | 只看该作者
试用建站之星到现在为止还一个完整的网站都没有做起来~!
上述问题能解决吗?
15#
发表于 2011-9-19 15:38:20 | 只看该作者
不同的模板,修改方式不一样,
以:jiaju-110118-a26为例:
#right .prod_type, #right2 .prod_type {
        padding-left: 5px;
    padding-top: 4px;
}
#right .prod_type ul, #right2 .prod_type ul {
        float: none;
    margin: 0 auto;
    width: 95%;
}

加上:background: none repeat scroll 0 0 #C111CC;
就行了

上海美橙科技信息发展有限公司 ( 沪ICP备11006888号-4 )

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