新品圖片recommed_new 大小問題

2016-07-07 16:21 来源:www.chinab4c.com 作者:ecshop专家



這個是130x130
是正中間的


當我改大的時候
走位了


有大大知道如何修改嗎?


以下是我的 recommed_new.lbi
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  2. <!-- {if $new_goods}-->
  3. <div class="title-recommend"><a href="../search.php?intro=new"><img src="../images/recommend_news.gif" width="143" height="25" /></a></div>
  4. <div class="goods-recommend">
  5. <!--{foreach from=$new_goods item=goods}-->
  6. <li><A href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" width="130" height="130"border="0" class="thumb" /></A><br>
  7. {$goods.short_style_name}<br>
  8. <?php if(CheckUserLogin()) {?>
  9. <!-- {if $goods.promote_price neq ""} -->
  10. <span class="goods-price"><strong>{$goods.promote_price}</strong></span>
  11. <!-- {else}-->
  12. <span class="goods-price"><strong>{$goods.shop_price}</strong></span>
  13. <!--{/if}-->
  14. <?php } else { ?>
  15. <span class="goods-price"><strong>{$lang.isshowpire}</strong></span>
  16. <?php } ?>
  17. </li>
  18. <!--{/foreach}-->

  19. </div><div class="more"><a href="../search.php?intro=new"><img src="images/more.gif" align="right" /></a></div>
  20. <div><br style="clear:both"/></div>
  21. <!-- {/if} -->
复制代码



以下是CSS

  1. .goods-recommend {
  2. width:600px;
  3. list-style-type: none;
  4. color:#999999;
  5. font-size:12px;
  6. }
  7. .goods-recommend li {
  8. text-align:center;
  9. padding-right:13px;
  10. padding-bottom:8px;
  11. margin-bottom:5px;
  12. float:left;
  13. white-space:nowrap;
  14. width:128px;
  15. text-overflow:ellipsis;
  16. overflow:hidden;
  17. border-bottom: 2px solid #EEEEEE;
  18. }
复制代码

回答:
已搞好了