Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 急求关于回顶部键

[复制链接]
arfat 发表于 2012-12-10 06:38:37 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X2.5
浏览器: 360 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: http://xjpiqan.5.5vv.cc
本帖最后由 arfat 于 2012-12-10 06:41 编辑

各位大侠你们好~!!
  我的论坛是维文的。  最近装了个模版, 可是发现 回顶部建有问题。
问题是两种:

1. 回顶部建 打开网页就出现,  应该 把导航条下拉才出现是对的。

2.浏览器全屏时回顶部建的位置是对的, 可是 把浏览器缩小 它的位置就变了。  如图:

浏览器全屏时


浏览器缩小时

                                                                                 

请各位大侠帮忙!!

下面是 我的 footer.htm  代码:

</div></div></div></div></div>
<!--{if empty($topic) || ($topic[usefooter])}-->
<!--{eval $focusid = getfocus_rand($_G[basescript]);}-->
<!--{if $focusid !== null}-->
  <!--{eval $focus = $_G['cache']['focus']['data'][$focusid];}-->
  <!--{eval $focusnum = count($_G['setting']['focus'][$_G[basescript]]);}-->
  <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}-->
      <span id="focus_ctrl" class="fctrl"><img src="{IMGDIR}/pic_nv_prev.gif" alt="{lang footer_previous}" title="{lang footer_previous}" id="focusprev" class="cur1" /> <em><span id="focuscur"></span>/$focusnum</em> <img src="{IMGDIR}/pic_nv_next.gif" alt="{lang footer_next}" title="{lang footer_next}" id="focusnext" class="cur1" /></span>
     </h2>
    </div>
    <div class="bm_c" id="focus_con">
    </div>
   </div>
  </div>
  <!--{loop $_G['setting']['focus'][$_G[basescript]] $id}-->
    <div class="bm_c" style="display: none" id="focus_$id">
     <dl class="xld cl bbda">
      <dt><a href="{$_G['cache']['focus']['data'][$id]['url']}" class="xi2" target="_blank">$_G['cache']['focus']['data'][$id]['subject']</a></dt>
      <!--{if $_G['cache']['focus']['data'][$id][image]}-->
      <dd class="m"><a href="{$_G['cache']['focus']['data'][$id]['url']}" target="_blank"><img src="{$_G['cache']['focus']['data'][$id]['image']}" alt="$_G['cache']['focus']['data'][$id]['subject']" /></a></dd>
      <!--{/if}-->
      <dd>$_G['cache']['focus']['data'][$id]['summary']</dd>
     </dl>
     <p class="ptn cl"><a href="{$_G['cache']['focus']['data'][$id]['url']}" class="xi2 y" target="_blank">{lang focus_show} &raquo;</a></p>
    </div>
  <!--{/loop}-->
  <script type="text/javascript">
   //var focusautoshow = 1;
   var focus = new Array();
   <!--{loop $_G['setting']['focus'][$_G[basescript]] $key $id}-->
    focus[$key] = '$id';
   <!--{/loop}-->
   var focusnum = $focusnum;
   if('undefined' == typeof(focus[1])) {
    $('focus_ctrl').style.display = 'none';
   }
   if(!$('focuscur').innerHTML) {
    var randomnum = parseInt(Math.round(Math.random() * focusnum));
    $('focuscur').innerHTML = Math.max(1, randomnum);
   }
   showfocus();
   var focusautoshow = window.setInterval('showfocus(\'next\', 1);', 5000);
  </script>
