问题二:
http://dreamweaver.chinahtml.com/200...69115542.shtml
为什么有的文章有相关文章,有的没有,没有相关文章的,就没显示那个栏目,是如何做到的呢
回答很容易阿,你是在模版中用了PHP控制,还是做了2套模版?还是改了程序?回答一下,不方便提供也没关系阿,让偶知道你是怎么做到的,很好奇阿!!!!
|
|||||||
| 网站开发与设计 网页设计、网站开发、网站维护与调试交流区。 |
| 双至强仅二千,企商在线,最早租用商 | 时代冠军主机588元/2年送邮箱域名 | 亿恩1元帮您升级服务器! | 全球最新的创意可以产品 |
| 站长轻松日赚500,日结稳定高价,QQ:705491 705492 | 英雄合击 热血江湖私服 传奇私服 | 此文字广告位招租 | 完美世界私服 魔域私服 传奇私服 |
![]() |
|
|
主题工具 | 主题评分 | 显示模式 |
|
|
#1 (页面定位) |
|
青铜长老
![]() 注册日期: 2006-05-23
帖子: 266
![]() |
请教老鬼一个严重的问题!!!!!!
问题二:
http://dreamweaver.chinahtml.com/200...69115542.shtml 为什么有的文章有相关文章,有的没有,没有相关文章的,就没显示那个栏目,是如何做到的呢 回答很容易阿,你是在模版中用了PHP控制,还是做了2套模版?还是改了程序?回答一下,不方便提供也没关系阿,让偶知道你是怎么做到的,很好奇阿!!!! |
|
|
|
|
|
#4 (页面定位) |
|
青铜长老
![]() 注册日期: 2006-05-23
帖子: 266
![]() |
相关文章 的那个div怎么整个都消失了呢????在没有相关文章的网页,这一大块是没有的。。。。
<div id="relatedarticle"> <h2>相关文章</h2> <ul> <li><span>2007-09-03 11:21:43</span><a href='http://database.chinahtml.com/other/2007/118879017915867.shtml' title='自由软件数据库 PostgreSQL 简介'>自由软件数据库 PostgreSQL 简介</a></li> <li><span>2007-09-03 11:05:36</span><a href='http://database.chinahtml.com/other/2007/118878899315866.shtml' title='Windows下PostgreSQL 8.1版安装图解'>Windows下PostgreSQL 8.1版安装图解</a></li> <li><span>2007-03-16 11:07:57</span><a href='http://mysql.chinahtml.com/2007/117401449412056.shtml' title='针对MySQL和PostgreSQL两数据库对比'>针对MySQL和PostgreSQL两数据库对比</a></li> <li><span>2007-02-14 11:26:05</span><a href='http://mysql.chinahtml.com/2007/117142359911146.shtml' title='MySQL和PostgreSQL两数据库的对决'>MySQL和PostgreSQL两数据库的对决</a></li> <li><span>2006-12-26 12:14:37</span><a href='http://mysql.chinahtml.com/2006/mysql-11671065599870.shtml' title='将你的网站从MySQL改为PostgreSQL'>将你的网站从MySQL改为PostgreSQL</a></li> <li><span>2006-08-07 09:44:07</span><a href='http://mysql.chinahtml.com/2006/11549150915551.shtml' title='评价:MySQL和PostgreSQL的优劣较量'>评价:MySQL和PostgreSQL的优劣较量</a></li> </ul> <div class="clear"></div> </div> |
|
|
|
|
|
#5 (页面定位) |
|
CH重振中
![]() 注册日期: 2005-08-30
住址: 地球
帖子: 12300
![]() |
我把你上面的html代码都放在相关文章模板里了
相关信息链接模板 HTML 代码:
<div id="relatedarticle"> <h2>相关文章</h2> <ul> [!--empirenews.listtemp--] <li><span>[!--newstime--]</span><a href='[!--titleurl--]' title='[!--title--]'>[!--title--]</a></li> [!--empirenews.listtemp--] </ul> <div class="clear"></div> </div> |
|
|
|