whatsns问答系统手机版logo图片过大缩小处理

先找到系统自带手机端主题fronzewap模板存放logo头部文件位置,程序根目录下/application/views/fronzewap/header.php文件

在<img src="{$setting['site_logo']}" 后边添加width="60%" height="30px"一段代码即可!

看下边实例!

<!--{template meta}-->
<section class="ui-container">


<div class="mheader">
<a class="logo" href="{SITE_URL}" title="{$setting['site_name']}" >
<img src="{$setting['site_logo']}" width="60%" height="30px" alt="{$setting['site_name']}">(这一段添加代码即可width="60%" height="30px")
</a>
<div class="m_operate">
   <div class="iconmore" onclick="window.location.href='{url question/searchkey}'">
   <i class="fa fa-search"></i>
   </div>
    <div class="iconmore togglenav" onclick="togglenav()">
   <i class="fa fa-align-justify"></i>
   </div>
</div>
</div>

  <!--{eval $headernavlist = $this->fromcache("headernavlist");}-->

Leave a Reply

后才能评论