Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[已解决] 关于修改模版的图片显示问题

[复制链接]
noirshun 发表于 2009-9-22 01:36:32 | 显示全部楼层 |阅读模式
本帖最后由 noirshun 于 2009-9-22 15:50 编辑

请教下,关于修改模版的图片问题,我新建个频道在这个频道上的模版修改,想加个图片,但怎么显示不了??在本地调试的
3.jpg

代码
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>无标题文档</title>
  6. </head>

  7. <body>
  8. <?exit?>
  9. <!--{template header}-->
  10. </div>
  11. <!-- 调用站点header.html.php模板文件 -->

  12. <div id="nav">
  13.         <div class="main_nav">
  14.                 <ul>
  15.                         <!--{if empty($_SCONFIG['defaultchannel'])}-->
  16.                         <li><a href="{S_URL}/index.php">首页</a></li>
  17.                         <!--{/if}-->
  18.                         <!--{loop $channels['menus'] $key $value}-->
  19.                         <li <!--{if $key == $_SGET['name'] }--> class="current"<!--{/if}-->><a href="$value[url]">$value[name]</a></li>
  20.                         <!--{/loop}-->
  21.                 </ul>
  22.         </div>

  23. </div>
  24. <table width="100%" border="0" cellpadding="2">
  25.   <tr>
  26.     <td colspan="2"><img src="APMServ5.2.6/www/htdocs/site/images/banner11.jpg" width="500" height="200" /></td>
  27.   </tr>
  28.   <tr>
  29.     <td>&nbsp;</td>
  30.     <td>&nbsp;</td>
  31.   </tr>
  32. </table>

  33. <!--nav end-->
  34. <!-- 调用站点footer.html.php模板文件 -->
  35. <!--{template footer}-->
  36. </body>
  37. </html>
复制代码
回复

使用道具 举报

benba 发表于 2009-9-22 09:33:12 | 显示全部楼层
<img src="APMServ5.2.6/www/htdocs/site/images/banner11.jpg" width="500" height="200" />

原因在于你的图片路径有问题.....
回复

使用道具 举报

 楼主| noirshun 发表于 2009-9-22 09:50:27 | 显示全部楼层
原因在于你的图片路径有问题.....
benba 发表于 2009-9-22 09:33



    应该怎么修改,我在本地调试的
回复

使用道具 举报

benba 发表于 2009-9-22 10:10:42 | 显示全部楼层
最保险的文件是写绝对路径.如:
  1. http://www.nihaocq.com/templates/chongqing/images/logo.gif
复制代码
放到任何网站里都可以显示嘛!!!

回复

使用道具 举报

 楼主| noirshun 发表于 2009-9-22 10:33:53 | 显示全部楼层
最保险的文件是写绝对路径.如:
benba 发表于 2009-9-22 10:10



    哦,我这个在本地安装调试的,一定得上传网站才可以吗?
回复

使用道具 举报

 楼主| noirshun 发表于 2009-9-22 15:50:19 | 显示全部楼层
弄懂了,感谢..
回复

使用道具 举报

ecoswayinf 发表于 2009-9-22 15:52:31 | 显示全部楼层
肯定是要上传才会有效果的呀。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-14 03:23 , Processed in 0.138117 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表