css - 部分页脚被隐藏

标签 css

我正在为我的公司开发网站。我被困在一个布局无法正常工作的问题上。底部的页脚被部分覆盖。我添加了一个 z-index,但它没有任何改变。我玩过边距和填充无济于事。希望有人能看到是什么导致它被部分覆盖。 这是一张显示我所看到的图像: enter image description here

网站在这里:http://clubschoicemagic.com/

#slide03.slide .footer-container {
  background-color: #06060d;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-bottom: 0;
  text-align: center;
}
#slide03.slide .footer-container .wrapper {
  background-color: #06060d;
  bottom: 0;
  color: #ffffff;
  left: 0;
  margin: 0 auto -20px;
  padding-top: 5px;
  position: absolute;
  text-align: center;
  text-shadow: none;
  top: auto;
  transform: none;
  width: 100%;
}
<div class="footer-container">
  <footer class="wrapper">
    <img src="http://clubschoicefundraising.com/Content/img/logo.png" class="center-block" width="80" />
    <h3>
                    Clubschoicemagic.com is affiliated with <a href="http://clubschoicefundraising.com">Club's Choice Fundraising</a>.
                </h3>
  </footer>
</div>

最佳答案

@Bart 帮助我注意到,这实际上与您的 CSS 无关。

在(您的 HTML 的)第 200 行左右,您有这个;

    <script type="text/javascript">

        $(document).ready(function () {
            $(".contactForm").on('submit', function (e) {
                e.preventDefault();
                var firstName = $("#firstName").val();
                if (firstName == "") {
                    firstName = "None given";
                }
                var model = { firstName: firstName, schoolName: $("#schoolName").val(), note: $("#note").val() };

                $.ajax({
                    url: "/Home/Index",
                    type: 'POST',
                    data: { model: model },
                    success: function (result) {
                        if (result) {
                            $(".contactForm").trigger('reset');
                            $("#formMessage").html("Thank you.  Your entry has been submitted.");
                        }
                    },
                    error: function (xhr, ajaxOptions, thrownError) {

                    }
                });

            });
        });
    </script>
>

如您所见,在关闭脚本标记之后有一个杂散的 > 是您出现问题的原因。

还有 margin: 0 auto -20px; 应该是 margin: 0 auto; 正如@Tezekiel 所说

关于css - 部分页脚被隐藏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38570400/

相关文章:

css - css 选择器的 RegEx 简单解析器

javascript - 使用 jQuery 从文件动态加载元素的 CSS + anchor 链接不起作用

html - 内联列表与非内联列表

html - 如何使用 CSS 或 HTML 将特定的 HTML 行和列加粗?

mouseenter() + animate() 的 jquery 问题

javascript - 有没有办法将游戏代码放在选项卡中

html - 关于 body 元素中背景图像的 CSS 混淆

CSS - 需要列在 3 列布局中一直流到底部

HTML Marquee Hspace % 不会占用

html - 将内容框居中并留下一个导航框