Header Logo已经离开了中心

时间:2015-09-23 22:41:11

标签: css

我刚才做了一个wordpress网站。我今天只看了一眼,因为某种原因,这个标志已经向东走了。它已经厌倦了clearfix的浮动,文本对齐和边距:0自动。谁能让我知道发生了什么,或者如何修复它? http://www.mallorymcgough.com/

2 个答案:

答案 0 :(得分:1)

.header-info元素(包含徽标上方的电话号码)正在取代徽标。

解决这个问题的一个快速方法是给它绝对定位。

.header-info { position: absolute; }

编辑如下:替代解决方案

更好的解决方法是减少line-height

上声明的元素style.css:4062
.header-social .header-info, .header-social .top-menu {
    line-height: 43px;
}

将此数字减少到较小的线高,问题就会消失。

答案 1 :(得分:0)

override func scrollViewDidEndDecelerating(scrollView: UIScrollView){ let pageWidth:CGFloat = CGRectGetWidth(scrollView.frame) let currentPage:CGFloat = floor((scrollView.contentOffset.x - pageWidth / 2) / pageWidth) + 1 self.pageController.currentPage = Int(currentPage) } 元素上有一个减去边距的属性将其移除,徽标将重新捕捉到中间

.header-social
相关问题