我目前工作的一个网站上,其网址为http://lathamcity.com/神秘垂直滚动条出现
是令人迷惑我是有些,但不是全部,显示新的项目时,会出现一个垂直滚动条的问题,尽管有没有内容离开页面。它不仅困扰我,因为它很神秘,但它看起来并不专业,并且将标题中的文本转变为一个微小而明显的位置。
如果点击“开发中”或目前可用的第二个菜单中的任何选项(所有选项都显示相同的div),则效果可见。
为当在第一菜单中选择一个项目如下:jQuery代码:
var headerHeight = $('#headerTable').height();
$('#selectStart').offset({left: 0, top: headerHeight});
var select1Width = $('#selectStart').width();
var select2Width = select1Width + $('.selector2').width();
$('table.selector2').offset({left: select1Width, top: headerHeight});
$('table.selector2').hide();
$('td.selector1').click(function() {
$('td.selector2').css({'background-color': '#3B3133'});
$('table.selector2').hide();
$('div.pane').hide();
var choice = '#' + $(this).attr('data-choice');
$(choice).show();
$(choice).offset({left: select1Width, top: headerHeight});
$('td.selector1').css({'background-color': '#3B3133'});
$(this).css({'background-color': '#61434A'});
});
任何想法?
你确定这只是一个垂直滚动?我在FF中得到一个水平的。 – 2011-12-27 02:04:47
与萤火虫搞砸了,如果我摆脱'table id =“selectProjects”的左边和顶部样式''它有帮助。不知道答案是什么...我只是使用'div's – 2011-12-27 02:09:20
我建议你使用Div而不是表格。 – maxisam 2011-12-27 02:25:28