很费解。菜鸟级别,也看不懂有什么猫腻。IE8的显示:
IE7的显示;
header文件内的META默认为IE7.
<meta http-equiv="x-ua-compatible" content="ie=7" />
header文件内的代码为:
- <div id="header" >
- <div class="wrapp s_clear">
- <div class="uemenu">
- <div id="menu">
- <script type="text/javascript">
- var currentMenu = $('mn_$mnid') ? $('mn_$mnid') : $('mn_$navmns[0]');
- currentMenu.parentNode.className = 'current';
- </script>
- <script type="text/javascript">
- if (window == top) {
- document.write ("<a href=http://www.2mkc.com target=_top><font color=#CC3366 size=2px><b>首 页</b></font></a>");
- } else {
- document.write ("<a href=http://www.2mkc.com target=_top><font color=#CC3366 size=2px><b>首 页</b></font></a>");
- }
-
- </script>
- <ul>
- <!--{if $_DCACHE['settings']['frameon'] > 0}-->
- <li> <span class="frameswitch">
- <script type="text/javascript">
- if(top == self) {
- {if ($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))}
- top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
- {/if}
- document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">{lang frameon_column}<\/a>');
- } else {
- document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">{lang frameon_flat}<\/a>');
- }
- </script>
- </span> </li>
- <!--{/if}-->
- <!--{loop $navs $id $nav}-->
- <!--{if $id == 3}-->
- <!--{if !empty($plugins['jsmenu'])}-->
- $nav[nav]
- <!--{/if}-->
- <!--{if !empty($plugins['links'])}-->
- <!--{loop $plugins['links'] $module}-->
- <!--{if !$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)}-->
- <li>$module[url]</li>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
- <!--{else}-->
- <!--{if !$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)}-->
- $nav[nav]
- <!--{/if}-->
- <!--{/if}-->
- <!--{/loop}-->
- <!--{if in_array($BASEFILENAME, $navmns)}-->
- {eval $mnid = $BASEFILENAME;}
- <!--{elseif $navmngs[$BASEFILENAME]}-->
- <!--{loop $navmngs[$BASEFILENAME] $navmng}-->
- <!--{if $navmng[0] == array_intersect_assoc($navmng[0], $_GET)}-->
- {eval $mnid = $navmng[1];}
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
- </ul>
- </div>
- <div id="umenu">
- <!--{if $discuz_uid}-->
- <cite><a href="space.php?uid=$discuz_uid" class="noborder"><img src="{UC_API}/avatar.php?uid=$discuz_uid&size=small" class="uface_bg" /> $discuz_userss</a>
- <!--{if $allowinvisible}-->
- <span id="loginstatus">
- <!--{if !empty($invisible)}-->
- <a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_invisible_mode}</a>
- <!--{else}-->
- <a href="member.php?action=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_normal_mode}</a>
- <!--{/if}-->
- </span>
- <!--{/if}-->
- </cite> <span class="pipe">|</span>
- <!--{if $ucappopen['UCHOME']}-->
- <a href="{$uchomeurl}/space.php?uid=$discuz_uid" target="_blank">{lang space_short}</a>
- <!--{elseif $ucappopen['XSPACE']}-->
- <a href="{$xspaceurl}/?uid-$discuz_uid" target="_blank">{lang space_short}</a>
- <!--{/if}-->
- <a id="myprompt" href="notice.php"
-
- <!--{if $prompt}-->
- class="new" onmouseover="showMenu({'ctrlid':this.id})"
- <!--{/if}-->
- >{lang notice}</a> <span id="myprompt_check"></span> <a href="pm.php" id="pm_ntc" target="_blank">{lang pm_center}</a>
- <!--{if $taskon}-->
- <a id="task_ntc" {if $doingtask}href="task.php?item=doing" class="new" title="{lang task_unfinish}"{else}href="task.php"{/if} target="_blank">{lang task}</a>
- <!--{/if}-->
- <span class="pipe">|</span> <a href="memcp.php">{lang user_center}</a>
- <!--{if $discuz_uid && $adminid > 1}-->
- <a href="modcp.php?fid=$fid" target="_blank">{lang modcp}</a>
- <!--{/if}-->
- <!--{if $discuz_uid && $adminid == 1}-->
- <a href="admincp.php" target="_blank">{lang admincp}</a>
- <!--{/if}-->
- <a href="logging.php?action=logout&formhash={FORMHASH}">{lang logout}</a>
- <!--{elseif !empty($_DCOOKIE['loginuser'])}-->
- <cite><a id="loginuser" class="noborder">$_DCOOKIE['loginuser']</a></cite> <a href="logging.php?action=login" onclick="showWindow('login', this.href);return false;">{lang activation}</a> <a href="logging.php?action=logout&formhash={FORMHASH}">{lang logout}</a>
- <!--{else}-->
- <a href="$regname" onclick="showWindow('register', this.href);return false;" class="noborder">$reglinkname</a> <a href="logging.php?action=login" onclick="showWindow('login', this.href);return false;">{lang login}</a>
- <!--{/if}-->
- </div>
- </div>
- <!--{if !empty($stylejumpstatus)}-->
- <script type="text/javascript">
- function setstyle(styleid) {
- str = unescape('{echo str_replace("'", "\\'", urlencode($_SERVER[QUERY_STRING]))}');
- str = str.replace(/(^|&)styleid=\d+/ig, '');
- str = (str != '' ? str + '&' : '') + 'styleid=' + styleid;
- location.href = '$BASESCRIPT?' + str;
- }
- </script>
- <ul id="style_switch">
- <!--{loop $styles $id $stylename}-->
- <li{if $id == STYLEID} class="current"{/if}><a href="#" onclick="setstyle($id)" title="$stylename" style="background: $styleicons[$id];">$stylename</a>
- </li>
- <!--{/loop}-->
- </ul>
- <!--{/if}-->
- </div>
- <div id="myprompt_menu" style="display:none" class="promptmenu">
- <div class="promptcontent">
- <ul class="s_clear">
- <!--{loop $prompts $promptkey $promptdata}-->
- <!--{if $promptkey}-->
- <li{if !$promptdata[new]} style="display:none"{/if}><a id="prompt_$promptkey" href="{if $promptdata[script]}$promptdata[script]{else}notice.php?filter=$promptkey{/if}" target="_blank">$promptdata[name] ($promptdata[new])</a>
- </li>
- <!--{/if}-->
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- </div>
复制代码 请问如何调整宽度?
求解啊。
|