我是新手来的。因为不懂DIV这些东西,不知道怎能么调啊。
需要实现的效果如图所示,对于你们来说,应该再简单不过了吧。
看图。。。
下面是所用到的代码。。。谢谢各位啦!
- <div class="mainbox">
- <div class="news_gx">
- <div class="news_gx_l01">
- <div class="news_gx_l01_1">
- <h3>图片新闻</h3>
- <!--图文资讯显示-->
- <!--{block name="spacenews" parameter="haveattach/2/showattach/1/showdetail/1/order/i.dateline DESC/limit/0,17/subjectlen/18/subjectdot/0/messagelen/30/messagedot/1/cachetime/11930/cachename/picnews"}-->
- <!--{if !empty($_SBLOCK['picnews'])}-->
- <!--{eval $picnews2 = @array_slice($_SBLOCK['picnews'], 5, 17);}-->
- <!--{/if}-->
- <ul class="globalnews_piclist clearfix globalnews_piclist_y">
- <!--{loop $picnews2 $value}-->
- <li><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]"/></a><span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></span></li>
- <!--{/loop}-->
- </ul>
- </div>
- <div class="catalog_list clearfix news_gx_w">
- <div class="global_module">
- <!--{block name="spacenews" parameter="catid/1/haveattach/2/showattach/1/order/i.viewnum DESC/limit/0,5/cachetime/$ctime/subjectlen/36/subjectdot/1/cachename/hotpicnews"}-->
- <div class="global_module1_caption"><h3>资料一</h3><a href="#action/category/catid/1#" target="_blank" class="more">更多>></a></div>
- <ul class="global_tx_list1">
- <!--{block name="spacenews" parameter="catid/1/order/i.dateline DESC/limit/0,8/cachetime/$cachetime/subjectlen/48/subjectdot/1/cachename/newslist"}-->
- <!--{loop $_SBLOCK['newslist'] $value}-->
- <li><span class="box_r">#date('m-d',$value['dateline'])#</span><a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- <div class="catalog_list clearfix news_gx_w">
- <div class="global_module">
- <!--{block name="spacenews" parameter="catid/3/haveattach/2/showattach/1/order/i.viewnum DESC/limit/0,5/cachetime/$ctime/subjectlen/36/subjectdot/1/cachename/hotpicnews"}-->
- <div class="global_module1_caption"><h3>资料二</h3><a href="#action/category/catid/3#" target="_blank" class="more">更多>></a></div>
- <ul class="global_tx_list1">
- <!--{block name="spacenews" parameter="catid/3/order/i.dateline DESC/limit/0,8/cachetime/$cachetime/subjectlen/48/subjectdot/1/cachename/newslist"}-->
- <!--{loop $_SBLOCK['newslist'] $value}-->
- <li><span class="box_r">#date('m-d',$value['dateline'])#</span><a href="$value[url]" title="$value[subjectall]" target="_blank">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- </div>
- <div class="news_gx_r news_gx_r_y">
- <div class="news_gx_r_1">
- <h3>最新评论</h3>
- <!--最新评论资讯显示-->
- <!--{block name="spacenews" parameter="order/i.lastpost DESC/limit/0,12/subjectlen/26/subjectdot/0/cachetime/7500/cachename/newnews"}-->
- <ul class="global_tx_list3">
- <!--{loop $_SBLOCK['newnews'] $value}-->
- <li><span class="box_r">#date('m-d', $value['lastpost'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <div class="news_gx_r_1">
- <h3>月度评论</h3>
- <!--月度评论热点-->
- <!--{block name="spacenews" parameter="lastpost/2592000/order/i.replynum DESC/limit/0,11/cachetime/75400/subjectlen/26/subjectdot/0/cachename/replyhot"}-->
- <ul class="global_tx_list3">
- <!--{loop $_SBLOCK['replyhot'] $value}-->
- <li><span class="box_r">$value[replynum]</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <div class="news_gx_r news_gx_r_y">
- <div class="news_gx_r_1">
- <h3>最新评论</h3>
- <!--{block name="spacenews" parameter="order/i.lastpost DESC/limit/0,12/subjectlen/26/subjectdot/0/cachetime/7500/cachename/newnews"}-->
- <ul class="global_tx_list3">
- <!--{loop $_SBLOCK['newnews'] $value}-->
- <li><span class="box_r">#date('m-d', $value['lastpost'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
复制代码 |