CSS:页脚崩溃进入内容区域

时间:2016-11-13 02:21:33

标签: css position css-float clear

我一直在尝试使用各种方法解决这个问题,包括显示,清除,浮动和位置,似乎没有任何改变。

基本上发生的事情是我在这个主页上的页脚(http://writtenpalette.com/)正在崩溃到#content div。它似乎尊重#sidebar高度而不是整个内容高度。

就像我说的那样,我尝试过各种各样的方法......但似乎都没有。所以这里是主要部分的CSS,看看可能是什么问题:

override func perform() {
    let sourceViewController = self.destination
    let destinationViewController = self.destination

    // For presentations which will use a custom presentation controller,
    // it is possible for that presentation controller to also be the
    // transitioningDelegate.
    //
    // transitioningDelegate does not hold a strong reference to its
    // destination object.  To prevent presentationController from being
    // released prior to calling -presentViewController:animated:completion:
    // the NS_VALID_UNTIL_END_OF_SCOPE attribute is appended to the declaration.

    let presentationController = AAPLAdaptivePresentationController(presentedViewController: destinationViewController, presenting: sourceViewController)

    destinationViewController.transitioningDelegate = presentationController

    self.source.present(destinationViewController, animated: true, completion: {
        let _ = presentationController  //<- having a strong reference in the completion handler
    })
}

2 个答案:

答案 0 :(得分:1)

替换

Match |"foo"| = true
Match |"123"| = false
Match |""| = true
Match |foo| = false
Match || = false

<div id="content" class="hfeed masonry" style="position: relative; height: 0px;">

答案 1 :(得分:0)

首先验证页面:

https://validator.w3.org/check?uri=http%3A%2F%2Fwrittenpalette.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

然后使用网络检查员进行定位。

另外,请使用HTML5。