在论坛里下了所有的底部美化模板。安装起来了后。都是不能居中
进行多次测试。发现在窄屏的情况下可以正常居中
不过一但调整成宽屏就底部就不能正常居中
请哪位高手能帮忙发一个能用的底部模板呀
不能窄屏正常,宽屏就不正常呀。
好多朋友说要加DIV 与center
可是我却不知道把这个加在代码的什么位置。我把代码贴出来。希望好心人能帮忙我一下。告诉我添加在什么公位置。
</div>
<!--{if empty($topic) || ($topic[usefooter])}-->
<!--{eval $focusid = getfocus_rand($_G[basescript]);}-->
<!--{if $focusid !== null}-->
<!--{eval $focus = $_G['cache']['focus']['data'][$focusid];}-->
<div class="focus" id="sitefocus">
<div class="bm">
<div class="bm_h cl">
<a href="javascript:;" class="y" title="{lang close}">{lang close}</a>
<h2><!--{if $_G['cache']['focus']['title']}-->{$_G['cache']['focus']['title']}<!--{else}-->{lang focus_hottopics}<!--{/if}--></h2>
</div>
<div class="bm_c">
<dl class="xld cl bbda">
<dt><a href="{$focus['url']}" class="xi2" target="_blank">$focus['subject']</a></dt>
<!--{if $focus[image]}-->
<dd class="m"><a href="{$focus['url']}" target="_blank"><img src="{$focus['image']}" alt="$focus['subject']" /></a></dd>
<!--{/if}-->
<dd>$focus['summary']</dd>
</dl>
<p class="ptn hm"><a href="{$focus['url']}" class="xi2" target="_blank">{lang focus_show} »</a></p>
</div>
</div>
</div>
<!--{/if}-->
<!--{ad/footerbanner/wp a_f/1}--><!--{ad/footerbanner/wp a_f/2}--><!--{ad/footerbanner/wp a_f/3}-->
<!--{ad/float/a_fl/1}--><!--{ad/float/a_fr/2}-->
<!--{ad/couplebanner/a_fl a_cb/1}--><!--{ad/couplebanner/a_fr a_cb/2}-->
<!--{ad/cornerbanner/a_cn}-->
<!--{hook/global_footer}-->
<div id="ft" class="wp cl">
<div id="flk" class="y">
<table width="960" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="center"> <!--{loop $_G['setting']['footernavs'] $nav}--><!--{if $nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) ||
!$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile'))}--><!--{if $nav['id'] == 'mobile' && $_G['setting']['mobile']['allowmobile'] != 1}--><!--{eval continue;}--><!--{/if}-->$nav[code]<span class="pipe">|</span><!--{/if}--><!--{/loop}--><!--{hook/global_footerlink}-->
<!--{if $_G['setting']['statcode']}-->$_G['setting']['statcode']<!--{/if}--></td>
</tr>
<tr>
<td height="20" align="center">油田社区-<a >水乡油田</a>,<a >油田信息港</a>,分享提供最新<a >江苏油田社区</a>,<a >苏油论坛</a>,<a >油民论坛</a>,<a >油民公社</a>。
<tr>
<td align="center">注:本站如有信息侵犯了您的权益,请联系客服<font color="red">QQ:88888888</font>及时删除。本站将乐意接受您的意见,并及时作出修改。</td></tr>
<tr>
<td align="center">本站免责声明:本论坛所有内容仅代表发表者个人观点,不代表本论坛立场。本论坛拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论!</td></tr>
<tr>
<td height="20" align="center">Powered by <a href="https://discuz.dismall.com" target="_blank">Discuz!</a> X2.5 技术支持:<a >苏油论坛</a>版权所有 Copyright© 2011-2012 All Right Reserved. <script LANGUAGE="JavaScript"><!--
now = new Date()
nowyear=now.getYear()
if(nowyear<2000)
nowyear=nowyear+1900
nowmonth=now.getMonth()+1
nowdate=now.getDate()
years=nowyear-2012
months=nowmonth-5
dates=nowdate-01
if((years<0)||((years==0)&&(months<0))||((years==0)&&(months==0)&&(dates<=0)))
document.write("<span><font color=red>你的系统时钟好像不太对哦!</font></span>")
else {
if(dates<0) {
months=months-1
dates=dates+30
}
if(months<0) {
years=years-1
months=months+12
}
document.write("已运营")
if (years>0) {
document.write(years)
document.write("年")
}
if(months>0) {
document.write(months)
document.write("个月")
}
if(((years>0)||(months>0))&&(dates>0))
document.write("零")
if(dates>0) {
document.write(dates)
document.write("天")
}
else
document.write("整")
document.write("!")
if((months==0)&&(dates==0)) {
document.write("<b>今天是IT论坛的生日!")
document.write("</b>")
}
}
//-->
</script> </td>
</tr></td>
</tr>
<tr>
<td height="60" align="center" valign="middle"><table width="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.lunlr.com/images/foot_wljc.gif" width="118" height="48" border="0"></a></td>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.lunlr.com/images/foot_beian.gif" width="118" height="48" border="0"></a></td>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.lunlr.com/images/foot_jubao.gif" width="118" height="48" border="0"></a></td>
</tr>
</table></td>
<td align="center"><table width="120" height="50" border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
<tr>
<td align="center" valign="middle"><a href="#" target="_blank"><img src="http://www.lunlr.com/images/foot_110.gif" width="118" height="48" border="0"></a></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table>
</div>
<!--{eval updatesession();}-->
<!--{if $_G['uid'] && $_G['group']['allowinvisible']}-->
<script type="text/javascript">
var invisiblestatus = '<!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}-->';
$('loginstatusid').innerHTML = invisiblestatus;
<!--{/if}-->
</script>
</div>
<!--{if $upgradecredit !== false}-->
<div id="g_upmine_menu" class="tip tip_3" style="display:none;">
<div class="tip_c">
{lang credits} $_G[member][credits], {lang thread_groupupgrade} $upgradecredit {lang credits}
</div>
<div class="tip_horn"></div>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if !$_G['setting']['bbclosed']}-->
<!--{if $_G[uid] && !isset($_G['cookie']['checkpm'])}-->
<script type="text/javascript" src="../home.php?mod=spacecp&ac=pm&op=checknewpm&rand=$_G[timestamp]"></script>
<!--{/if}-->
<!--{if !isset($_G['cookie']['sendmail'])}-->
<script type="text/javascript" src="../home.php?mod=misc&ac=sendmail&rand=$_G[timestamp]"></script>
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET['diy'] == 'yes'}-->
<!--{if (CURMODULE == 'topic' || $_G['group']['allowdiy']) && (empty($do) || $do != 'index') && !empty($_G['style']['tplfile'])}-->
<script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
<script type="text/javascript" src="{$_G[setting][jspath]}portal_diy.js?{VERHASH}"></script>
<!--{/if}-->
<!--{if $space['self'] && CURMODULE == 'space' && $do == 'index'}-->
<script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
<script type="text/javascript" src="{$_G[setting][jspath]}space_diy.js?{VERHASH}"></script>
<!--{/if}-->
<!--{/if}-->
<!--{if $_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G[uid]]) || $_G['cookie']['promptstate_'.$_G[uid]] != $_G['member']['newprompt']) && $_G['gp_do'] != 'notice'}-->
<script type="text/javascript">noticeTitle();</script>
<!--{/if}-->
<!--{eval userappprompt();}-->
<span id="scrolltop">{lang scrolltop}</span>
<script type="text/javascript">_attachEvent(window, 'scroll', function(){showTopLink();});</script>
<!--{eval output();}-->
</body>
</html>
|