<!--{/if}-->
<!--{if $_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1}-->
  <style type="text/css">
  .patch { width: 300px; }
   .patch .bm { border-color: #F26C4F; background: #FFF; }
   .patch .allfixed { border-color: #6C3; }
   .patch .bm_h { border: solid #FFF; border-width: 1px 1px 0; background: #F26C4F; }
    .patch .allfixed .bm_h { background: #6C3; }
    .patch h2, .patch .bm_h .y { color: #FFF; }
   .patch table { table-layout: fixed; }
    .patch th, .patch td { padding: 2px; border-bottom: 1px dotted #CDCDCD; }
    .patchdate { width: 70px; }
    .patchstat { width: 55px; }
   .unfixed { color: #F26C4F; }
  </style>
  <div class="focus patch" id="patch_notice"></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="eis_hd">
    <div class="eis_p1">
  <div class="eis_ftc cl">
    <div class="eis_ftl cl">
     <div class="eis_ftr cl">
     <div class="eis_p2">
<div id="eis_ft" class="wp cl">
  <div id="flk" class="y">
   <p>
    <!--{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'))}-->$nav[code]<span class="pipe">|</span><!--{/if}--><!--{/loop}-->
      <strong><a href="$_G['setting']['siteurl']" target="_blank">$_G['setting']['sitename']</a></strong>
    <!--{if $_G['setting']['icp']}-->( <a  target="_blank">$_G['setting']['icp']</a> )<!--{/if}-->
    <!--{hook/global_footerlink}-->
    <!--{if $_G['setting']['statcode']}-->$_G['setting']['statcode']<!--{/if}-->
   </p>
   <p class="xs0">
    {lang time_now}
    <span id="debuginfo">
    <!--{if debuginfo()}-->, Processed in $_G[debuginfo][time] second(s), $_G[debuginfo][queries] queries
     <!--{if $_G['gzipcompress']}-->, Gzip On<!--{/if}--><!--{if C::memory()->type}-->, <!--{echo ucwords(C::memory()->type)}--> On<!--{/if}-->.
    <!--{/if}-->
    </span>
   </p>
  </div>
  <div id="frt">
   <p>Powered by <strong><a href="https://discuz.dismall.com" target="_blank">Discuz!</a></strong> <em>$_G['setting']['version']</em><!--{if !empty($_G['setting']['boardlicensed'])}--> <a href="http://license.comsenz.com/?pid=1&host=$_SERVER[HTTP_HOST]" target="_blank">Licensed</a><!--{/if}--></p>
   <p class="xs0">&copy; 2001-2012 <a  target="_blank">Comsenz Inc.</a> skin by <a  target="_blank">eisdl</a></p>
  </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}-->';
   var loginstatusobj = $('loginstatusid');
   if(loginstatusobj != undefined && loginstatusobj != null) loginstatusobj.innerHTML = invisiblestatus;
   </script>
  <!--{/if}-->
</div>
  </div></div></div></div>
  </div></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 $_G[uid] && helper_access::check_module('follow') && !isset($_G['cookie']['checkfollow'])}-->
<script type="text/javascript" src="home.php?mod=spacecp&ac=follow&op=checkfeed&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 $_G[uid] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkpatch'])}-->
<script type="text/javascript" src="misc.php?mod=patch&action=checkpatch&rand=$_G[timestamp]"></script>
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET['diy'] == 'yes'}-->
<!--{if check_diy_perm($topic) && (empty($do) || $do != 'index')}-->
  <script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
  <script type="text/javascript" src="{$_G[setting][jspath]}portal_diy{if !check_diy_perm($topic, 'layout')}_data{/if}.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['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1}-->
<script type="text/javascript">patchNotice();</script>
<!--{/if}-->
<!--{if $_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G[uid]]) || $_G['cookie']['promptstate_'.$_G[uid]] != $_G['member']['newprompt']) && $_GET['do'] != 'notice'}-->
<script type="text/javascript">noticeTitle();</script>
<!--{/if}-->
<!--{eval userappprompt();}-->
<!--{if $_G['basescript'] != 'userapp'}-->
<span id="scrolltop">{lang scrolltop}</span>
<script type="text/javascript">_attachEvent(window, 'scroll', function(){showTopLink();});</script>
<!--{/if}-->
<!--{eval output();}-->
<span id="scrolltop" style="right: 155px; visibility: visible;">Ustige Qaytish</span>
</body>
</html>
<script type="text/javascript">attachEvents();</script>

这是我的 common.css  代码 :

/*toptb 样式*/
.ie6 #eis_toptb .y{ padding-top:5px !important; overflow:hidden; }
.ie6 #eis_toptb .y img{ margin-top:5px}
#eis_toptb {height: 40px; }
#eis_toptb a { padding: 0 4px; line-height: 40px; overflow:hidden; color:#FFF;}
#eis_tootb .y a{ line-height:40px; overflow:hidden; vertical-align:middle;}
#eis_toptb a.showmenu { padding-left: 15px; }
#eis_toptb a.hover { background-color: #FFF; }
#eis_toptb #diy-tg_menu { margin: -6px 0 0 -10px; }
#eis_toptb .new { padding-right: 20px; background-repeat: no-repeat; background-position: 0 50%; color: {HIGHLIGHTLINK}; font-weight: 700; }
/*hd 样式*/
#eis_hd{ width:1020px; margin:0 auto;}
.eis_hd_l{ padding-left:30px; margin-top:35px !important; background:url({IMGDIR}/eis_header-l.gif) no-repeat 0 0;}
.eis_hd_r{ padding-right:30px; background:url({IMGDIR}/eis_header-r.gif) no-repeat 100% 0;}
.eis_hd{ background:url({IMGDIR}/eis_header-bg.gif) repeat-x 0 0;}
.eis_hd_r .wp{ padding-top:0px !important;}
/*nv 样式*/
#eis_nv { overflow: hidden; padding-right: 3px; height: 32px; background:#a90329; }
#eis_nv li { float: right; margin-left:3px; width:65px; height: 32px; line-height: 32px;  font-weight: 700; font-size: 14px; }
.ie_all #eis_nv li { line-height: 35px; }
.ie6 #eis_nv li { line-height: 32px; }
#eis_nv li a { float: right; text-align:center; color:#fff; height: 32px;  width:65px; background: url({IMGDIR}/eis_nv.gif) no-repeat 50% 0; }
#eis_nv li span { display: none; }
#eis_nv li.a { margin-right: -1px; {MENUHOVERBGCODE}; }
#eis_nv li.a a { color:#333; background: url({IMGDIR}/eis_nv.gif) no-repeat 50% -32px; }
#eis_nv li a:hover { color:#333; background: url({IMGDIR}/eis_nv.gif) no-repeat 50% -32px; }
#eis_nv li.hover a:hover, #eis_nv li.hover a { color:#333; background: url({IMGDIR}/eis_nv.gif) no-repeat 50% -32px;}
/*mu 样式*/
#mu ul{ background:url({IMGDIR}/eis_mu_bg.gif) repeat-x  0 100%; border-right:1px solid #dddada; border-left:1px solid #dddada;}
/*qmenu 样式*/
#qmenu{ text-shadow:0px 0px 0px #fff; color:#c04f03; }
#qmenu_menu{ border-color:#f68d47;}
/*scbar 样式*/
#scbar{ border-color:#dddada;}
/*main 背景样式*/
.eis_main{ padding-top:12px; background:url({IMGDIR}/eis_bodyarea-bg.gif) repeat-x 0 0 #fff ;}
#eis_wp{ width:984px; margin:0 auto;}
#eis_wp01{ width:984px; margin:0 auto;}

/*默认板块样式*/
.fl{ border:0px; background:none;}
.fl .bm{ border:1px solid #DDDADA; padding:1px; margin-bottom:10px;}
.fl .bm_h{ border:1px solid #DDDADA; background:url({IMGDIR}/eis_catbg.gif) repeat-x 0 0;}
.fl .bm_h h2 a{ color:#333;}
.fl .bm_c{ background:#F6F6F6; padding:0px; border:1px solid #dddada; margin-top:1px;}
.fl_icn{ background:#f8f8f8; padding-right:10px !important; border-left:1px solid #dddada;}
.fl_i{ text-align:center !important; background:#f8f8f8; border-left:1px solid #dddada; border-right:1px solid #dddada;}
.fl .bm_c td{ padding: 10px;}
.fl_by div{ margin-right:0px !important;}
/*底部样式*/
#eis_ft{ padding: 10px 0 50px !important; line-height: 1.8; color: #fff;}
#eis_ft a{ color:#fff;}
.eis_ftc{ background:url({IMGDIR}/eis_footer-bg.gif) repeat-x 0 0;}
.eis_ftl{ background:url({IMGDIR}/eis_footer-l.gif) no-repeat 0 0;}
.eis_ftr{ background:url({IMGDIR}/eis_footer-r.gif) no-repeat 100% 0;}
.fl_row td { border-top: 1px solid #dddada; }
/*左导航 样式*/
.bdl{ background-color:#f8f8f8 !important; border:1px solid #dddada !important;}
.bdl dt{ border-color:#dddada !important;}
.bdl dd.bdl_a a{ background:#f7f7f7 !important;}
.pnc, a.pnc{ border-color:#dddada; background-color:#f8f8f8; color:#333 !important; background-position: 0px 0px;}
.eis_ad_mu{ margin-top:5px; text-align:center;}
.eis_ad_h{ float:left; padding-top:20px; height:100px; overflow:hidden; width:530px; text-align:left;}
/*宽屏样式*/
.eis_p1{ padding: 0 18px;}
.eis_p3{ padding: 0 19px;}
.eis_p2{ padding: 0 12px;}



请各位高手帮忙! 希望讲仔细点! 我是个新手。。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
jxzhj 发表于 2013-7-19 14:17:49 | 显示全部楼层
我也是遇到这个问题了,也发了个帖子,期待高手来解决!
回复

使用道具 举报

jxzhj 发表于 2013-7-19 14:18:57 | 显示全部楼层
不是吧,去年的问题,今年还没有人出来解决啊,我晕了,看来要靠自己了
回复

使用道具 举报

jxzhj 发表于 2013-7-20 20:27:07 | 显示全部楼层
恩,我的问题自己已经解决了呢
回复

使用道具 举报

jxzhj 发表于 2013-7-20 20:28:30 | 显示全部楼层
我看到你的CSS代码上面显示 eis,这不是和我用的 恩斯道模板是一样的呢
回复

使用道具 举报

jxzhj 发表于 2013-7-20 20:29:26 | 显示全部楼层
https://discuz.dismall.com/thread-3371493-1-1.html这是我的求助帖子,现在已经解决了,你过去看看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-24 19:16 , Processed in 0.032186 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表