如何修改织梦CMS水印的位置

织梦教程 强烈建议 2024-06-16 10:34 60 0

  今天想把个人的网站进行一些美工,突然发现织梦CMS系统默认水印的位置与图片边线相隔5像素,感觉很不美观。为此我进行水印的坐标的修改,下面把我的修改方法和大家共享下。我的方法如下:

  首先,请大家找到include目录下的image.class.php文件,然后查找以下代码:

  x = +5;

  $y = +5;

  break;

  case 2:

  $x = ($imagewidth - $logowidth) / 2;

  $y = +5;

  break;

  case 3:

  $x = $imagewidth - $logowidth - 5;

  $y = +5;

  break;

  case 4:

  $x = +5;

  $y = ($imageheight - $logoheight) / 2;

  break;

  case 5:

  $x = ($imagewidth - $logowidth) / 2;

  $y = ($imageheight - $logoheight) / 2;

  break;

  case 6:

  $x = $imagewidth - $logowidth - 5;

  $y = ($imageheight - $logoheight) / 2;

  break;

  case 7:

  $x = +5;

  $y = $imageheight - $logoheight - 5;

  break;

  case 8:

  $x = ($imagewidth - $logowidth) / 2;

  $y = $imageheight - $logoheight - 5;

  break;

  case 9:

  $x = $imagewidth - $logowidth - 5;

  $y = $imageheight - $logoheight -5;

  break;

  栏目从1-9,也就是水印的位置,和下表是相对应的,这里你就可以修改后面的数据修改坐标了。

  顶部居左 顶部居中 顶部居右

  左边居中 图片中心 右边居中

  底部居左 底部居中 底部居右

本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!