日期:2014-05-17  浏览次数:20834 次

div设置margin:0 auto;后弹出框错位,求解!




PHP code

<div id="sub-header">
    <div class="layout">
        <a id="sub-logo" href="{$_G[siteurl]}"><img src="/style/images/small_logo.jpg" title="$_G['setting']['bbname']" alt="$_G['setting']['bbname']" /></a>
        <div id="sub-menu">
            <dl class="menu-nav">
                <dt><a href="{$_G[siteurl]}" onMouseOver="showMenu({'ctrlid':'twt','duration':'2'});">123</a></dt>
                <dd id="twt_menu" class="nav-floor" style="display:none;">
                    <ol>
                    <!--{eval $i = 1;}-->
                    <!--{loop $catlist $cat}-->
                        <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum

['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$cat[fid];}-->
                    <li><a href="$forumurl" title="$cat[name]"><!--{if $i <= '9'}-->$number{$i}<!--{else}-->{$i}<!--{/if}-->#$cat[name]</a></li>
                    <!--{eval $i ++;}-->
                    <!--{/loop}-->
                    </ol>
                </dd>
            </dl>
        </div>
<!--{if $_G['setting']['search']}-->
    <!--{eval $slist = array();}-->
    <!--{if $_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group'}--><!--{block slist[forumfid]}--><li><a href="javascript:;" rel="curforum" class="curtype">{lang 

search_this_forum}</a></li><!--{/block}--><!--{/if}-->
    <!--{if $_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)}--><!--{block slist

[portal]}--><li><a href="javascript:;" rel="article"{if CURSCRIPT == 'portal'} class="curtype"{/if}>{lang article}</a></li><!--{/block}--><!--{/if}-->
    <!--{if $_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)}--><!--{block slist[forum]}--><li><a href="javascript:;" 

rel="forum"{if (CURSCRIPT == 'forum' && !$_G['fid']) || (CURSCRIPT == 'home' && in_array($do, array('thread', 'activity', 'poll', 'reward', 'debate', 'trade')))} 

class="curtype"{/if}>{lang thread}</a></li><!--{/block}--><!--{/if}-->
    <!--{if $_G['setting']['homestatus'] && $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)}--><!--{block slist

[blog]}--><li><a href="javascript:;" rel="blog"{if CURSCRIPT == 'home' && $do == 'blog'} class="curtype"{/if}>{lang blog}</a></li><!--{/block}--><!--{/if}-->
    <!--{if $_G['setting']['homestatus'] && $_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)}--><!--{block slist

[album]}--><li><a href="javascript:;" rel="album"{if CURSCRIPT == 'home' && $do == 'album'} class="curtype"{/if}>{lang album}</a></li><!--{/block}--><!--{/if}-->
    <!--{if $_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G[