请教个问题,可以换图片LOGO吗?

ical   ·   发表于 2016-7-16   ·   模板开发

后台没找到地方啊。

9 条回复   |  直到 2017-1-13 | 6036 次浏览

admin
发表于 2016-7-16

/View/hy_boss/h.html 

<a href="{#WWW}">{$conf.logo}</a>

更改

<a href="{#WWW}"><img src="logo图片" ></a>

logo大小以及位置  请通过img.style进行调整 padding以及 width和height

评论列表

  • 加载数据中...

编写评论内容

ical
发表于 2016-7-16

谢谢,站长。这个程序真不错。

评论列表

  • 加载数据中...

编写评论内容

ical
发表于 2016-7-16

呵呵。多了一个空格。

<a href="{#WWW}"><img src="logo图片"></a>


评论列表

  • 加载数据中...

编写评论内容

admin
发表于 2016-7-16

注意不要使用  记事本 这类比较简单的编辑器 

请使用UTF8编辑器

评论列表

  • 加载数据中...

编写评论内容

ical
发表于 2016-7-17

谢谢。还需要请教一个问题。

我的主机是Nginx的,怎么写规则啊?不知道我描述清楚了了没。

评论列表

  • 加载数据中...

编写评论内容

ical
发表于 2016-7-17

@admin

评论列表

  • 加载数据中...

编写评论内容

admin
发表于 2016-7-17

如果使用了vhost 就需要到

/usr/local/nginx/conf/vhost/你的专属.conf 

编辑这个conf  

找到

#error_page 404 /404.html;
include enable-php.conf;

在下面增加

if (!-e $request_filename) {
 rewrite  ^(.*)$  /index.php?s=$1  last;
 break;
  }

形成

        include other.conf;
        #error_page   404   /404.html;
        include enable-php.conf;
if (!-e $request_filename) {
 rewrite  ^(.*)$  /index.php?s=$1  last;
 break;
  }
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

保存 重启Nginx即可

评论列表

  • 加载数据中...

编写评论内容

ical
发表于 2016-7-17

好牛逼。好了~~谢谢

评论列表

  • 加载数据中...

编写评论内容

885055288
发表于 2017-1-13

 @admin底部版权怎么修改啊

评论列表

  • 加载数据中...

编写评论内容
登录后才可发表内容