简体   繁体   English

激活 jQuery Accordian 脚本后从 Div 底部的额外填充

[英]Extra Padding From Bottom Of Div After jQuery Accordian Script Is Actived

I have designed a website that consists of the "body", a "container" to hold and center a "content" div on the page.我设计了一个网站,它由“正文”、一个“容器”组成,用于在页面上保存和居中一个“内容”div。 The height of the "content" and "container" divs is set to 100%, I have also added an Accordian jQuery Script within the "content" div. “内容”和“容器”div 的高度设置为 100%,我还在“内容”div 中添加了 Accordian jQuery 脚本。 Now in Google Chrome, when I activate the div that uses the jQuery Accordian Script, it show the div as expected.现在在 Google Chrome 中,当我激活使用 jQuery Accordian 脚本的 div 时,它会按预期显示 div。 The page expands in height, and follows the height: 100% attribute which is coded within the External Cascading Style Sheet.页面在高度上扩展,并遵循在外部级联样式表中编码的 height: 100% 属性。 But, (here's the problem), in Google Chrome, it adds extra space below the "container" div, and which shows a problem within the coding, whether it be in the XHTML 1.0 Strict, and or the CSS document.但是,(这是问题所在),在 Google Chrome 中,它在“容器”div 下方添加了额外的空间,这表明编码中存在问题,无论是在 XHTML 1.0 Strict 还是 CSS 文档中。 Or it could possibly be in the JavaScript.或者它可能在 JavaScript 中。

Both of the XHTML 1.0 Strict and CSS are validated, except for one error in the XHTML document, which has already been fixed without re-uploading it to the server, which does not affect the problem any. XHTML 1.0 Strict 和 CSS 都经过验证,除了 XHTML 文档中的一个错误,该错误已被修复,无需重新上传到服务器,这对问题没有任何影响。

The specified jQuery Accordian Div is located where the image "Click To Inquire" is specified.指定的 jQuery Accordian Div 位于指定图像“点击查询”的位置。

You can view the page at: http://www.noxinnovations.com/portfolio/thecommonwealth/index.html您可以在以下位置查看页面: http://www.noxinnovations.com/portfolio/thecommonwealth/index.html

You can view the css at: http://www.noxinnovations.com/portfolio/thecommonwealth/style.css您可以在以下网址查看 css: http://www.noxinnovations.com/portfolio/thecommonwealth/style.css

You can view the JavaScript at: http://www.noxinnovations.com/portfolio/thecommonwealth/javascript.js您可以在以下位置查看 JavaScript: http://www.noxinnovations.com/portfolio/thecommonwealth/javascript.js

If you do not have Google Chrome, and or use Internet Explorer, Opera, Apple Safari, and or Mozilla Firefox.如果您没有 Google Chrome,并且/或者使用 Internet Explorer、Opera、Apple Safari 和/或 Mozilla Firefox。 You can view the problem I am running into as an image您可以将我遇到的问题作为图像查看

在此处输入图像描述

Look below the red, and then the black right below it.查看红色下方,然后查看其下方的黑色。 Hence, the extra spacing.因此,额外的间距。

It would be very appreciative is someone were to help me with this issue, Thank you very much, Aaron Brewer非常感谢有人能帮助我解决这个问题,非常感谢,Aaron Brewer

No idea what the problem is, haven't invested enough time to understand.不知道问题是什么,没有投入足够的时间去理解。 Although it goes away when I add the following to the css虽然当我将以下内容添加到 css 时它消失了

#wrapper {overflow:auto}

Not sure how satisfying a "this solves it with no explanation" is:)不知道“这解决了它没有解释”是多么令人满意:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM