晓天 宝贝详情网页不居中 咋办

2016-07-07 15:36 来源:www.chinab4c.com 作者:ecshop专家

1.jpg
例如:http://www.fansyy.cn/goods.php?id=128
在火狐情况下 正常 遨游不正常
style.css 内容

/*----- goods_list -----*/
.goods_list{width:100%; margin-bottom:8px;}
.goods_list .caption{height:28px; overflow:hidden; padding:0 0 0 4px; background:url(images/header_bg.gif) no-repeat 0 -331px; font-size:14px; color:#666666; font-weight:bold; line-height:28px;}
.goods_list .caption .sort{float:right; height:28px; padding:0 4px 0 0; font-size:12px; line-height:28px; font-weight:normal; background:url(images/span.gif) no-repeat top right;}
.goods_list .caption .sort img, .goods_list .caption .sort .go{position:relative; top:3px;}
.goods_list .caption .sort .kuang{border:1px #e4e4e4 solid; *height:20px; +margin-top:2px; _margin-top:3px;}
.goods_list .content{border:1px #E4E4E4 solid;}

/*--- switchover ---*/
.switchover{height:17px; display:inline; float:left; position:relative; top:6px; left:30px; text-align:center;}
.switchover h2{ height:16px; float:left; position:relative; top:1px; _top:0px; _width:60px; background:#fff; border:1px #ccc solid; border-bottom:none; white-space:nowrap; padding:2px 4px; margin-right:5px; float:left; line-height:16px; cursor:pointer; }
.switchover h2 a{ color:#74081F; font-weight:normal; padding:2px; font-size:12px; line-height:13px; display:block; text-align:center;}
.switchover .h2bg{background:none; border:1px #ccc solid; border-bottom:none; padding:2px 4px; font-size:11px; line-height:26px; text-align:center;}
.switchover .h2bg a{ background:none; color:#000000; padding-top:2px; text-align:center;}
/*--- goods_grid ---*/
.goods_grid{ display:block; overflow:hidden; zoom:1; padding:0 0 0 4px;}
.goods_grid li{ width:156px; float:left; padding:11px 8px 9px;margin-left:8px;}
.goods_grid .img{border:1px solid #E4E4E4; width:150px; height:150px;}
.goods_grid .img img{width:150px; height:150px;}
.goods_grid .name{text-align:center; height:27px; padding-top:4px; overflow:hidden; line-height:14px; width:150px;}
.goods_grid .price{text-align:center; height:20px; width:150px; line-height:20px; overflow:hidden; }
/*--- goods_grid2 ---*/
.goods_grid2{ display:block; overflow:hidden; zoom:1; padding:0 0 0 4px;}
.goods_grid2 li{ width:165px; float:left; padding:11px 9px 9px;}
.goods_grid2 .img{border:1px solid #E4E4E4; width:150px; height:150px;}
.goods_grid2 .img img {width:150px; height:150px;}
.goods_grid2 .img a{height:150px; height:150px; display:block;}
.goods_grid2 .name{text-align:center; height:25px; overflow:hidden; line-height:25px; font-size:12px; font-weight:bold; width:158px;}
.goods_grid2 .market_price{text-decoration:line-through; color:#000;}
.goods_grid2 .price{text-align:center; font-size:12px; color:#CE2104; width:158px; line-height:20px; overflow:hidden; }
/*--- goods_item ---*/
.goods_item{ display:block; overflow:hidden; zoom:1; padding:0 0 0 4px;}
.goods_item li{ width:99%; display:block; float:left; padding:11px 0 9px; border-bottom:1px #ccc dashed;}
.goods_item .img{border:1px solid #E4E4E4; float:left; width:65px; height:65px;}
.goods_item .img img{height:65px; width:65px;}
.goods_item .name{text-align:center; padding:0 10px; text-align:left; width:290px; height:40px; overflow:hidden; line-height:20px; float:left;}
.goods_item .name a:hover{color:#333;}
.goods_item .name a{font-size:13px; font-weight:bold; color:#FF6600;}
.goods_item .price{text-align:center; float:left; padding-top:8px; text-align:left; color:#CE2104; line-height:20px; overflow:hidden; }
.goods_item .market_price{text-decoration:line-through; color:#000;}
.goods_item .item_cart{float:right; padding-top:25px;}

/*--- goods_text ---*/
.goods_text{ display:block; overflow:hidden; zoom:1; padding:0 0 0 4px;}
.goods_text li{ width:99%; display:block; float:left; padding:11px 0 9px; border-bottom:1px #ccc dashed;}
.goods_text .name{text-align:center; padding:0 10px; text-align:left; width:380px; height:40px; overflow:hidden; line-height:20px; float:left;}
.goods_text .name a:hover{color:#333;}
.goods_text .name a{font-size:13px; font-weight:bold; color:#FF6600;}
.goods_text .price{text-align:center; float:left; padding-top:8px; text-align:left; color:#CE2104; line-height:20px; overflow:hidden; }
.goods_text .market_price{text-decoration:line-through; color:#000;}
.goods_text .item_cart{float:right; padding-top:16px;}

/*----- goods_info -----*/
#goods_info{width:742px; overflow:hidden; zoom:1;}
#goods_info h1{height:30px; line-height:30px; font-size:14px; color:#3366CC; margin-bottom:1px; text-align:left; border-bottom:1px #e4e4e4 dashed;}
#goods_info .img_info{width:230px; float:left; margin-right:50px;}
#goods_info .img_info .pic{width:230px; height:230px; overflow:hidden; border:1px solid #E4E4E4; text-align:center;}
#goods_info .img_info .pic a{width:230px; height:230px; display:block;}
#goods_info .text_info{width:360px; padding:0 10px 0 0px; float:left; font-size:13px;}
#goods_info .text_info .itemBtnList{display:block; padding:1px 0; }
#goods_info .text_info .itemBtnList a:hover{color:#000;}
#goods_info .text_info .itemBtnList a{display:inline-block; margin-right:10px; float:left; line-height:31px; color:#FF6600;height:31px; line-height:31px;}
#goods_info .text_info label{margin-left:0px;}

回答:
请问你是否修改过模板,如果未修改模板,你可以用源模板覆盖试下

修改过 在宝贝缩列图下面加了个广告
1.jpg
<!--广告-->
<div style="height:100px; width:216px; margin-top:5px; ">
<!--菘始-->
<img src="images/1.jpg" height="100px" width="216px" />
<!--萁-->
</div>
</div>

是花钱当时找别人做的 现在是乱码 我不知道修复成什么样 那个人现在找不到了

晓天呢?

我把原模板覆盖了还是这样是style.css 的问题吧?

官网上重新下载该模板,然后覆盖试下

是覆盖style.css还是good.dwt?

/*----- goods_info -----*/
#goods_info{width:742px; overflow:hidden; zoom:1;}
#goods_info h1{height:30px; line-height:30px; font-size:14px; color:#3366CC; margin-bottom:8px; text-align:left; border-bottom:1px #e4e4e4 dashed;}
#goods_info .img_info{width:312px; float:left;}
#goods_info .img_info .pic{width:310px; height:310px; overflow:hidden; border:1px solid #E4E4E4; text-align:center;}
#goods_info .img_info .pic a{width:310px; height:310px; display:block;}
#goods_info .text_info{width:400px; padding:0 10px 0 15px; float:left; font-size:13px;}
#goods_info .text_info .itemBtnList{display:block; padding:10px 0; height:31px; line-height:31px;}
#goods_info .text_info .itemBtnList a:hover{color:#000;}
#goods_info .text_info .itemBtnList a{height:31px; display:inline-block; margin-right:10px; float:left; line-height:31px; color:#FF6600;}
#goods_info .text_info label{margin-left:27px;}

CSS我找到控制商品详情的了 但是没发现什么错误

登录你的网站,你的css文件和原的css文件些不一样哦,你可以重新下载,然后把全部文件覆盖试下

[img src='aa.jpg' width=1000 height=1000][/img]