ecshop里面把logo的尺寸是寫固定了的,大概在150*35的樣子,如果設計的尺寸偏大,那么就會出現只能顯示部分logo的情況,
我請的合作美工出于漂亮和完整傳達意思的考慮,他把我的logo尺寸修改為150*52,這樣的話logo并不能完全顯示,尤其是底部
logo只能顯示大半部分,因此必須修改代碼使得能容納新版的logo圖標。
針對頭部文件的修改,在后臺中修改,
模板管理 -> 庫項目管理 -> page_header.lbi 找到 "images/logo.gif"這部分代碼,
原文件如下:
<div class="block clearfix">
<div class="f_l"><a href="../index.php" name="top"><img src="../images/logo.gif" /></a></div>
<div class="f_r log">
系統并沒有對圖片的尺寸進行限制,修改如下:
<div class="block clearfix">
<div class="f_l"><a href="../index.php" name="top"><img width="150" height="52" src="../images/logo.gif" /></a></div>
<div class="f_r log">
針對底部的修改,在style.css中完成,
找到
/*版權*/
#footer{background:url(images/logo1.gif) no-repeat 5% 50%; padding-left:200px; width:760px; margin:10px auto;}
#footer .text{background:url(images/footerLine.gif) no-repeat left center; padding-left:50px; *padding-bottom:20px;}
#footer .text a{color:#404040; text-decoration:none;}
這部分代碼,做如下修改:
#footer{background:url(images/logo1.gif) no-repeat 5% 50%; padding-left:200px; height:52px; width:760px; margin:10px auto;}
#footer .text{background:url(images/footerLine.gif) no-repeat left center; padding-left:50px; *padding-bottom:20px;}
#footer .text a{color:#404040; text-
新聞熱點
疑難解答