大家好,我在设置标签时遇到一个问题无法解决,希望大家能给予帮助。
情况是这样的,我在后台设置标签进行调试,开始时调用的是后台里面原有的栏目,如图
-
自定义输出样式
[loop=1]<div class="hd_bk"><table width='100%' cellpadding='0' cellspacing='5' border='0' align='center'><tr valign='top'><td align='center'><a class="" href="{@linkurl}" title="{@fulltitle}" target="_blank"><img class='pic1' src= width='215' height='156' border='0'></a></td></tr></table></div>[/loop]<div class="left11">[loop=1]<div align="center"><table width="100%" cellpadding="0" cellspacing="0"><tr><td class=""><a class="news_t" href="{@linkurl}" title="{@fulltitle}" target="_self">{@title}</a></td></tr><tr></tr></table></div>[/loop]<div><table width="100%" cellpadding="0" cellspacing="0">[loop=6]<tr><td width="10" valign="top" class="listbg3">·</td><td class="listbg3"><a class="" href="{@linkurl}" title="{@fulltitle}" target="_self">{@title}</a></td><td align="right" class="listbg3" width="40">{@adddate}</td></tr>[/loop]<tr></tr></table></div></div>
在页面的显示效果如下:效果很好
后来我新建了一个栏目(下图“校园快讯”),添加了一些文章后,把标签的栏目选定为新建的栏目,结果就不行了
页面显示如下,完全错乱了,标签只显示出一张图片,文章看不到
求解,谢谢!
附上模板和css样式
- 模板<div class="bk2" ><div class="nr1111">{LB_通知公告}</div></div><div ><img src="{$GetInstallDir}skin/dxjy/bk_bom.gif"/></div></div><div class="bk8" ><div class="bt11_bg" ><div class="left" style="margin-top:8px; margin-left:4px"><img src="{$GetInstallDir}skin/dxjy/icon2.gif" alt="新闻"/></div><div class="bt">教育新闻</div><!--滑动门标题开始--><div class="bt11"><div class=n4Tab ><div class=submenu align="center" ><UL><LI id=box1 class=hover onmouseover="setTab1('box',1,4)" onmouseout=settimeout() ><H6><A href="/">校园快讯 </A></H6></LI><LI id=box2 class=normal onmouseover="setTab1('box',2,4)" onmouseout=settimeout()><H6><A href="/">广东教育 </A></H6></LI><LI id=box3 class=normal onmouseover="setTab1('box',3,4)" onmouseout=settimeout()><H6><a href="/">国内教育</a></H6></UL></div></div></div><!--滑动门标题结束--></div><div class="bk22" ><!--滑动门内容开始--><div id=con_box_1 onmouseover="setTab1('box',1,4)" onmouseout=settimeout()><div class="nr1">{LB_校园快讯}</div></div><div style="DISPLAY: none" id=con_box_2 onmouseover="setTab1('box',2,4)" onmouseout=settimeout()><div class="nr1">{LB_广东教育}</div></div><div style="DISPLAY: none" id=con_box_3 onmouseover="setTab1('box',3,4)" onmouseout=settimeout()><div class="nr1">{LB_国内教育}</div></div><!--滑动门内容结束--></div>
-
css样式/*网站第一部分定义开始*/#center1{width:992px;border-left:1px solid #D2D2D2;border-right:1px solid #D2D2D2; height:590px;margin:0px auto; background: #ffffff ; }.c_left{ width:736px; float:left}.c_right{ width:225px; float:right}.bk{ width:225px; height:221px; float:left;}.bk1{ width:496px; height:234px; float:right; }.bk2{ background-image:url(dxjy/bk_bg1.gif); border-left :1px solid #B0D786;border-right :1px solid #B0D786; height:185px;width:100%; }.bk266{ background-image:url(dxjy/bk_bg1.gif); border-left :1px solid #B0D786;border-right :1px solid #B0D786; height:182px;width:100%; }.bk22{ background-image:url(dxjy/bk_bg1.gif); border-left :1px solid #B0D786;border-right :1px solid #B0D786; height:183px;width:496px; }.bk222{ background-image:url(dxjy/bk_bg1.gif); border-left :1px solid #B0D786;border-right :1px solid #B0D786; height:185px;width:223px; }.bk3{ width:242px; height:221px; float:left; }.bk4{ width:242px; height:221px; float:right; }.bk5{ background-image:url(dxjy/bk_bg1.gif); border-left :1px solid #B0D786;border-right :1px solid #B0D786; height:185px;width:498px; }.bk6{ width:225px; float:left; margin-bottom:10px }.bk7{ background-image:url(dxjy/bk_bg1.gif); border-left :1px solid #B0D786;border-right :1px solid #B0D786; height:288px;width:223px; }.bk8{ width:498px; height:233px; float:right; }.bt_bg{ background-image:url(dxjy/bk_bg.gif); height:31px;width:227px;}.bt_bg1{ background-image:url(dxjy/bk2_bg.gif); height:31px;width:244px;}.bt_bg2{ background-image:url(dxjy/bk3_bg.gif); height:31px;width:225px;}.bt1_bg{ background-image:url(dxjy/bk1_bg.gif); height:33px;width:498px;}.bt11_bg{ background-image:url(dxjy/bk11_bg.gif); height:33px;width:498px;}.bt{ font-weight:bold; color: #479300; font-size:13px; padding-top:7px; padding-left:7px;width:80px; float:left;}.bt1{ font-weight:bold; color: #ffffff; font-size:13px; padding-top:7px; padding-left:14px; float:left}.more{ padding-top:13px; padding-right:10px; float:right}.tb{ float:left;margin-top:9px; margin-left:6px}.tb1{ float:left;margin-top:8px; margin-left:6px}.jg{ padding:0px 10px; float:left}.hd_bk{ width:225px; height:166px; border:1px solid #B0D786; float:left; margin-right:10px; }#myul{width:203px;list-style-type:none; margin:0px; height:32px;padding:0}#myul li{float:left;width:80px; height:27px; padding-top:5px; padding-left:15px }#soft_lb{width:686px;list-style-type:none; margin:0px; height:33px;padding:0; line-height:25px; color:#479300 }#soft_lb li{float:left;width:82px; height:28px; padding-top:5px; padding-left:15px; border-bottom:1px }#soft_lb1{width:686px;list-style-type:none; margin:0px; height:25px;padding:0; line-height:25px;}#soft_lb1 li{float:left;width:82px; height:20px; padding-left:15px; border-bottom:1px dotted #cccccc;}.left11{ float:left;width:237px }/*网站第一部分定义结束********************************************************************************************************************/