2015-06-19 35 views
1

无论如何,标题菜单不会粘到屏幕的顶部。“位置:固定”不适用于标题菜单

我怀疑它可能是与周围的HTML结构 - 这是相当复杂的,由于移动菜单(调整激活)

position: fixed; 
top: 0; 
left: 0; 

****链接删除****

任何想法?由于

回答

1

这是因为转换创建一个新的局部坐标系 - http://www.w3.org/TR/css3-2d-transforms/#transform-rendering

下面就来看看here

body { 
    background-color: #1B725F; 
    color: #333; 
    /*font-family: "brandon-grotesque", "adelle", "Times New Roman", sans-serif;*/ 
    font-family: "brandon-grotesque", "adelle", sans-serif; 
    font-size: 18px; 
    font-weight: 100; 
    font-style: normal; 
    line-height: 1.625; 
    position: relative; 
    -webkit-transform: translate3d(0,0,0); <-- here 
    transform: translate3d(0,0,0);   <-- here 
    -webkit-touch-callout: none; 
    -webkit-user-select: none; 
    -khtml-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
} 
+0

这就是它!谢谢你的帮助 :) – user2565123